Constraint Descriptor : crc_conf_docof21 (type: ERROR, kind: )

Constraint : crc_conf_docof21

Constraint Name
crc_conf_docof21 (type: ERROR, kind: )
Constraint Class
CathReportContentDocument
Package
crc
Description
documentationOf/serviceEvent SHALL contain one or two [1..2] @typeCode="PPRF" Primary Performer (CodeSystem: HL7ParticipationType 2.16.840.1.113883.5.90). This is for the case where both a cath and PCI are performed in the same procedure. (CONF:8521-CRC) (CRC : 6.3.2)
OCL
self.documentationOf->forAll(doc : POCDMT000040DocumentationOf |
	doc.serviceEvent.oclIsUndefined() or 
	doc.serviceEvent.performer->select(perf : POCDMT000040Performer1 | 
		(not perf.typeCode.oclIsUndefined()) and 
		perf.typeCode=XServiceEventPerformer::PPRF
	)->size()<3 and 
	doc.serviceEvent.performer->select(perf : POCDMT000040Performer1 | 
		(not perf.typeCode.oclIsUndefined()) and 
		perf.typeCode=XServiceEventPerformer::PPRF
	)->size()>0
)