Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.ccd.tests.MedicationActivityTest

NameTestsErrorsFailuresTime(s)Time StampHost
MedicationActivityTest28002.2112013-01-31T13:34:14JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetReactionObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.007
testGetPatientInstructions

Constraint

OCL

SuccessInvalid XML

Valid XML

0.006
testValidateMedicationActivityMoodCode

Constraint

Consol Medication Activity SHALL contain exactly one [1..1] @moodCode, where the @code SHALL be selected from ValueSet MoodCodeEvnInt 2.16.840.1.113883.11.20.9.18 STATIC 2011-04-03 (CONF:7497)

OCL

not self.moodCode.oclIsUndefined() and self.moodCode.oclIsKindOf(vocab::x_DocumentSubstanceMood) and let value : vocab::x_DocumentSubstanceMood = self.moodCode.oclAsType(vocab::x_DocumentSubstanceMood) in value = vocab::x_DocumentSubstanceMood::EVN or value = vocab::x_DocumentSubstanceMood::INT

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3" moodCode="RQO"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.006
testValidateMedicationActivityHasDoseQuantityOrRateQuantity

Constraint

CCD Medication Activity SHOULD satisfy: Contains exactly one doseQuantity or rateQuantity. (CONF-311)

OCL

not self.doseQuantity.oclIsUndefined() or not self.rateQuantity.oclIsUndefined()

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<rateQuantity/>
</substanceadministration>

0.011
testValidateMedicationActivityHasConsents

Constraint

CCD Medication Activity MAY satisfy: Has one or more associated consents, represented in the CCD Header as ClinicalDocument / authorization / consent. (CONF-314)

OCL

self.getClinicalDocument().authorization->size() > 0 and self.getClinicalDocument().authorization.consent->size() > 0

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<authorization>
<consent>
<code/>
</consent>
</authorization>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
<entry>
<substanceAdministration classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
</substanceAdministration>
</entry>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.069
testValidateMedicationActivityInformationSource

Constraint

CCD Medication Activity SHALL satisfy: Contains one or more sources of information. (CONF-315)

OCL

not self.informant->isEmpty() or not self.getSection().informant->isEmpty()or not self.getClinicalDocument().informant->isEmpty()or self.reference->exists(ref : cda::Reference | ref.typeCode = vocab::x_ActRelationshipExternalReference::XCRPT)or (self.entryRelationship->exists(rel : cda::EntryRelationship | rel.typeCode = vocab::x_ActRelationshipEntryRelationship::REFR and rel.observation.code.code = '48766-0'))

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<informant/>
</substanceadministration>

0.018
testValidateMedicationActivityHasPreconditionCriterion

Constraint

CCD Medication Activity MAY satisfy: Contains one or more precondition / Criterion, to indicate that the medication is administered only when the associated (coded or free text) criteria are met. (CONF-327)

OCL

self.precondition->exists(precondition : cda::Precondition | not precondition.criterion.oclIsUndefined())

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<precondition>
<criterion/>
</precondition>
</substanceadministration>

0.064
testValidateMedicationActivityHasReason

Constraint

CCD Medication Activity MAY satisfy: Contains one or more entryRelationship, where the value for @typeCode is "RSON" "Has reason" 2.16.840.1.113883.5.1002 ActRelationshipType STATIC. (CONF-328)

OCL

self.entryRelationship->exists(entryRel : cda::EntryRelationship | entryRel.typeCode = vocab::x_ActRelationshipEntryRelationship::RSON)

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship typeCode="RSON"/>
</substanceadministration>

0.004
testValidateMedicationActivityHasReasonProblem

Constraint

CCD Medication Activity SHALL satisfy: entryRelationship / @typeCode="RSON" in a medication activity has a target of problem act (templateId 2.16.840.1.113883.10.20.1.27), problem observation (templateId 2.16.840.1.113883.10.20.1.28), or some other clinical statement. (CONF-329)

OCL

self.getEntryRelationshipTargets(vocab::x_ActRelationshipEntryRelationship::RSON, cda::ClinicalStatement)->forAll(target : cda::ClinicalStatement | not target.oclIsUndefined() and (target.oclIsKindOf(ccd::ProblemAct) or target.oclIsKindOf(ccd::ProblemObservation)))

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<entryRelationship typeCode="RSON">
<observation/>
</entryRelationship>
</substanceadministration>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship typeCode="RSON">
<act/>
</entryRelationship>
</substanceadministration>

0.009
testValidateMedicationActivityHasProduct

Constraint

CCD Medication Activity SHALL satisfy: Contains exactly one consumable, the target of which is a Product template. (CONF-354)

OCL

self.consumable.manufacturedProduct.oclIsKindOf(ccd::Product)

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<consumable>
<manufacturedProduct/>
</consumable>
</substanceadministration>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<consumable>
<manufacturedProduct/>
</consumable>
</substanceadministration>

0.009
testValidateMedicationActivityTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:7499, CONF:10504 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.16"

OCL

