-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NIAD-2843: Blood pressure NarrativeStatements are also mapped as Obse…
…rvation comments, leading to duplication (#367) * Add test for changes to ensure blood pressure NarrativeStatements are not being mapped by the ObservationCommentMapper. Add new functionality to CompoundStatementResourceExtractors to exclude blood pressures when NarrativeStatements are being extracted * Add test for changes to ensure blood pressure NarrativeStatements are not being mapped by the ObservationCommentMapper. Add source file for new test. Add new functionality to CompoundStatementResourceExtractors to exclude blood pressures when NarrativeStatements are being extracted. * fix checkstyle test naming issue * Update expectedBundle to remove duplicate entries * Update method name for clarity Refactor method in DocumentReferenceMapper to remove warning Add CHANGELOG.md --------- Co-authored-by: hospel <[email protected]>
- Loading branch information
1 parent
cbb330c
commit dbfcda2
Showing
7 changed files
with
144 additions
and
99 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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
87 changes: 87 additions & 0 deletions
87
...lator/src/test/resources/xml/ObservationComment/narrative_statement_in_blood_pressure.xml
This file contains 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,87 @@ | ||
<EhrExtract xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" classCode="EXTRACT" moodCode="EVN"> | ||
<component typeCode="COMP"> | ||
<ehrFolder classCode="FOLDER" moodCode="EVN"> | ||
<component typeCode="COMP"> | ||
<ehrComposition classCode="COMPOSITION" moodCode="EVN"> | ||
<id root="58EC471C-8438-4D55-A132-BB1400FFB195"/> | ||
<code code="196401000000100" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="Non-consultation data"> | ||
<originalText>Summary Event Entry</originalText> | ||
</code> | ||
<statusCode code="COMPLETE"/> | ||
<effectiveTime> | ||
<center nullFlavor="NI"/> | ||
</effectiveTime> | ||
<availabilityTime value="20230912"/> | ||
<author contextControlCode="OP" typeCode="AUT"> | ||
<time value="20230912165630"/> | ||
<agentRef classCode="AGNT"> | ||
<id root="FD5FD24C-D657-1C3B-2F42-8334EC23A810"/> | ||
</agentRef> | ||
</author> | ||
<Participant2 contextControlCode="OP" typeCode="RESP"> | ||
<agentRef classCode="AGNT"> | ||
<id root="FD5FD24C-D657-1C3B-2F42-8334EC23A810"/> | ||
</agentRef> | ||
</Participant2> | ||
<component typeCode="COMP"> | ||
<CompoundStatement classCode="BATTERY" moodCode="EVN"> | ||
<id root="B7170865-DAFF-43F4-BE52-BB0979E745EB"/> | ||
<code code="254063019" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="O/E - blood pressure reading"> | ||
<translation code="246..00" codeSystem="2.16.840.1.113883.2.1.6.2" displayName="O/E - blood pressure reading"/> | ||
</code> | ||
<statusCode code="COMPLETE"/> | ||
<effectiveTime> | ||
<center nullFlavor="NI"/> | ||
</effectiveTime> | ||
<availabilityTime value="20230912"/> | ||
<component contextConductionInd="true" typeCode="COMP"> | ||
<ObservationStatement classCode="OBS" moodCode="EVN"> | ||
<id root="E1EE7567-D740-4DCF-A676-CDB52B65E2EB"/> | ||
<code code="120159016" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="Systolic arterial pressure"> | ||
<translation code="2469.00" codeSystem="2.16.840.1.113883.2.1.6.2" displayName="O/E - Systolic BP reading"/> | ||
</code> | ||
<statusCode code="COMPLETE"/> | ||
<effectiveTime> | ||
<center nullFlavor="NI"/> | ||
</effectiveTime> | ||
<availabilityTime value="20230912"/> | ||
<value unit="1" value="120" xsi:type="PQ"> | ||
<translation value="120"> | ||
<originalText>mmHg</originalText> | ||
</translation> | ||
</value> | ||
</ObservationStatement> | ||
</component> | ||
<component contextConductionInd="true" typeCode="COMP"> | ||
<ObservationStatement classCode="OBS" moodCode="EVN"> | ||
<id root="7E50A4D4-745A-4E5B-BFA6-39228D1D9F68"/> | ||
<code code="2734671000000117" codeSystem="2.16.840.1.113883.2.1.3.2.4.15" displayName="Diastolic arterial pressure"> | ||
<translation code="246A.00" codeSystem="2.16.840.1.113883.2.1.6.2" displayName="O/E - Diastolic BP reading"/> | ||
</code> | ||
<statusCode code="COMPLETE"/> | ||
<effectiveTime> | ||
<center nullFlavor="NI"/> | ||
</effectiveTime> | ||
<availabilityTime value="20230912"/> | ||
<value unit="1" value="80" xsi:type="PQ"> | ||
<translation value="80"> | ||
<originalText>mmHg</originalText> | ||
</translation> | ||
</value> | ||
</ObservationStatement> | ||
</component> | ||
<component contextConductionInd="true" typeCode="COMP"> | ||
<NarrativeStatement classCode="OBS" moodCode="EVN"> | ||
<id root="6D9AF82E-E989-49E9-B9DB-D8AF6AB4ED23"/> | ||
<text>test uncat data</text> | ||
<statusCode code="COMPLETE"/> | ||
<availabilityTime value="20230912"/> | ||
</NarrativeStatement> | ||
</component> | ||
</CompoundStatement> | ||
</component> | ||
</ehrComposition> | ||
</component> | ||
</ehrFolder> | ||
</component> | ||
</EhrExtract> |