-
Notifications
You must be signed in to change notification settings - Fork 3
NIAD-3416: Performance improvements #1235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a312d50
Caching unmarshaller
ORybak5 a2374c2
Refactoring
ORybak5 2c91a7f
slightly more perf optimized method refactoring
ORybak5 2fa790a
test failure fix
ORybak5 901bd77
revert test failure fix
ORybak5 6a27250
test failure fix
ORybak5 fa0fc82
addressing pitest
ORybak5 56bc1de
adding a missing file for tests
ORybak5 b12e6b5
adding a missing file for compound statement tests
ORybak5 943931b
adressing more pitests
ORybak5 802669e
adressing more pitests cases
ORybak5 ac377b9
update pitest to cover edge scenarios
ORybak5 d0011f6
xml update
ORybak5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file still has places where we have assertions such as: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
...s/xml/ResourceReference/CompoundStatement/compound_statement_with_narrative_statement.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| <CompoundStatement xmlns="urn:hl7-org:v3" classCode="TOPIC" moodCode="EVN"> | ||
| <id root="3D8A2760-90B4-11EC-B1E5-0800200C9A66"/> | ||
| <code code="14L..00" codeSystem="2.16.840.1.113883.2.1.6.2" | ||
| displayName="H/O: drug allergy"/> | ||
| <statusCode code="COMPLETE"/> | ||
| <effectiveTime> | ||
| <center value="19781231"/> | ||
| </effectiveTime> | ||
| <availabilityTime value="19781231"/> | ||
| <component typeCode="COMP" contextConductionInd="true"> | ||
| <CompoundStatement classCode="CATEGORY" moodCode="EVN"> | ||
| <id root="07F5EAC0-90B5-11EC-B1E5-0800200C9A66"/> | ||
| <code code="1234" codeSystem="2.16.840.1.113883.2.1.6.3" | ||
| displayName="H/O: drug allergy"/> | ||
| <statusCode code="COMPLETE"/> | ||
| <effectiveTime> | ||
| <center value="19781231"/> | ||
| </effectiveTime> | ||
| <availabilityTime value="19781231"/> | ||
| <component typeCode="COMP" contextConductionInd="true"> | ||
| <CompoundStatement classCode="CLUSTER" moodCode="EVN"> | ||
| <id root="COMPOUND_STATEMENT_CHILD_ID_1"/> | ||
| <code code="123038009" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" | ||
| displayName="specimen (specimen)"/> | ||
| <statusCode code="COMPLETE"/> | ||
| <effectiveTime> | ||
| <center nullFlavor="NI"/> | ||
| </effectiveTime> | ||
| <availabilityTime value="20100225154100"/> | ||
| <specimen typeCode="SPC"> | ||
| <specimenRole classCode="SPEC"> | ||
| <id root="SPECIMEN_ROLE_ID_1"/> | ||
| <id root="2.16.840.1.113883.2.1.4.5.2" extension="SPECIMEN_ROLE_ID_EXTENSION"/> | ||
| <effectiveTime> | ||
| <center value="20100223000000"/> | ||
| </effectiveTime> | ||
| <specimenSpecimenMaterial determinerCode="INSTANCE" classCode="MAT"> | ||
| <desc>EINE KLEINE</desc> | ||
| </specimenSpecimenMaterial> | ||
| </specimenRole> | ||
| </specimen> | ||
| <component typeCode="COMP" contextConductionInd="true"> | ||
| <NarrativeStatement classCode="OBS" moodCode="EVN"> | ||
| <id root="07F5EAC0-90B5-11EC-B1E5-0800200C9A66"/> | ||
| <text mediaType="text/x-h7uk-pmip">CommentType:LAB SPECIMEN COMMENT(E271) | ||
| CommentDate:20020330092100 | ||
|
|
||
| Received Date: 2002-03-30 09:21 | ||
| </text> | ||
| <statusCode code="COMPLETE"/> | ||
| <availabilityTime value="20020330000000"/> | ||
| </NarrativeStatement> | ||
| </component> | ||
| </CompoundStatement> | ||
| </component> | ||
| <component typeCode="COMP" contextConductionInd="true"> | ||
| <ObservationStatement classCode="OBS" moodCode="EVN"> | ||
| <id root="3DCC9FC9-1873-4004-9789-C4E5C52B02B9"/> | ||
| <referenceRange typeCode="REFV"> | ||
| <referenceInterpretationRange classCode="OBS" moodCode="EVN.CRT"> | ||
| <text>Test Range 1</text> | ||
| <value> | ||
| <low value="10.5" unit="L"/> | ||
| <high value="12.2" unit="L"/> | ||
| </value> | ||
| </referenceInterpretationRange> | ||
| </referenceRange> | ||
| <code code="1683.00" codeSystem="2.16.840.1.113883.2.1.6.2" | ||
| displayName="Tired all the time"> | ||
| <translation code="267032009" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" | ||
| displayName="Tired all the time"/> | ||
| </code> | ||
| <statusCode code="COMPLETE"/> | ||
| <effectiveTime> | ||
| <center nullFlavor="NI"/> | ||
| </effectiveTime> | ||
| <availabilityTime value="201101111533"/> | ||
| <pertinentInformation typeCode="PERT"> | ||
| <sequenceNumber value="+1"/> | ||
| <pertinentAnnotation classCode="OBS" moodCode="EVN"> | ||
| <text>Notes on the tired all the time entry</text> | ||
| </pertinentAnnotation> | ||
| </pertinentInformation> | ||
| </ObservationStatement> | ||
| </component> | ||
| <component typeCode="COMP" contextConductionInd="true"> | ||
| <NarrativeStatement classCode="OBS" moodCode="EVN"> | ||
| <id root="278ADD5F-2AC7-48DC-966A-0BA7C029C793"/> | ||
| <text>Comments - Aaaargh</text> | ||
| <statusCode code="COMPLETE"/> | ||
| <availabilityTime value="201101111533"/> | ||
| </NarrativeStatement> | ||
| </component> | ||
| </CompoundStatement> | ||
| </component> | ||
| </CompoundStatement> |
136 changes: 136 additions & 0 deletions
136
...esourceReference/CompoundStatement/compound_statement_with_plan_and_request_statement.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,136 @@ | ||
| <CompoundStatement xmlns="urn:hl7-org:v3" classCode="TOPIC" moodCode="EVN"> | ||
| <id root="3D8A2760-90B4-11EC-B1E5-0800200C9A66"/> | ||
| <code code="14L..00" codeSystem="2.16.840.1.113883.2.1.6.2" | ||
| displayName="H/O: drug allergy"/> | ||
| <statusCode code="COMPLETE"/> | ||
| <effectiveTime> | ||
| <center value="19781231"/> | ||
| </effectiveTime> | ||
| <availabilityTime value="19781231"/> | ||
| <component typeCode="COMP" contextConductionInd="true"> | ||
| <CompoundStatement classCode="CATEGORY" moodCode="EVN"> | ||
| <id root="07F5EAC0-90B5-11EC-B1E5-0800200C9A66"/> | ||
| <code code="1234" codeSystem="2.16.840.1.113883.2.1.6.3" | ||
| displayName="H/O: drug allergy"/> | ||
| <statusCode code="COMPLETE"/> | ||
| <effectiveTime> | ||
| <center value="19781231"/> | ||
| </effectiveTime> | ||
| <availabilityTime value="19781231"/> | ||
| <component typeCode="COMP"> | ||
| <MedicationStatement xmlns="urn:hl7-org:v3" classCode="SBADM" moodCode="INT"> | ||
| <id root="B4D70A6D-2EE4-41B6-B1FB-F9F0AD84C503" /> | ||
| <statusCode code="ACTIVE" /> | ||
| <effectiveTime> | ||
| <high value="20060426" /> | ||
| <center nullFlavor="NI" /> | ||
| </effectiveTime> | ||
| <availabilityTime value="20100115" /> | ||
| <consumable typeCode="CSM"> | ||
| <manufacturedProduct classCode="MANU"> | ||
| <manufacturedMaterial classCode="MMAT" determinerCode="KIND"> | ||
| <code code="RACA57NEMIS" codeSystem="2.16.840.1.113883.2.1.6.9" displayName="Ramipril 10mg capsules"> | ||
| <translation code="318906001" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="Ramipril 10mg capsules" /> | ||
| </code> | ||
| <quantity value="28" unit="1"> | ||
| <translation value="28"> | ||
| <originalText>capsule</originalText> | ||
| </translation> | ||
| </quantity> | ||
| </manufacturedMaterial> | ||
| </manufacturedProduct> | ||
| </consumable> | ||
| <component typeCode="COMP"> | ||
| <ehrSupplyAuthorise classCode="SPLY" moodCode="INT"> | ||
| <id root="A0A70B62-2649-4C8F-B3AB-618B8257C942" /> | ||
| <code code="9bG0.00" codeSystem="2.16.840.1.113883.2.1.6.2" displayName="NHS prescription" /> | ||
| <statusCode code="ACTIVE" /> | ||
| <effectiveTime> | ||
| <center nullFlavor="NI" /> | ||
| </effectiveTime> | ||
| <availabilityTime value="20100114" /> | ||
| <repeatNumber value="6" /> | ||
| <quantity value="28" unit="1"> | ||
| <translation value="28"> | ||
| <originalText>capsule</originalText> | ||
| </translation> | ||
| </quantity> | ||
| <pertinentInformation typeCode="PERT"> | ||
| <pertinentSupplyAnnotation classCode="OBS" moodCode="EVN"> | ||
| <text>Pharmacy Text: Repeat Dispensing Pharmacy Note. 1</text> | ||
| </pertinentSupplyAnnotation> | ||
| </pertinentInformation> | ||
| <pertinentInformation typeCode="PERT"> | ||
| <pertinentSupplyAnnotation classCode="OBS" moodCode="EVN"> | ||
| <text>Pharmacy Text: Repeat Dispensing Pharmacy Note. 2</text> | ||
| </pertinentSupplyAnnotation> | ||
| </pertinentInformation> | ||
| </ehrSupplyAuthorise> | ||
| </component> | ||
| <component typeCode="COMP"> | ||
| <ehrSupplyPrescribe classCode="SPLY" moodCode="RQO"> | ||
| <id root="9B4B797A-D674-4362-B666-2ADC8551EEDA"/> | ||
| <code code="394823007" displayName="NHS Prescription" codeSystem="2.16.840.1.113883.2.1.3.2.4.15"/> | ||
| <statusCode code="COMPLETE"/> | ||
| <availabilityTime value="20060426"/> | ||
| <quantity value="1" unit="1"> | ||
| <translation value="1"> | ||
| <originalText>tablet(s)</originalText> | ||
| </translation> | ||
| </quantity> | ||
| <inFulfillmentOf typeCode="FLFS"> | ||
| <priorMedicationRef moodCode="INT"> | ||
| <id root="TEST_ID"/> | ||
| </priorMedicationRef> | ||
| </inFulfillmentOf> | ||
| </ehrSupplyPrescribe> | ||
| </component> | ||
| </MedicationStatement> | ||
| </component> | ||
| <component typeCode="COMP" > | ||
| <PlanStatement classCode="OBS" moodCode="INT"> | ||
| <id root="3316531F-5705-424C-9E1A-EE694FB411B4" /> | ||
| <code code="282653015" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="Medication review"> | ||
| </code> | ||
| <statusCode code="COMPLETE" /> | ||
| <effectiveTime> | ||
| <center value="20110115"/> | ||
| </effectiveTime> | ||
| <availabilityTime value="20100115100646"/> | ||
| <Participant typeCode="PRF" contextControlCode="OP"> | ||
| <agentRef classCode="AGNT"> | ||
| <id root="2D70F602-6BB1-47E0-B2EC-39912A59787D"/> | ||
| </agentRef> | ||
| </Participant> | ||
| </PlanStatement> | ||
| </component> | ||
| <component> | ||
| <RequestStatement classCode="OBS" moodCode="RQO"> | ||
| <id root="B4303C92-4D1C-11E3-A2DD-010000000161"/> | ||
| <code code="8HV6." codeSystem="2.16.840.1.113883.2.1.3.2.4.14" displayName="Reason Code"> | ||
| <translation code="183885007" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="Reason Code 1"/> | ||
| <translation code="8HV6.00" codeSystem="2.16.840.1.113883.2.1.6.2" displayName="Reason Code 2"/> | ||
| </code> | ||
| <text>Test request statement text | ||
| New line</text> | ||
| <statusCode code="COMPLETE"/> | ||
| <effectiveTime> | ||
| <center value="20050406" nullFlavor="NI"/> | ||
| </effectiveTime> | ||
| <availabilityTime value="20100101123000"/> | ||
| <priorityCode code="394848005" displayName="Normal" codeSystem="2.16.840.1.113883.2.1.3.2.4.15"><originalText>Routine</originalText></priorityCode> | ||
| <responsibleParty typeCode="RESP"> | ||
| <agentRef classCode="AGNT"> | ||
| <id root="B8CA3710-4D1C-11E3-9E6B-010000001205"/> | ||
| </agentRef> | ||
| </responsibleParty> | ||
| <Participant typeCode="PPRF" contextControlCode="OP"> | ||
| <agentRef classCode="AGNT"> | ||
| <id root="58341512-03F3-4C8E-B41C-A8FCA3886BBB"/> | ||
| </agentRef> | ||
| </Participant> | ||
| </RequestStatement> | ||
| </component> | ||
| </CompoundStatement> | ||
| </component> | ||
| </CompoundStatement> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.