self.templateId->exists(id : datatypes::II | id.root = '2.16.840.1.113883.10.20.22.4.16')

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.005
testValidateMedicationActivityId

Constraint

Consol Medication Activity SHALL contain at least one [1..*] id (CONF:7500)

OCL

(self.id->isEmpty() or self.id->exists(element | element.isNullFlavorUndefined())) implies (not self.id->isEmpty())

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<id/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.009
testValidateMedicationActivityStatusCode

Constraint

Consol Medication Activity SHALL contain exactly one [1..1] statusCode (CONF:7507)

OCL

(self.statusCode.oclIsUndefined() or self.statusCode.isNullFlavorUndefined()) implies (not self.statusCode.oclIsUndefined())

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<statusCode code="completed"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.010
testValidateMedicationActivityEffectiveTime

Constraint

CCD Medication Activity SHOULD contain at least one [1..*] effectiveTime (CONF-308)

OCL

(self.effectiveTime->isEmpty() or self.effectiveTime->exists(element | element.isNullFlavorUndefined())) implies (not self.effectiveTime->isEmpty())

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<effectiveTime xsi:type="IVL_TS"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
</substanceadministration>

0.011
testValidateMedicationActivityMaxDoseQuantity

Constraint

Consol Medication Activity MAY contain zero or one [0..1] maxDoseQuantity (CONF:7518)

OCL

(self.maxDoseQuantity.oclIsUndefined() or self.maxDoseQuantity.isNullFlavorUndefined()) implies (not self.maxDoseQuantity.oclIsUndefined())

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<maxDoseQuantity/>
</substanceadministration>

0.038
testValidateMedicationActivityRouteCode

Constraint

Consol Medication Activity MAY contain zero or one [0..1] routeCode, where the @code SHALL be selected from ValueSet Medication Route FDA Value Set 2.16.840.1.113883.3.88.12.3221.8.7 STATIC 1 (CONF:7514)

OCL

(self.routeCode.oclIsUndefined() or self.routeCode.isNullFlavorUndefined()) implies (not self.routeCode.oclIsUndefined() and self.routeCode.oclIsKindOf(datatypes::CE) and let value : datatypes::CE = self.routeCode.oclAsType(datatypes::CE) in value.codeSystem = '2.16.840.1.113883.3.26.1.1' and (value.code = 'C38192' or value.code = 'C38193' or value.code = 'C38194' or value.code = 'C38675' or value.code = 'C38197' or value.code = 'C38633' or value.code = 'C38205' or value.code = 'C38206' or value.code = 'C38208' or value.code = 'C38209' or value.code = 'C38210' or value.code = 'C38211' or value.code = 'C38212' or value.code = 'C38200' or value.code = 'C38215' or value.code = 'C38219' or value.code = 'C38220' or value.code = 'C38221' or value.code = 'C38222' or value.code = 'C38223' or value.code = 'C38224' or value.code = 'C38225' or value.code = 'C38226' or value.code = 'C38227' or value.code = 'C38228' or value.code = 'C38229' or value.code = 'C38230' or value.code = 'C38231' or value.code = 'C38232' or value.code = 'C38233' or value.code = 'C38234' or value.code = 'C38217' or value.code = 'C38218' or value.code = 'C38235' or value.code = 'C38238' or value.code = 'C38239' or value.code = 'C38240' or value.code = 'C38241' or value.code = 'C38242' or value.code = 'C38243' or value.code = 'C38245' or value.code = 'C38246' or value.code = 'C38247' or value.code = 'C38249' or value.code = 'C38250' or value.code = 'C38251' or value.code = 'C38252' or value.code = 'C38253' or value.code = 'C38254' or value.code = 'C28161' or value.code = 'C38255' or value.code = 'C38256' or value.code = 'C38257' or value.code = 'C38258' or value.code = 'C38259' or value.code = 'C38260' or value.code = 'C38261' or value.code = 'C38262' or value.code = 'C38263' or value.code = 'C38264' or value.code = 'C38265' or value.code = 'C38266' or value.code = 'C38267' or value.code = 'C38207' or value.code = 'C38268' or value.code = 'C38269' or value.code = 'C38270' or value.code = 'C38272' or value.code = 'C38273' or value.code = 'C38276' or value.code = 'C38277' or value.code = 'C38278' or value.code = 'C38280' or value.code = 'C38203' or value.code = 'C38281' or value.code = 'C38282' or value.code = 'C38284' or value.code = 'C38285' or value.code = 'C48623' or value.code = 'C38286' or value.code = 'C38287' or value.code = 'C38288' or value.code = 'C38289' or value.code = 'C38291' or value.code = 'C38676' or value.code = 'C38292' or value.code = 'C38677' or value.code = 'C38293' or value.code = 'C38294' or value.code = 'C38295' or value.code = 'C38216' or value.code = 'C38296' or value.code = 'C38198' or value.code = 'C38297' or value.code = 'C38298' or value.code = 'C38299' or value.code = 'C38300' or value.code = 'C38301' or value.code = 'C38304' or value.code = 'C38305' or value.code = 'C38283' or value.code = 'C38307' or value.code = 'C38308' or value.code = 'C38309' or value.code = 'C38312' or value.code = 'C38271'))

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode code="C38194" codeSystem="2.16.840.1.113883.3.26.1.1"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.014
testValidateMedicationActivityDoseQuantity

