Constraint Descriptor : asipstructmin1182 (type: ERROR, kind: Vocabulary)

Constraint : asipstructmin1182

Constraint Name
asipstructmin1182 (type: ERROR, kind: Vocabulary)
Constraint Class
CDASubstanceAdministration
Package
asipstructmin
Description
In CDA SubstanceAdministration, the code of /hl7:substanceAdministration[hl7:templateId/@root='2.16.840.1.113883.10.12.308']/hl7:reference/hl7:externalObservation/hl7:code SHALL have codeSystem='2.16.840.1.113883.5.4'
OCL
self.reference.externalObservation.code->forAll( (not nullFlavor.oclIsUndefined()) or (((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.4')))