Skip to content
This repository was archived by the owner on Jan 21, 2023. It is now read-only.

Commit c8f7c1c

Browse files
author
Richard Whitney
committed
IMI Comments
1 parent 63bbd09 commit c8f7c1c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/parser/ccda/sections/medications.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ var exportMedicationsSection = function (version) {
144144
["performer", "0..1", "h:performer", MedicationPerformer],
145145
["supply", "0..1", "h:entryRelationship[@typeCode='REFR']/h:supply", medicationSupplyOrder],
146146
["product", "0..1", "h:product/h:manufacturedProduct", medicationInformation],
147-
["information", "0..1", "h:product/h:manufacturedMaterial", medicationImmunization]
147+
["immunization", "0..1", "h:product/h:manufacturedMaterial", medicationImmunization]
148148
]);
149149

150150
medicationActivity = component.define("medicationActivity")
@@ -159,6 +159,11 @@ var exportMedicationsSection = function (version) {
159159
["performer", "0..1", "h:performer", MedicationPerformer],
160160
["drug_vehicle", "0..1", "h:participant[@typeCode='CSM']/h:participantRole/h:playingEntity[@classCode='MMAT']/h:code", shared.ConceptDescriptor],
161161
["precondition", "1..1", "h:precondition/h:criterion", MedicationPrecondition],
162+
/* array, explained:
163+
[0] => name of array elements;
164+
[1] => cardinality (zero or one, exactly 1, or many);
165+
[2] => ns:xml tag[optional];
166+
[3] => associated var*/
162167
["indication", "0..1", "h:entryRelationship[@typeCode='RSON']/h:observation", MedicationIndication],
163168
//["instructions", "0..1", "h:entryRelationship[@typeCode='REFR']/h:supply/*/*/h:templateId[@root='2.16.840.1.113883.10.20.22.4.20']", MedicationInstructions],
164169
["dispense", "0..1", MedicationDispense.xpath(), MedicationDispense]

0 commit comments

Comments
 (0)