In Pharmaceutical Advice Section, in /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2']/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.2.2'], the attribute root SHALL be present OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.2.2')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Section, in /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2'], the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.2.2'] SHALL not have nullFlavor (mandatory) (Item : 6.3.3.1) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.2.2')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Section, /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.2.2'] (Item : 6.3.3.1) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.2.2')->size()<2 In Pharmaceutical Advice Section, /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2'] SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.2.2'] (Item : 6.3.3.1) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Pharmaceutical Advice Section, /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2'] SHALL contain at least ONE hl7:id (Item : 6.3.3.2.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.id->size()>0 In Pharmaceutical Advice Section, in /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2']/hl7:code, the attribute code SHALL be present OCL self.code->forAll((not nullFlavor.oclIsUndefined()) or (not code.oclIsUndefined())) In Pharmaceutical Advice Section, in /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2']/hl7:code, the attribute code SHALL have the value '61357-0' if present OCL self.code->forAll(code.oclIsUndefined() or code='61357-0') In Pharmaceutical Advice Section, in /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2']/hl7:code, the attribute codeSystem SHALL have the value '2.16.840.1.113883.6.1' if present OCL self.code->forAll(codeSystem.oclIsUndefined() or codeSystem='2.16.840.1.113883.6.1') In Pharmaceutical Advice Section, in /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2'], the element(s) hl7:code SHALL not have nullFlavor (mandatory) (Item : 6.3.3.2) OCL self.code->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Section, /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2'] SHALL contain at least ONE hl7:code (Item : 6.3.3.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.code->size()>0 In Pharmaceutical Advice Section, in /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2']/hl7:entry/hl7:observation/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the attribute root SHALL be present OCL self.entry.observation.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.3')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Section, /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2'] SHALL contain at most ONE hl7:entry OCL self.entry->size()<2 In Pharmaceutical Advice Section, /hl7:section[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.2.2'] SHALL contain at least ONE hl7:entry OCL (not self.nullFlavor.oclIsUndefined()) or self.entry->size()>0 In Pharmacy Pharmaceutical Advice Specification, in /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.1.2'], the attribute root SHALL be present OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.1.2')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmacy Pharmaceutical Advice Specification, in /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2'], the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.1.2'] SHALL not have nullFlavor (mandatory) (Item : 6.3.1.2.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.1.2')->forAll(nullFlavor.oclIsUndefined()) In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.1.2'] (Item : 6.3.1.2.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.1.2')->size()<2 In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2'] SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.1.2'] (Item : 6.3.1.2.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Pharmacy Pharmaceutical Advice Specification, in /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.1.1'], the attribute root SHALL be present OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.1.1')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.1.1'] (Item : 6.3.1.1.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.1.1')->size()<2 In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2'] SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.1.1'] (Item : 6.3.1.1.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Pharmacy Pharmaceutical Advice Specification, in /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:code, the attribute code SHALL be present OCL self.code->forAll((not nullFlavor.oclIsUndefined()) or (not code.oclIsUndefined())) In Pharmacy Pharmaceutical Advice Specification, in /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:code, the attribute code SHALL have the value '61356-2' if present OCL self.code->forAll(code.oclIsUndefined() or code='61356-2') In Pharmacy Pharmaceutical Advice Specification, in /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:code, the attribute codeSystem SHALL have the value '2.16.840.1.113883.6.1' if present OCL self.code->forAll(codeSystem.oclIsUndefined() or codeSystem='2.16.840.1.113883.6.1') In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:recordTarget/hl7:patientRole/hl7:patient SHALL contain at least ONE hl7:name OCL self.recordTarget.patientRole.patient->forAll(name->size()>0) In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:recordTarget/hl7:patientRole/hl7:patient SHALL contain at least ONE hl7:administrativeGenderCode OCL self.recordTarget.patientRole.patient->forAll(not administrativeGenderCode.oclIsUndefined()) In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:recordTarget/hl7:patientRole/hl7:patient SHALL contain at least ONE hl7:birthTime OCL self.recordTarget.patientRole.patient->forAll(not birthTime.oclIsUndefined()) In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:author/hl7:assignedAuthor/hl7:assignedPerson SHALL contain at least ONE hl7:name OCL self.author.assignedAuthor.assignedPerson->forAll(name->size()>0) In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:author/hl7:assignedAuthor/hl7:representedOrganization SHALL contain at least ONE hl7:name OCL self.author.assignedAuthor.representedOrganization->forAll(name->size()>0) In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:author/hl7:assignedAuthor/hl7:representedOrganization SHALL contain at least ONE hl7:addr OCL self.author.assignedAuthor.representedOrganization->forAll(addr->size()>0) In Pharmacy Pharmaceutical Advice Specification, in /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:component/hl7:structuredBody/hl7:component/hl7:section/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.2.2'], the attribute root SHALL be present OCL self.component.structuredBody.component.section.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.2.2')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmacy Pharmaceutical Advice Specification, in /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:component/hl7:structuredBody, the element(s) hl7:component SHALL not have nullFlavor (mandatory) OCL self.component.structuredBody.component->forAll(nullFlavor.oclIsUndefined()) In Pharmacy Pharmaceutical Advice Specification, /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.1.2']/hl7:component SHALL contain at least ONE hl7:structuredBody OCL self.component->forAll(not structuredBody.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the attribute classCode SHALL have the value 'ACT' if present OCL self.classCode.oclIsUndefined() or self.classCode=XActClassDocumentEntryAct::ACT In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the attribute moodCode SHALL have the value 'EVN' if present OCL self.moodCode.oclIsUndefined() or self.moodCode=XDocumentActMood::EVN In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.5'], the attribute typeCode SHALL have the value 'SUBJ' if present OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.5'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::SUBJ) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.5']/hl7:observation/hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.5'], the attribute root SHALL be present OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.5')).observation.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.5')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.5']/hl7:observation, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.5'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.5')).observation.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.5')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.5']/hl7:observation SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.5'] OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.5')).observation->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.5')->size()<2) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.5']/hl7:observation SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.5'] OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.5')).observation->forAll(templateId->size()>0) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.6'], the attribute typeCode SHALL have the value 'SUBJ' if present OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.6'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::SUBJ) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.6']/hl7:observation/hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.6'], the attribute root SHALL be present OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.6')).observation.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.6')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.6']/hl7:observation, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.6'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.6')).observation.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.6')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.6']/hl7:observation SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.6'] OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.6')).observation->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.6')->size()<2) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.6']/hl7:observation SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.6'] OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.6')).observation->forAll(templateId->size()>0) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the number of elements of type 'entryRelationship', 'entryRelationship' SHALL be bigger or equal to 1 (Item : 6.3.4.4.3.8) OCL (entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.5'))->size()+entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.6'))->size())>=1 In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7'], the attribute typeCode SHALL have the value 'REFR' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::REFR) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7'], the attribute inversionInd SHALL have the value 'false' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7'))->forAll(inversionInd.oclIsUndefined() or inversionInd=false) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration, the attribute classCode SHALL have the value 'SBADM' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration->forAll(classCode.oclIsUndefined() or classCode=ActClass::SBADM) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration, the attribute moodCode SHALL have the value 'INT' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration->forAll(moodCode.oclIsUndefined() or moodCode=XDocumentSubstanceMood::INT) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.7'], the attribute root SHALL be present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.7')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.7'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.7')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.7'] OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.7')->size()<2) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.7'] OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration->forAll(templateId->size()>0) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4'], the attribute typeCode SHALL have the value 'REFR' if present OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::REFR) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4']/hl7:supply/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.4'], the attribute root SHALL be present OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4')).supply.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.4')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4']/hl7:supply, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.4'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4')).supply.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.4')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4']/hl7:supply SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.4'] OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4')).supply->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.4')->size()<2) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4']/hl7:supply SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.4'] OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4')).supply->forAll(templateId->size()>0) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at most ONE hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4'] OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4'))->size()<2 In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the number of elements of type 'entryRelationship', 'entryRelationship', 'entryRelationship', 'entryRelationship', 'entryRelationship', 'entryRelationship' SHALL be lower or equal to 1 OCL (entryRelationship->select((not substanceAdministration.code.code.oclIsUndefined()) and substanceAdministration.code.code='MTPItem')->size()+entryRelationship->select((not substanceAdministration.code.code.oclIsUndefined()) and substanceAdministration.code.code='PREItem')->size()+entryRelationship->select((not supply.code.code.oclIsUndefined()) and supply.code.code='DISItem')->size()+entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.2'))->size()+entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7'))->size()+entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4'))->size())<=1 In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:templateId[@root='2.16.840.1.113883.10.20.1.27'], the attribute root SHALL be present OCL self.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.20.1.27')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the element(s) hl7:templateId[@root='2.16.840.1.113883.10.20.1.27'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.4.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.20.1.27')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at most ONE hl7:templateId[@root='2.16.840.1.113883.10.20.1.27'] (Item : 6.3.4.4.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.20.1.27')->size()<2 In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at least ONE hl7:templateId[@root='2.16.840.1.113883.10.20.1.27'] (Item : 6.3.4.4.3.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.5.1'], the attribute root SHALL be present OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.5.1')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.5.1'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.4.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.5.1')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.5.1'] (Item : 6.3.4.4.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.5.1')->size()<2 In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.5.1'] (Item : 6.3.4.4.3.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the attribute root SHALL be present OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.5')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.4.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.5')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.5'] (Item : 6.3.4.4.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.5')->size()<2 In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.5'] (Item : 6.3.4.4.3.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at most ONE hl7:id (Item : 6.3.4.4.3.3) OCL self.id->size()<2 In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at least ONE hl7:id (Item : 6.3.4.4.3.3) OCL (not self.nullFlavor.oclIsUndefined()) or self.id->size()>0 In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:code, the attribute nullFlavor SHALL be present OCL self.code->forAll(not nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:code, the attribute nullFlavor SHALL have the value 'NA' if present OCL self.code->forAll(nullFlavor.oclIsUndefined() or nullFlavor=NullFlavor::NA) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:text, the element(s) hl7:reference SHALL not have nullFlavor (mandatory) OCL self.text.reference->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:text SHALL contain at least ONE hl7:reference OCL self.text->forAll(not reference.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:statusCode, the attribute code SHALL be present OCL self.statusCode->forAll((not nullFlavor.oclIsUndefined()) or (not code.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:statusCode, the attribute code SHALL have the value 'active' if present OCL self.statusCode->forAll(code.oclIsUndefined() or code='active') In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the element(s) hl7:statusCode SHALL not have nullFlavor (mandatory) (Item : 6.3.4.4.3.6) OCL self.statusCode->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at least ONE hl7:statusCode (Item : 6.3.4.4.3.6) OCL (not self.nullFlavor.oclIsUndefined()) or self.statusCode->size()>0 In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the element(s) hl7:effectiveTime SHALL not have nullFlavor (mandatory) (Item : 6.3.4.4.3.7) OCL self.effectiveTime->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at least ONE hl7:effectiveTime (Item : 6.3.4.4.3.7) OCL (not self.nullFlavor.oclIsUndefined()) or self.effectiveTime->size()>0 In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.1'], the attribute typeCode SHALL have the value 'SUBJ' if present OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.1'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::SUBJ) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.1'], the attribute inversionInd SHALL be present OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.1'))->forAll((not nullFlavor.oclIsUndefined()) or (not inversionInd.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.1'], the attribute inversionInd SHALL have the value 'true' if present OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.1'))->forAll(inversionInd.oclIsUndefined() or inversionInd=true) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.1']/hl7:observation/hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.1'], the attribute root SHALL be present OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.1')).observation.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.1')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Concern Entry Content Module, in /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.1']/hl7:observation, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.1'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.1')).observation.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.1')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.1']/hl7:observation SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.1'] OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.1')).observation->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.1')->size()<2) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.1']/hl7:observation SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.1'] OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.1')).observation->forAll(templateId->size()>0) In Pharmaceutical Advice Concern Entry Content Module, /hl7:act[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL contain at most ONE hl7:entryRelationship[hl7:observation/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.1'] OCL self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.1'))->size()<2 In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the attribute moodCode SHALL have the value 'EVN' if present OCL self.moodCode.oclIsUndefined() or self.moodCode=XActMoodDocumentObservation::EVN In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the number of elements of type 'entryRelationship', 'entryRelationship' SHALL be lower or equal to 1 (Item : 6.3.4.3.3.10) OCL (entryRelationship->select((not substanceAdministration.code.code.oclIsUndefined()) and substanceAdministration.code.code='PREItem')->size()+entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.2'))->size())<=1 In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the number of elements of type 'entryRelationship', 'entryRelationship' SHALL be bigger or equal to 1 (Item : 6.3.4.3.3.10) OCL (entryRelationship->select((not substanceAdministration.code.code.oclIsUndefined()) and substanceAdministration.code.code='PREItem')->size()+entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.2'))->size())>=1 In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4'], the attribute typeCode SHALL have the value 'REFR' if present OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::REFR) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4']/hl7:supply/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.4'], the attribute root SHALL be present OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4')).supply.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.4')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4']/hl7:supply, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.4'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4')).supply.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.4')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4']/hl7:supply SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.4'] OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4')).supply->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.4')->size()<2) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4']/hl7:supply SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.4'] OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4')).supply->forAll(templateId->size()>0) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'] SHALL contain at most ONE hl7:entryRelationship[hl7:supply/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.4'] OCL self.entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4'))->size()<2 In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the number of elements of type 'entryRelationship', 'entryRelationship' SHALL be lower or equal to 1 (Item : 6.3.4.3.3.11) OCL (entryRelationship->select((not supply.code.code.oclIsUndefined()) and supply.code.code='DISItem')->size()+entryRelationship->select(supply.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.4'))->size())<=1 In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the attribute root SHALL be present OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.3')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.3'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.3.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.3')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.3'] (Item : 6.3.4.3.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.3')->size()<2 In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'] SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.3'] (Item : 6.3.4.3.3.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the element(s) hl7:id SHALL not have nullFlavor (mandatory) (Item : 6.3.4.3.3.3) OCL self.id->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'] SHALL contain at least ONE hl7:id (Item : 6.3.4.3.3.3) OCL (not self.nullFlavor.oclIsUndefined()) or self.id->size()>0 In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the element(s) hl7:code SHALL not have nullFlavor (mandatory) (Item : 6.3.3.2) OCL self.code->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, the code of /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:code SHALL have code='OK'and codeSytem='1.3.6.1.4.1.19376.1.9.2.1' OR SHALL have code='CHANGE'and codeSytem='1.3.6.1.4.1.19376.1.9.2.1' OR SHALL have code='CANCEL'and codeSytem='1.3.6.1.4.1.19376.1.9.2.1' OR SHALL have code='SUSPEND'and codeSytem='1.3.6.1.4.1.19376.1.9.2.1' OR SHALL have code='REFUSE'and codeSytem='1.3.6.1.4.1.19376.1.9.2.1' (Item : 6.3.3.2) OCL self.code->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and code='OK' and ((codeSystem.oclIsUndefined()) or codeSystem='1.3.6.1.4.1.19376.1.9.2.1')) or ((not code.oclIsUndefined()) and code='CHANGE' and ((codeSystem.oclIsUndefined()) or codeSystem='1.3.6.1.4.1.19376.1.9.2.1')) or ((not code.oclIsUndefined()) and code='CANCEL' and ((codeSystem.oclIsUndefined()) or codeSystem='1.3.6.1.4.1.19376.1.9.2.1')) or ((not code.oclIsUndefined()) and code='SUSPEND' and ((codeSystem.oclIsUndefined()) or codeSystem='1.3.6.1.4.1.19376.1.9.2.1')) or ((not code.oclIsUndefined()) and code='REFUSE' and ((codeSystem.oclIsUndefined()) or codeSystem='1.3.6.1.4.1.19376.1.9.2.1'))) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:text, the element(s) hl7:reference SHALL not have nullFlavor (mandatory) OCL self.text.reference->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:text SHALL contain at least ONE hl7:reference OCL self.text->forAll(not reference.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the element(s) hl7:text SHALL not have nullFlavor (mandatory) (Item : 6.3.4.3.3.5) OCL self.text->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'] SHALL contain at least ONE hl7:text (Item : 6.3.4.3.3.5) OCL (not self.nullFlavor.oclIsUndefined()) or self.text->size()>0 In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'], the element(s) hl7:statusCode SHALL not have nullFlavor (mandatory) (Item : 6.3.4.3.3.6) OCL self.statusCode->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'] SHALL contain at least ONE hl7:statusCode (Item : 6.3.4.3.3.6) OCL (not self.nullFlavor.oclIsUndefined()) or self.statusCode->size()>0 In Pharmaceutical Advice Item Entry Content Module, the code of /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:statusCode SHALL have code='active' OR SHALL have code='completed' (Item : 6.3.4.3.3.6) OCL self.statusCode->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and code='active') or ((not code.oclIsUndefined()) and code='completed')) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:effectiveTime, the attribute value SHALL be present OCL self.effectiveTime->forAll((not nullFlavor.oclIsUndefined()) or (not value.oclIsUndefined())) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the attribute typeCode SHALL have the value 'REFR' if present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.5'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::REFR) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the attribute inversionInd SHALL have the value 'false' if present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.5'))->forAll(inversionInd.oclIsUndefined() or inversionInd=false) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:act, the attribute classCode SHALL have the value 'ACT' if present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.5')).act->forAll(classCode.oclIsUndefined() or classCode=XActClassDocumentEntryAct::ACT) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:act, the attribute moodCode SHALL have the value 'EVN' if present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.5')).act->forAll(moodCode.oclIsUndefined() or moodCode=XDocumentActMood::EVN) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:act/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.5'], the attribute root SHALL be present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.5')).act.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.5')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:act, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.5'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.5')).act.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.5')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:act SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.5'] OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.5')).act->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.5')->size()<2) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.5']/hl7:act SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.5'] OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.5')).act->forAll(templateId->size()>0) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7'], the attribute typeCode SHALL have the value 'REFR' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::REFR) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7'], the attribute inversionInd SHALL have the value 'false' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7'))->forAll(inversionInd.oclIsUndefined() or inversionInd=false) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration, the attribute classCode SHALL have the value 'SBADM' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration->forAll(classCode.oclIsUndefined() or classCode=ActClass::SBADM) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration, the attribute moodCode SHALL have the value 'INT' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration->forAll(moodCode.oclIsUndefined() or moodCode=XDocumentSubstanceMood::INT) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.7'], the attribute root SHALL be present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.7')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.7'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.7')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.7'] OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.7')->size()<2) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.7']/hl7:substanceAdministration SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.7'] OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.7')).substanceAdministration->forAll(templateId->size()>0) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6'], the attribute typeCode SHALL have the value 'REFR' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::REFR) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6'], the attribute inversionInd SHALL have the value 'false' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6'))->forAll(inversionInd.oclIsUndefined() or inversionInd=false) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6']/hl7:substanceAdministration, the attribute classCode SHALL have the value 'SBADM' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6')).substanceAdministration->forAll(classCode.oclIsUndefined() or classCode=ActClass::SBADM) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6']/hl7:substanceAdministration, the attribute moodCode SHALL have the value 'INT' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6')).substanceAdministration->forAll(moodCode.oclIsUndefined() or moodCode=XDocumentSubstanceMood::INT) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6']/hl7:substanceAdministration/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.6'], the attribute root SHALL be present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6')).substanceAdministration.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.6')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6']/hl7:substanceAdministration, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.6'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6')).substanceAdministration.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.6')->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6']/hl7:substanceAdministration SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.6'] OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6')).substanceAdministration->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.6')->size()<2) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6']/hl7:substanceAdministration SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.6'] OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6')).substanceAdministration->forAll(templateId->size()>0) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6']/hl7:substanceAdministration/hl7:consumable/hl7:manufacturedProduct/hl7:manufacturedMaterial, the attribute nullFlavor SHALL be present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6')).substanceAdministration.consumable.manufacturedProduct.manufacturedMaterial->forAll(not nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6']/hl7:substanceAdministration/hl7:consumable/hl7:manufacturedProduct/hl7:manufacturedMaterial, the attribute nullFlavor SHALL have the value 'NA' if present OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6')).substanceAdministration.consumable.manufacturedProduct.manufacturedMaterial->forAll(nullFlavor.oclIsUndefined() or nullFlavor=NullFlavor::NA) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6']/hl7:substanceAdministration/hl7:consumable/hl7:manufacturedProduct SHALL contain at least ONE hl7:manufacturedMaterial OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6')).substanceAdministration.consumable.manufacturedProduct->forAll(not manufacturedMaterial.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3'] SHALL contain at most ONE hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.6'] (Item : 6.3.4.3.3.15) OCL self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.9.1.3.6'))->size()<2 In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:reference, the attribute typeCode SHALL have the value 'XCRPT' if present OCL self.reference->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipExternalReference::XCRPT) In Pharmaceutical Advice Item Entry Content Module, in /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:reference/hl7:externalDocument, the element(s) hl7:id SHALL not have nullFlavor (mandatory) OCL self.reference.externalDocument.id->forAll(nullFlavor.oclIsUndefined()) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:reference/hl7:externalDocument SHALL contain at least ONE hl7:id OCL self.reference.externalDocument->forAll(id->size()>0) In Pharmaceutical Advice Item Entry Content Module, /hl7:observation[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.3']/hl7:reference SHALL contain at least ONE hl7:externalDocument OCL self.reference->forAll(not externalDocument.oclIsUndefined()) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the attribute classCode SHALL have the value 'SBADM' if present OCL self.classCode.oclIsUndefined() or self.classCode=ActClass::SBADM In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the attribute moodCode SHALL have the value 'INT' if present (Item : 6.3.4.2.3.1) OCL self.moodCode.oclIsUndefined() or self.moodCode=XDocumentSubstanceMood::INT In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.7.1'] OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.7.1')->size()<2 In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.8'] OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.8')->size()<2 In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.9'] OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.9')->size()<2 In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.10'] OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.10')->size()<2 In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.11'] OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.11')->size()<2 In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the number of elements of type 'templateId', 'templateId', 'templateId', 'templateId', 'templateId' SHALL be bigger or equal to 1 (Item : 6.3.4.2.3.3) OCL (templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.10')->size()+templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.11')->size()+templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.7.1')->size()+templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.8')->size()+templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.9')->size())>=1 In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.2.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.2')->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.2'] (Item : 6.3.4.2.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.2')->size()<2 In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.2'] (Item : 6.3.4.2.3.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the element(s) hl7:templateId[@root='2.16.840.1.113883.10.20.1.24'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.2.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.20.1.24')->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at most ONE hl7:templateId[@root='2.16.840.1.113883.10.20.1.24'] (Item : 6.3.4.2.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.20.1.24')->size()<2 In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at least ONE hl7:templateId[@root='2.16.840.1.113883.10.20.1.24'] (Item : 6.3.4.2.3.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.7'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.2.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.7')->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.7'] (Item : 6.3.4.2.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.7')->size()<2 In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.7'] (Item : 6.3.4.2.3.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at least ONE hl7:id (Item : 6.3.4.2.3.4) OCL (not self.nullFlavor.oclIsUndefined()) or self.id->size()>0 In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:text, the element(s) hl7:reference SHALL not have nullFlavor (mandatory) OCL self.text.reference->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:text SHALL contain at least ONE hl7:reference OCL self.text->forAll(not reference.oclIsUndefined()) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the element(s) hl7:text SHALL not have nullFlavor (mandatory) (Item : 6.3.4.2.3.6) OCL self.text->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at least ONE hl7:text (Item : 6.3.4.2.3.6) OCL (not self.nullFlavor.oclIsUndefined()) or self.text->size()>0 In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:statusCode, the attribute code SHALL be present OCL self.statusCode->forAll((not nullFlavor.oclIsUndefined()) or (not code.oclIsUndefined())) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:statusCode, the attribute code SHALL have the value 'completed' if present OCL self.statusCode->forAll(code.oclIsUndefined() or code='completed') In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the element(s) hl7:statusCode SHALL not have nullFlavor (mandatory) (Item : 6.3.4.2.3.7) OCL self.statusCode->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at least ONE hl7:statusCode (Item : 6.3.4.2.3.7) OCL (not self.nullFlavor.oclIsUndefined()) or self.statusCode->size()>0 In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the element(s) hl7:effectiveTime SHALL be from the datatype IVLTS (Item : 6.3.4.5.3.4) OCL self.effectiveTime->select((not ((not operator.oclIsUndefined()) and operator=SetOperator::A)))->forAll(oclIsKindOf(IVLTS)) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:effectiveTime[@operator='A'], the attribute operator SHALL be present OCL self.effectiveTime->select((not operator.oclIsUndefined()) and operator=SetOperator::A)->forAll((not nullFlavor.oclIsUndefined()) or (not operator.oclIsUndefined())) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at most ONE hl7:effectiveTime[@operator='A'] (Item : 6.3.4.5.3.5) OCL self.effectiveTime->select((not operator.oclIsUndefined()) and operator=SetOperator::A)->size()<2 In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:approachSiteCode/hl7:originalText SHALL contain at least ONE hl7:reference OCL self.approachSiteCode.originalText->forAll(not reference.oclIsUndefined()) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship, the attribute typeCode SHALL have the value 'COMP' if present OCL self.entryRelationship->select((not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.4.1'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1'))) and (not ((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO)))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::COMP) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship, the element(s) hl7:sequenceNumber SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select((not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.4.1'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1'))) and (not ((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO))).sequenceNumber->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship SHALL contain at least ONE hl7:sequenceNumber OCL self.entryRelationship->select((not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.4.1'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1'))) and (not ((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO)))->forAll(not sequenceNumber.oclIsUndefined()) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship/hl7:substanceAdministration/hl7:consumable/hl7:manufacturedProduct/hl7:manufacturedMaterial, the attribute nullFlavor SHALL be present OCL self.entryRelationship->select((not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.4.1'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1'))) and (not ((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO))).substanceAdministration.consumable.manufacturedProduct.manufacturedMaterial->forAll(not nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship/hl7:substanceAdministration/hl7:consumable/hl7:manufacturedProduct/hl7:manufacturedMaterial, the attribute nullFlavor SHALL have the value 'NA' if present OCL self.entryRelationship->select((not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.4.1'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3'))) and (not (act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1'))) and (not ((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO))).substanceAdministration.consumable.manufacturedProduct.manufacturedMaterial->forAll(nullFlavor.oclIsUndefined() or nullFlavor=NullFlavor::NA) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'], the element(s) hl7:repeatNumber SHALL not have nullFlavor (mandatory) (Item : 6.3.4.2.3.9) OCL self.repeatNumber->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2'] SHALL contain at least ONE hl7:repeatNumber (Item : 6.3.4.2.3.9) OCL (not self.nullFlavor.oclIsUndefined()) or self.repeatNumber->size()>0 In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:consumable/hl7:manufacturedProduct, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.7.2'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.1.3.1) OCL self.consumable.manufacturedProduct.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.7.2')->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:consumable/hl7:manufacturedProduct SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.7.2'] (Item : 6.3.4.1.3.1) OCL self.consumable.manufacturedProduct->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.7.2')->size()<2) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:consumable/hl7:manufacturedProduct SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.7.2'] (Item : 6.3.4.1.3.1) OCL self.consumable.manufacturedProduct->forAll(templateId->size()>0) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:consumable/hl7:manufacturedProduct, the element(s) hl7:templateId[@root='2.16.840.1.113883.10.20.1.53'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.1.3.1) OCL self.consumable.manufacturedProduct.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.20.1.53')->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:consumable/hl7:manufacturedProduct SHALL contain at most ONE hl7:templateId[@root='2.16.840.1.113883.10.20.1.53'] (Item : 6.3.4.1.3.1) OCL self.consumable.manufacturedProduct->forAll(templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.20.1.53')->size()<2) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:consumable/hl7:manufacturedProduct SHALL contain at least ONE hl7:templateId[@root='2.16.840.1.113883.10.20.1.53'] (Item : 6.3.4.1.3.1) OCL self.consumable.manufacturedProduct->forAll(templateId->size()>0) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:consumable/hl7:manufacturedProduct/hl7:manufacturedMaterial/hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.1'], the attribute root SHALL be present OCL self.consumable.manufacturedProduct.manufacturedMaterial.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.1')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:author, the element(s) hl7:time SHALL not have nullFlavor (mandatory) OCL self.author.time->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1'], the attribute typeCode SHALL have the value 'RSON' if present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.4.1'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::RSON) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1']/hl7:act/hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1'], the attribute root SHALL be present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.4.1')).act.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1']/hl7:act SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1'] OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.4.1')).act->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1')->size()<2) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1']/hl7:act SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.4.1'] OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.4.1')).act->forAll(templateId->size()>0) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3'], the attribute typeCode SHALL have the value 'SUBJ' if present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::SUBJ) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3'], the attribute inversionInd SHALL be present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3'))->forAll((not nullFlavor.oclIsUndefined()) or (not inversionInd.oclIsUndefined())) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3'], the attribute inversionInd SHALL have the value 'true' if present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3'))->forAll(inversionInd.oclIsUndefined() or inversionInd=true) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3']/hl7:act/hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.3'], the attribute root SHALL be present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3')).act.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.3')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3']/hl7:act, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.3'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3')).act.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.3')->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3']/hl7:act SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.3'] OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3')).act->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.3')->size()<2) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3']/hl7:act SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.3'] OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3')).act->forAll(templateId->size()>0) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1'], the attribute typeCode SHALL have the value 'SUBJ' if present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::SUBJ) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1'], the attribute inversionInd SHALL be present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1'))->forAll((not nullFlavor.oclIsUndefined()) or (not inversionInd.oclIsUndefined())) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1'], the attribute inversionInd SHALL have the value 'true' if present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1'))->forAll(inversionInd.oclIsUndefined() or inversionInd=true) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1']/hl7:act/hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1'], the attribute root SHALL be present OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1')).act.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined())) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1']/hl7:act, the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1'] SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1')).act.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1')->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1']/hl7:act SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1'] OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1')).act->forAll(templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1')->size()<2) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:act/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1']/hl7:act SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.5.3.1.4.3.1'] OCL self.entryRelationship->select(act.templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.5.3.1.4.3.1')).act->forAll(templateId->size()>0) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:supply/@moodCode='RQO'], the attribute typeCode SHALL have the value 'COMP' if present OCL self.entryRelationship->select((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO)->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::COMP) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:supply/@moodCode='RQO']/hl7:supply, the attribute classCode SHALL have the value 'SPLY' if present OCL self.entryRelationship->select((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO).supply->forAll(classCode.oclIsUndefined() or classCode=ActClassSupply::SPLY) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:supply/@moodCode='RQO']/hl7:supply/hl7:independentInd, the attribute value SHALL be present OCL self.entryRelationship->select((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO).supply.independentInd->forAll((not nullFlavor.oclIsUndefined()) or (not value.oclIsUndefined())) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:supply/@moodCode='RQO']/hl7:supply/hl7:independentInd, the attribute value SHALL have the value 'false' if present OCL self.entryRelationship->select((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO).supply.independentInd->forAll(value.oclIsUndefined() or value=false) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:supply/@moodCode='RQO']/hl7:supply, the element(s) hl7:independentInd SHALL not have nullFlavor (mandatory) OCL self.entryRelationship->select((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO).supply.independentInd->forAll(nullFlavor.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:entryRelationship[hl7:supply/@moodCode='RQO']/hl7:supply SHALL contain at least ONE hl7:independentInd OCL self.entryRelationship->select((not supply.moodCode.oclIsUndefined()) and supply.moodCode=XDocumentSubstanceMood::RQO).supply->forAll(not independentInd.oclIsUndefined()) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:reference, the attribute typeCode SHALL have the value 'XCRPT' if present OCL self.reference->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipExternalReference::XCRPT) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:reference/hl7:externalDocument SHALL contain at least ONE hl7:id OCL self.reference.externalDocument->forAll(id->size()>0) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:reference SHALL contain at least ONE hl7:externalDocument OCL self.reference->forAll(not externalDocument.oclIsUndefined()) In Prescription Item Entry Content Module, in /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:precondition/hl7:criterion/hl7:text/hl7:reference, the attribute value SHALL be present OCL self.precondition.criterion.text.reference->forAll((not nullFlavor.oclIsUndefined()) or (not value.oclIsUndefined())) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:precondition/hl7:criterion/hl7:text SHALL contain at least ONE hl7:reference OCL self.precondition.criterion.text->forAll(not reference.oclIsUndefined()) In Prescription Item Entry Content Module, /hl7:substanceAdministration[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.2']/hl7:precondition/hl7:criterion SHALL contain at least ONE hl7:text OCL self.precondition.criterion->forAll(not text.oclIsUndefined()) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1'], the attribute classCode SHALL have the value 'MMAT' if present OCL self.classCode.oclIsUndefined() or self.classCode=EntityClassManufacturedMaterial::MMAT In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1'], the attribute determinerCode SHALL have the value 'KIND' if present OCL self.determinerCode.oclIsUndefined() or self.determinerCode=EntityDeterminerDetermined::KIND In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1'], the element(s) hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.1'] SHALL not have nullFlavor (mandatory) (Item : 6.3.4.1.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.1')->forAll(nullFlavor.oclIsUndefined()) In Medicine Entry Content Module, /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1'] SHALL contain at most ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.1'] (Item : 6.3.4.1.3.2) OCL self.templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.9.1.3.1')->size()<2 In Medicine Entry Content Module, /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1'] SHALL contain at least ONE hl7:templateId[@root='1.3.6.1.4.1.19376.1.9.1.3.1'] (Item : 6.3.4.1.3.2) OCL (not self.nullFlavor.oclIsUndefined()) or self.templateId->size()>0 In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:code/hl7:originalText/hl7:reference, the attribute nullFlavor SHALL have the value 'NA' if present OCL self.code.originalText.reference->forAll(nullFlavor.oclIsUndefined() or nullFlavor=NullFlavor::NA) In Medicine Entry Content Module, /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:code/hl7:originalText SHALL contain at least ONE hl7:reference OCL self.code.originalText->forAll(not reference.oclIsUndefined()) In Medicine Entry Content Module, /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1'] SHALL contain at least ONE hl7:code (Item : 6.3.4.1.3.3) OCL (not self.nullFlavor.oclIsUndefined()) or self.code->size()>0 In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:name, the attribute nullFlavor SHALL have the value 'NA' if present OCL self.name->forAll(nullFlavor.oclIsUndefined() or nullFlavor=NullFlavor::NA) In Medicine Entry Content Module, /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1'] SHALL contain at least ONE hl7:name (Item : 6.3.4.1.3.4) OCL (not self.nullFlavor.oclIsUndefined()) or self.name->size()>0 In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:expirationTime, the attribute value SHALL be present OCL self.expirationTime->forAll((not nullFlavor.oclIsUndefined()) or (not value.oclIsUndefined())) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent, the attribute classCode SHALL have the value 'CONT' if present OCL self.asContent->forAll(classCode.oclIsUndefined() or classCode=RoleClassContent1::CONT) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine, the attribute classCode SHALL have the value 'CONT' if present OCL self.asContent.containerPackagedMedicine->forAll(classCode.oclIsUndefined() or classCode=EntityClassContainer1::CONT) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine, the attribute determinerCode SHALL have the value 'INSTANCE' if present OCL true In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine/hl7:capacityQuantity, the attribute value SHALL be present OCL self.asContent.containerPackagedMedicine.capacityQuantity->forAll((not nullFlavor.oclIsUndefined()) or (not value.oclIsUndefined())) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine, the element(s) hl7:capacityQuantity SHALL not have nullFlavor (mandatory) OCL self.asContent.containerPackagedMedicine.capacityQuantity->forAll(nullFlavor.oclIsUndefined()) In Medicine Entry Content Module, /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine SHALL contain at least ONE hl7:capacityQuantity OCL self.asContent.containerPackagedMedicine->forAll(not capacityQuantity.oclIsUndefined()) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine/hl7:asSuperContent/hl7:containerPackagedMedicine, the attribute classCode SHALL have the value 'CONT' if present OCL self.asContent.containerPackagedMedicine.asSuperContent.containerPackagedMedicine->forAll(classCode.oclIsUndefined() or classCode=EntityClassContainer1::CONT) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine/hl7:asSuperContent/hl7:containerPackagedMedicine, the attribute determinerCode SHALL have the value 'INSTANCE' if present OCL true In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine/hl7:asSuperContent/hl7:containerPackagedMedicine/hl7:capacityQuantity, the attribute value SHALL be present OCL self.asContent.containerPackagedMedicine.asSuperContent.containerPackagedMedicine.capacityQuantity->forAll((not nullFlavor.oclIsUndefined()) or (not value.oclIsUndefined())) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine/hl7:asSuperContent/hl7:containerPackagedMedicine, the element(s) hl7:capacityQuantity SHALL not have nullFlavor (mandatory) OCL self.asContent.containerPackagedMedicine.asSuperContent.containerPackagedMedicine.capacityQuantity->forAll(nullFlavor.oclIsUndefined()) In Medicine Entry Content Module, /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asContent/hl7:containerPackagedMedicine/hl7:asSuperContent/hl7:containerPackagedMedicine SHALL contain at least ONE hl7:capacityQuantity OCL self.asContent.containerPackagedMedicine.asSuperContent.containerPackagedMedicine->forAll(not capacityQuantity.oclIsUndefined()) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asSpecializedKind, the attribute classCode SHALL have the value 'GRIC' if present OCL self.asSpecializedKind->forAll(classCode.oclIsUndefined() or classCode=RoleClassIsSpeciesEntity1::GRIC) In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:asSpecializedKind/hl7:generalizedMedicineClass, the attribute classCode SHALL have the value 'MMAT' if present OCL true In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:ingredient, the attribute classCode SHALL have the value 'ACTI' if present OCL true In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:ingredient/hl7:ingredient, the attribute classCode SHALL have the value 'MMAT' if present OCL true In Medicine Entry Content Module, in /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:ingredient/hl7:ingredient, the attribute determinerCode SHALL have the value 'KIND' if present OCL true In Medicine Entry Content Module, /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:ingredient/hl7:ingredient SHALL contain at most ONE hl7:name OCL self.ingredient.ingredient->forAll(name->size()<2) In Medicine Entry Content Module, /hl7:manufacturedMaterial[hl7:templateId/@root='1.3.6.1.4.1.19376.1.9.1.3.1']/hl7:ingredient/hl7:ingredient SHALL contain at least ONE hl7:name OCL self.ingredient.ingredient->forAll(name->size()>0) The CDA ClinicalDocument SHALL have a templateId equals to '1.3.6.1.4.1.19376.1.9.1.1.2' OCL self.templateId->exists(ii : II | (not ii.root.oclIsUndefined()) and ((ii.root='1.3.6.1.4.1.19376.1.9.1.1.2')))