Constraint

Consol Medication Activity SHOULD contain zero or one [0..1] doseQuantity (CONF:7516)

OCL

(self.doseQuantity.oclIsUndefined() or self.doseQuantity.isNullFlavorUndefined()) implies (not self.doseQuantity.oclIsUndefined())

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<doseQuantity/>
</substanceadministration>

0.010
testValidateMedicationActivityRateQuantity

Constraint

Consol Medication Activity MAY contain zero or one [0..1] rateQuantity (CONF:7517)

OCL

(self.rateQuantity.oclIsUndefined() or self.rateQuantity.isNullFlavorUndefined()) implies (not self.rateQuantity.oclIsUndefined())

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<rateQuantity/>
</substanceadministration>

0.009
testValidateMedicationActivityMedicationSeriesNumberObservation

Constraint

CCD Medication Activity MAY contain exactly one [1..1] entryRelationship (CONF-338, CONF-339) Contains @typeCode="SUBJ" SUBJ, and Contains exactly one [1..1] Medication Series Number Observation (templateId: 2.16.840.1.113883.10.20.1.46)

OCL

self.entryRelationship->one(entryRelationship : cda::EntryRelationship | not entryRelationship.observation.oclIsUndefined() and entryRelationship.observation.oclIsKindOf(ccd::MedicationSeriesNumberObservation) and entryRelationship.typeCode = vocab::x_ActRelationshipEntryRelationship::SUBJ)

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</substanceadministration>

0.011
testValidateMedicationActivityMedicationStatusObservation

Constraint

CCD Medication Activity MAY contain exactly one [1..1] entryRelationship (CONF-350) Contains exactly one [1..1] Medication Status Observation (templateId: 2.16.840.1.113883.10.20.1.47)

OCL

self.entryRelationship->one(entryRelationship : cda::EntryRelationship | not entryRelationship.observation.oclIsUndefined() and entryRelationship.observation.oclIsKindOf(ccd::MedicationStatusObservation))

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship>
<observation/>
</entryRelationship>
</substanceadministration>

0.009
testValidateMedicationActivityPatientInstruction

Constraint

CCD Medication Activity MAY contain at least one [1..*] entryRelationship (CONF-330, CONF-333) Contains @typeCode="SUBJ" SUBJ, and Contains exactly one [1..1] Patient Instruction (templateId: 2.16.840.1.113883.10.20.1.49)

OCL

self.entryRelationship->exists(entryRelationship : cda::EntryRelationship | not entryRelationship.act.oclIsUndefined() and entryRelationship.act.oclIsKindOf(ccd::PatientInstruction) and entryRelationship.typeCode = vocab::x_ActRelationshipEntryRelationship::SUBJ)

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship typeCode="SUBJ">
<act/>
</entryRelationship>
</substanceadministration>

0.009
testValidateMedicationActivityPerformer

Constraint

Consol Medication Activity MAY contain zero or one [0..1] performer (CONF:7522) Contains exactly one [1..1] CDA Performer2

OCL

self.performer->one(performer : cda::Performer2 | not performer.oclIsUndefined() and performer.oclIsKindOf(rim::Participation))

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<performer/>
</substanceadministration>

0.007
testValidateMedicationActivityReactionObservation

Constraint

Consol Medication Activity MAY contain zero or one [0..1] entryRelationship (CONF:7552, CONF:7544, CONF:16091) Contains @typeCode="CAUS" CAUS, and Contains exactly one [1..1] Reaction Observation (templateId: 2.16.840.1.113883.10.20.22.4.9)

OCL

self.entryRelationship->one(entryRelationship : cda::EntryRelationship | not entryRelationship.observation.oclIsUndefined() and entryRelationship.observation.oclIsKindOf(consol::ReactionObservation) and entryRelationship.typeCode = vocab::x_ActRelationshipEntryRelationship::CAUS)

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<entryRelationship typeCode="CAUS">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.9"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</substanceadministration>

0.010
testValidateMedicationActivityProductInstance

Constraint

CCD Medication Activity MAY contain at least one [1..*] participant (CONF-368) Contains exactly one [1..1] Product Instance (templateId: 2.16.840.1.113883.10.20.1.52)

OCL

self.participant->exists(participant : cda::Participant2 | not participant.participantRole.oclIsUndefined() and participant.participantRole.oclIsKindOf(ccd::ProductInstance))

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<participant>
<participantRole/>
</participant>
</substanceadministration>

0.009
testGetMedicationSeriesNumberObservation

Constraint

OCL

SuccessInvalid XML

Valid XML

0.008
testGetMedicationStatusObservation

Constraint

OCL

SuccessInvalid XML

Valid XML

0.007
testGetProductInstances

Constraint

OCL

SuccessInvalid XML

Valid XML

0.230
Properties »