Back To Index  <<  Back To Templates

 Template  [1] Dokument zlecenia na zaopatrzenie w wyroby medyczne

Template 2.16.840.1.113883.3.4424.13.10.1.5 - plCdaMedicalEquipmentPrescription
Id 2.16.840.1.113883.3.4424.13.10.1.5
Classification CDA document level template
Relationship Specialization: template 2.16.840.1.113883.3.4424.13.10.1.2 (2014‑09‑23)
Context Pathname /
Version 1.2 valid from 2017‑01‑28 status Under develeopment
Open/Closed Open (other than defined elements are allowed)
Description CDA template for a prescription for medical equipment or product
Used by / Uses
Used by / Uses 12 templates
Uses Template id Name Version
2.16.840.1.113883.3.4424.13.10.2.29 plCdaMedicalEquipmentPrescriptionRecordTarget DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.4 plCdaBaseAuthor DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.20 plCdaP1BaseCustodian DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.61 plCdaBaseInformationRecipient DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.63 plCdaP1BaseLegalAuthenticator DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.19 plCdaBaseUnderwriterParticipant DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.53 plCdaBaseInFulfillmentOf DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.21 plCdaP1BaseRelatedDocument DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.30 plCdaMedicalEquipmentPrescriptionComponent DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.11 plExtEntitlementDocument DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.13 plExtCoverageEligibilityConfirmation DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.45 plExtHealthcareProvisionSpecialEntitlement DYNAMIC
Example
<ClinicalDocument classCode="DOCCLIN" moodCode="EVN">
  <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/>
  <templateId root="2.16.840.1.113883.3.4424.13.10.1.1"/>
  <templateId root="2.16.840.1.113883.3.4424.13.10.1.2"/>
  <templateId root="2.16.840.1.113883.3.4424.13.10.1.5" extension="1.2"/>
  <id extension="4532" root="1.2.3.999"/>
  <code code="57829-4" codeSystem="2.16.840.1.113883.6.1" displayName="Prescription for medical equipment or product Document">
    <translation code="02.81" codeSystem="2.16.840.1.113883.3.4424.11.1.32" displayName="Zlecenie na zaopatrzenie w wyroby medyczne"/>
  </code>
  <title>Zlecenie na zaopatrzenie w wyroby medyczne</title>
  <effectiveTime value="20140923152414"/>
  <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
  <languageCode code="pl-PL"/>
  <setId root="1.2.3.998" extension="9876"/>
  <versionNumber value="1"/>
  <!-- include template plCdaMedicalEquipmentPrescriptionRecordTarget (dynamic) 1..1 M -->
  <!-- include template plCdaBaseAuthor (dynamic) 1..1 M -->
  <!-- include template plCdaP1BaseCustodian (dynamic) 1..1 M -->
  <!-- include template plCdaBaseInformationRecipient (dynamic) 0..* 0 -->
  <!-- include template plCdaReferralAndMedEquipmentPrescriptionLegalAuthenticator (dynamic) 1..1 M -->
  <!-- include template plCdaBaseUnderwriterParticipant (dynamic) 0..1 O -->
  <!-- include template plCdaBaseInFulfillmentOf (dynamic) 0..* 0 -->
  <!-- include template plCdaP1BaseRelatedDocument (dynamic) 0..1 O -->
  <!-- include template plCdaMedicalEquipmentPrescriptionComponent (dynamic) 1..1 M -->
  <extPL:pertinentInformaction typeCode="PERT">
    <!-- template plExtEntitlementDocument (dynamic) -->
  </extPL:pertinentInformaction>
  <extPL:pertinentInformaction typeCode="PERT">
    <!-- template plExtCoverageEligibilityConfirmation (dynamic) -->
  </extPL:pertinentInformaction>
  <extPL:pertinentInformaction typeCode="PERT">
    <!-- template plExtHealthcareProvisionSpecialEntitlement (dynamic) -->
  </extPL:pertinentInformaction>
</ClinicalDocument>
Item DT Card Conf Description Label
hl7:ClinicalDocument
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F DOCCLIN
@moodCode
0 .. 1 F EVN
hl7:typeId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@extension
1 .. 1 F POCD_HD000040
@root
1 .. 1 F 2.16.840.1.113883.1.3
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.1.1
@extension
0 NP NP/not present
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.1.2
@extension
0 NP NP/not present
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.1.5
@extension
st 0 .. 1  
hl7:id
II 1 .. 1 R (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1  
@extension
st 1 .. 1  
hl7:code
CE 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@code
1 .. 1 F 57829-4
@codeSystem
1 .. 1 F 2.16.840.1.113883.6.1
@codeSystemName
1 .. 1 F LOINC
@displayName
1 .. 1 F Prescription for medical equipment or product Document
hl7:translation
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@code
1 .. 1 F 02.81
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.11.1.32
@codeSystemName
1 .. 1 F KLAS_DOK_P1
@displayName
1 .. 1 F Zlecenie na zaopatrzenie w wyroby medyczne
hl7:qualifier
1 .. 1 M (plCdaMedicalEquipmentPrescription)
hl7:name
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@code
1 .. 1 F TZLECWM
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.13.5.1
@codeSystemName
1 .. 1 F PolskieKlasyfikatoryHL7v3
@displayName
1 .. 1 F Tryb zlecenia na zapotrzebowanie wyrobu medycznego
hl7:value
1 .. 1 M (plCdaMedicalEquipmentPrescription)
CONF
The value of @code shall be drawn from value set 2.16.840.1.113883.3.4424.13.11.12 Tryb zlecenia na zaopatrzenie (DYNAMIC)
hl7:title
ST 1 .. 1 M (plCdaMedicalEquipmentPrescription)
hl7:effectiveTime
TS 1 .. 1 M (plCdaMedicalEquipmentPrescription)
Schematron assert role  error
test concat(substring(@value,1,4),'-',substring(@value,5,2),'-',substring(@value,7,2)) castable as xs:date
Message Pierwsze 8 cyfr daty powinno być w formacie YYYYMMDD.
hl7:confidentialityCode
CE 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@code
1 .. 1 F N
@codeSystem
1 .. 1 F 2.16.840.1.113883.5.25
hl7:languageCode
CS 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@code
1 .. 1 F pl-PL
hl7:setId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
hl7:versionNumber
INT 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@value
int 1 .. 1 F 1
Included from 2.16.840.1.113883.3.4424.13.10.2.29 [2] Dane pacjenta dla dokumentu zlecenia na zaopatrzenie w wyroby medyczne (DYNAMIC) 1 .. 1 Required Mandatory
hl7:recordTarget
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F RCT
@contextControlCode
0 .. 1 F OP
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.3
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.29
hl7:patientRole
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F PAT
hl7:id
II 1 .. * M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1  
@extension
st 1 .. 1  
Schematron report role  error
test @root='2.16.840.1.113883.3.4424.1.1.616' and not(matches(string(@extension),'^[0-9]{11}$'))
Message Jeżeli identyfikatorem jest numer PESEL, to musi zawierać 11 cyfr.
Included from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC) 1 .. 2 Required Mandatory
hl7:addr
1 .. 2 M (plCdaMedicalEquipmentPrescription)
@nullFlavor
cs 0 .. 1 F UNK
hl7:country
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:postalCode
0 .. 1 (plCdaMedicalEquipmentPrescription)
@xsi:type
0 .. 1 F
@postCity
st 0 .. 1  
hl7:city
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:streetName
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:houseNumber
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:unitID
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:unitType
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:censusTract
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
Schematron report role  error
test not(@nullFlavor) and ((not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:postalCode))
Message Dla polskiego adresu wymagane jest podanie kodu pocztowego.
Schematron report role  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city)
Message Dla polskiego adresu wymagane jest podanie miasta.
Schematron report role  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:houseNumber)
Message Dla polskiego adresu wymagane jest podanie numeru domu.
Schematron assert role  error
test not(hl7:censusTract) or starts-with(hl7:censusTract,'TERYT TERC:') or starts-with(hl7:censusTract,'TERYT SIMC:')
Message Poprawnie zapisany numer TERYT powinien zaczynać się od znaków: "TERYT TERC:" lub "TERYT SIMC:".
Schematron report role  error
test @nullFlavor and count(./*) > 1
Message Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.
hl7:patient
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F PSN
@determinerCode
0 .. 1 F INSTANCE
hl7:id
II 0 .. * NP (plCdaMedicalEquipmentPrescription)
Included from 2.16.840.1.113883.3.4424.13.10.7.2 [7] Nazwisko i imię osoby (bazowy) (DYNAMIC) 1 .. 1 Required Mandatory
hl7:name
1 .. 1 M (plCdaMedicalEquipmentPrescription)
hl7:prefix
ENXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:given
ENXP 1 .. * R (plCdaMedicalEquipmentPrescription)
hl7:family
ENXP 1 .. * R (plCdaMedicalEquipmentPrescription)
hl7:administrativeGenderCode
CE 0 .. 1 (plCdaMedicalEquipmentPrescription)
CONF
The value of @code shall be drawn from value set 2.16.840.1.113883.1.11.1 AdministrativeGender (DYNAMIC)
hl7:birthTime
TS.DATE 0 .. 1 (plCdaMedicalEquipmentPrescription)
Schematron assert role  error
test concat(substring(@value,1,4),'-',substring(@value,5,2),'-',substring(@value,7,2)) castable as xs:date
Message Pierwsze 8 cyfr daty urodzenia powinno być w formacie YYYYMMDD.
hl7:guardian
0 .. * (plCdaMedicalEquipmentPrescription)
@classCode
1 .. 1 F GUARD
hl7:id
II 0 .. * (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1  
@extension
st 1 .. 1  
Schematron report role  error
test @root='2.16.840.1.113883.3.4424.1.1.616' and not(matches(string(@extension),'^[0-9]{11}$'))
Message Jeżeli identyfikatorem jest numer PESEL to musi zawierać 11 cyfr.
hl7:code
CE 0 .. 1 (plCdaMedicalEquipmentPrescription)
@codeSystem
1 .. 1 F 2.16.840.1.113883.5.111
Included from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC) 0 .. *
hl7:addr
0 .. * (plCdaMedicalEquipmentPrescription)
@nullFlavor
cs 0 .. 1 F UNK
hl7:country
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:postalCode
0 .. 1 (plCdaMedicalEquipmentPrescription)
@xsi:type
0 .. 1 F
@postCity
st 0 .. 1  
hl7:city
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:streetName
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:houseNumber
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:unitID
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:unitType
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:censusTract
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
Schematron report role  error
test not(@nullFlavor) and ((not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:postalCode))
Message Dla polskiego adresu wymagane jest podanie kodu pocztowego.
Schematron report role  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city)
Message Dla polskiego adresu wymagane jest podanie miasta.
Schematron report role  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:houseNumber)
Message Dla polskiego adresu wymagane jest podanie numeru domu.
Schematron assert role  error
test not(hl7:censusTract) or starts-with(hl7:censusTract,'TERYT TERC:') or starts-with(hl7:censusTract,'TERYT SIMC:')
Message Poprawnie zapisany numer TERYT powinien zaczynać się od znaków: "TERYT TERC:" lub "TERYT SIMC:".
Schematron report role  error
test @nullFlavor and count(./*) > 1
Message Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.
Choice min 1 element(s) and max 1 element(s). Elements to choose from:
  • hl7:guardianPerson containing hl7:templateId from template [2] Osoba (bazowy) (DYNAMIC)
  • hl7:guardianOrganization containing hl7:templateId from template [2] Organizacja (bazowy) (DYNAMIC)
hl7:guardianPerson
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.1']
(plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC)
hl7:guardianOrganization
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2']
(plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC)
extPL:multipleBirthInd
BL 0 .. 1 (plCdaMedicalEquipmentPrescription)
extPL:multipleBirthOrderNumber
INT.POS 0 .. 1 (plCdaMedicalEquipmentPrescription)
Schematron report role  error
test extPL:multipleBirthInd/@value and not(extPL:multipleBirthOrderNumber/@value)
Message Dla ciąży mnogiej wymagane jest podanie numeru kolejności urodzenia.
hl7:providerOrganization
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2']
0 .. 1 (plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC)
Schematron report role  error
test count(hl7:addr) = 2 and not(count(hl7:addr[@use='PST']) = 1)
Message Jeżeli dokument zawiera dwa adresy pacjenta, to jeden z nich musi być adresem korespondencyjnym.
Included from 2.16.840.1.113883.3.4424.13.10.2.4 [2] Autor dokumentu (bazowy) (DYNAMIC) 1 .. 1 Required Mandatory
hl7:author
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F AUT
@contextControlCode
0 .. 1 F OP
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.4
hl7:time
TS 1 .. 1 M (plCdaMedicalEquipmentPrescription)
Schematron assert role  error
test (@value=/hl7:ClinicalDocument/hl7:legalAuthenticator/hl7:time/@value) or (@value=/hl7:ClinicalDocument/hl7:authenticator/hl7:time/@value)
Message Data utworzenia dokumentu powinna być taka sama jak data wystawienia lub autoryzacji dokumentu.
hl7:assignedAuthor
1 .. 1 R (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F ASSIGNED
hl7:id
II 1 .. * M (plCdaMedicalEquipmentPrescription)
hl7:assignedPerson
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.1']
0 .. 1 (plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC)
Schematron report role  error
test not(hl7:assignedPerson/hl7:name) and not(((hl7:id/@root = /hl7:ClinicalDocument/hl7:legalAuthenticator/hl7:assignedEntity/hl7:id/@root) and (hl7:id/@extension = /hl7:ClinicalDocument/hl7:legalAuthenticator/hl7:assignedEntity/hl7:id/@extension)) or ((hl7:id/@root = /hl7:ClinicalDocument/hl7:authenticator/hl7:assignedEntity/hl7:id/@root) and (hl7:id/@extension = /hl7:ClinicalDocument/hl7:authenticator/hl7:assignedEntity/hl7:id/@extension)))
Message Jeśli autor dokumentu jest osobą autoryzującą dokument to jego identyfikator musi być identyczny z identyfikatorem jednej z osób autoryzujących dokument. W przeciwnym wypadku należy podać dane personalne autora.
hl7:dataEnterer
NP (plCdaMedicalEquipmentPrescription)
hl7:informant
NP (plCdaMedicalEquipmentPrescription)
Included from 2.16.840.1.113883.3.4424.13.10.2.20 [2] Organizacja odpowiedzialna za dokument dla P1 (DYNAMIC) 1 .. 1 Required Mandatory
hl7:custodian
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F CST
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.5
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.20
hl7:assignedCustodian
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F ASSIGNED
hl7:representedCustodianOrganization
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F ORG
@determinerCode
0 .. 1 F INSTANCE
hl7:id
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424
@extension
st 0 NP NP/not present
@assigningAuthorityName
st 1 .. 1 F CSIOZ
@displayable
bl 1 .. 1  
hl7:name
ON 0 .. * NP (plCdaMedicalEquipmentPrescription)
hl7:telecom
TEL 0 .. * NP (plCdaMedicalEquipmentPrescription)
hl7:addr
AD 0 .. * NP (plCdaMedicalEquipmentPrescription)
Included from 2.16.840.1.113883.3.4424.13.10.2.61 [2] Odbiorca informacji (bazowy) (DYNAMIC) 0 .. *
hl7:informationRecipient
0 .. * (plCdaMedicalEquipmentPrescription)
@typeCode
cs 1 .. 1  
  CONF
The value of @typeCode shall be drawn from value set 2.16.840.1.113883.1.11.19366 x_InformationRecipient (DYNAMIC)
hl7:intendedRecipient
1 .. 1 (plCdaMedicalEquipmentPrescription)
@classCode
cs 1 .. 1  
  CONF
@classCode shall be "ASSIGNED"
hl7:id
II 0 .. * R (plCdaMedicalEquipmentPrescription)
Included from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC) 0 .. *
hl7:addr
0 .. * (plCdaMedicalEquipmentPrescription)
@nullFlavor
cs 0 .. 1 F UNK
hl7:country
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:postalCode
0 .. 1 (plCdaMedicalEquipmentPrescription)
@xsi:type
0 .. 1 F
@postCity
st 0 .. 1  
hl7:city
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:streetName
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:houseNumber
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:unitID
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:unitType
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:censusTract
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
Schematron report role  error
test not(@nullFlavor) and ((not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:postalCode))
Message Dla polskiego adresu wymagane jest podanie kodu pocztowego.
Schematron report role  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city)
Message Dla polskiego adresu wymagane jest podanie miasta.
Schematron report role  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:houseNumber)
Message Dla polskiego adresu wymagane jest podanie numeru domu.
Schematron assert role  error
test not(hl7:censusTract) or starts-with(hl7:censusTract,'TERYT TERC:') or starts-with(hl7:censusTract,'TERYT SIMC:')
Message Poprawnie zapisany numer TERYT powinien zaczynać się od znaków: "TERYT TERC:" lub "TERYT SIMC:".
Schematron report role  error
test @nullFlavor and count(./*) > 1
Message Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.
hl7:telecom
TEL 0 .. * (plCdaMedicalEquipmentPrescription)
hl7:informationRecipient
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.1']
0 .. 1 (plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC)
hl7:receivedOrganization
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2']
0 .. 1 (plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC)
Included from 2.16.840.1.113883.3.4424.13.10.2.63 [2] Wystawca dokumentu dla P1 (DYNAMIC) 1 .. 1 Required Mandatory
hl7:legalAuthenticator
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F LA
@contextControlCode
0 .. 1 F OP
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.6
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.63
hl7:time
TS 1 .. 1 R (plCdaMedicalEquipmentPrescription)
hl7:signatureCode
CS 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@code
1 .. 1 F S
hl7:assignedEntity
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F ASSIGNED
hl7:id
II 1 .. * M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1  
@extension
st 1 .. 1  
hl7:code
CE 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@displayName
st 1 .. 1  
CONF
The value of @code shall be drawn from value set 2.16.840.1.113883.3.4424.13.11.37 Zawód medyczny (DYNAMIC)
Included from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC) 0 .. *
hl7:addr
0 .. * (plCdaMedicalEquipmentPrescription)
@nullFlavor
cs 0 .. 1 F UNK
hl7:country
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:postalCode
0 .. 1 (plCdaMedicalEquipmentPrescription)
@xsi:type
0 .. 1 F
@postCity
st 0 .. 1  
hl7:city
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:streetName
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:houseNumber
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:unitID
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:unitType
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
hl7:censusTract
ADXP 0 .. 1 (plCdaMedicalEquipmentPrescription)
Schematron report role  error
test not(@nullFlavor) and ((not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:postalCode))
Message Dla polskiego adresu wymagane jest podanie kodu pocztowego.
Schematron report role  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city)
Message Dla polskiego adresu wymagane jest podanie miasta.
Schematron report role  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:houseNumber)
Message Dla polskiego adresu wymagane jest podanie numeru domu.
Schematron assert role  error
test not(hl7:censusTract) or starts-with(hl7:censusTract,'TERYT TERC:') or starts-with(hl7:censusTract,'TERYT SIMC:')
Message Poprawnie zapisany numer TERYT powinien zaczynać się od znaków: "TERYT TERC:" lub "TERYT SIMC:".
Schematron report role  error
test @nullFlavor and count(./*) > 1
Message Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.
hl7:telecom
TEL 0 .. * (plCdaMedicalEquipmentPrescription)
hl7:assignedPerson
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.1']
1 .. 1 M (plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC)
Choice min 1 element(s) and max 1 element(s). Elements to choose from:
  • hl7:representedOrganization containing hl7:templateId from template [2] Praktyka medyczna (bazowy) (DYNAMIC)
  • hl7:representedOrganization containing hl7:templateId from template [2] Jednostka podmiotu wykonującego działalność leczniczą (bazowy) (DYNAMIC)
  • hl7:representedOrganization containing hl7:templateId from template [2] Komórka podmiotu wykonującego działalność leczniczą (bazowy) (DYNAMIC)
  • hl7:representedOrganization containing hl7:templateId from template [2] Apteka (bazowy) (DYNAMIC)
hl7:representedOrganization
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2' and hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.15']
0 .. 1 (plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.15 [2] Praktyka medyczna (bazowy) (DYNAMIC)
hl7:representedOrganization
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2' and hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.17']
0 .. 1 (plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.17 [2] Jednostka podmiotu wykonującego działalność leczniczą (bazowy) (DYNAMIC)
hl7:representedOrganization
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2' and hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.18']
0 .. 1 (plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.18 [2] Komórka podmiotu wykonującego działalność leczniczą (bazowy) (DYNAMIC)
hl7:representedOrganization
where
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2' and hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.31']
0 .. 1 (plCdaMedicalEquipmentPrescription)
Contains 2.16.840.1.113883.3.4424.13.10.2.31 [2] Apteka (bazowy) (DYNAMIC)
Included from 2.16.840.1.113883.3.4424.13.10.2.44 [2] Dane umowy związanej z refundacją (DYNAMIC) 0 .. 1
extPL:boundedBy
0 .. 1 (plCdaMedicalEquipmentPrescription)
@typeCode
cs 1 .. 1 F PART
extPL:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.44
extPL:reimbursementRelatedContract
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@classCode
cs 1 .. 1 F CNTRCT
@moodCode
cs 1 .. 1 F EVN
Choice min 1 element(s) and max 1 element(s). Elements to choose from:
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.4']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.5']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.6']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.7']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.8']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.8']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.9']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.10']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.11']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.12']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.13']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.14']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.15']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.16']
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.1
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.2
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.3
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.4
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.5
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.6
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.7
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.8
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.8
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.9
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.10
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.11
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.12
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.13
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.14
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.15
@extension
st 1 .. 1  
extPL:id
0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.8.6.16
@extension
st 1 .. 1  
extPL:code
0 .. 1 (plCdaMedicalEquipmentPrescription)
extPL:bounding
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@typeCode
cs 1 .. 1 F PART
extPL:reimburser
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@classCode
cs 1 .. 1 F UNDWRT
extPL:id
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.3.1
@extension
st 1 .. 1  
Schematron report role  error
test (hl7:id/@root='2.16.840.1.113883.3.4424.1.6.2' and not(hl7:code/@code=('LEK','LEKD','FEL'))) or (hl7:id/@root='2.16.840.1.113883.3.4424.1.6.3' and not(hl7:code/@code=('PIEL','POL'))) or (hl7:id/@root='2.16.840.1.113883.3.4424.1.6.1' and not(hl7:code/@code=('FARM'))) or (hl7:id/@root='2.16.840.1.113883.3.4424.1.6.4' and not(hl7:code/@code=('DLAB')))
Message Wskazana pula numerów Prawa Wykonywania Zawodu jest nieprawidłowa w stosunku do wskazanego zawodu wystawcy dokumentu
hl7:authenticator
NP (plCdaMedicalEquipmentPrescription)
Included from 2.16.840.1.113883.3.4424.13.10.2.19 [2] Dane ubezpieczyciela (bazowy) (DYNAMIC) 0 .. 1
hl7:participant
0 .. 1 (plCdaMedicalEquipmentPrescription)
@typeCode
cs 1 .. 1 F IND
@contextControlCode
0 .. 1 F OP
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.19
hl7:associatedEntity
1 .. 1 R (plCdaMedicalEquipmentPrescription)
@classCode
cs 1 .. 1 F UNDWRT
Choice min 1 element(s) and max 1 element(s). Elements to choose from:
  • hl7:id[@root='2.16.840.1.113883.3.4424.3.1']
  • hl7:id[@root='2.16.840.1.113883.3.4424.11.1.49']
hl7:id
II 0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.3.1
@extension
st 1 .. 1  
hl7:id
II 0 .. 1 (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.11.1.49
@extension
st 1 .. 1  
Included from 2.16.840.1.113883.3.4424.13.10.2.53 [2] Dane zlecenia (bazowy) (DYNAMIC) 0 .. *
hl7:inFulfillmentOf
0 .. * (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F FLFS
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.53
hl7:order
1 .. 1 (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F ACT
@moodCode
1 .. 1 F RQO
hl7:id
II 1 .. * M (plCdaMedicalEquipmentPrescription)
hl7:code
CE 0 .. 1 (plCdaMedicalEquipmentPrescription)
@codeSystem
1 .. 1 F 2.16.840.1.113883.5.4
hl7:priorityCode
CE 0 .. 1 (plCdaMedicalEquipmentPrescription)
CONF
The value of @code shall be drawn from value set 2.16.840.1.113883.1.11.16866 ActPriority (DYNAMIC)
hl7:documentationOf
NP (plCdaMedicalEquipmentPrescription)
Included from 2.16.840.1.113883.3.4424.13.10.2.21 [2] Dokument powiązany dla P1 (DYNAMIC) 0 .. 1
hl7:relatedDocument
0 .. 1 (plCdaMedicalEquipmentPrescription)
@typeCode
cs 1 .. 1  
  CONF
@typeCode shall be "RPLC"
or
@typeCode shall be "APND"
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.7
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.21
hl7:parentDocument
1 .. 1 R (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F DOCCLIN
@moodCode
0 .. 1 F EVN
hl7:id
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
hl7:setId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
hl7:versionNumber
INT 1 .. 1 M (plCdaMedicalEquipmentPrescription)
hl7:authorization
NP (plCdaMedicalEquipmentPrescription)
hl7:componentOf
NP (plCdaMedicalEquipmentPrescription)
Included from 2.16.840.1.113883.3.4424.13.10.2.30 [2] Treść dokumentu zlecenia na zaopatrzenie w wyroby medyczne (DYNAMIC) 1 .. 1 Required Mandatory
hl7:component
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F COMP
@contextConductionInd
bl 0 .. 1  
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.8
hl7:templateId
II 1 .. 1 M (plCdaMedicalEquipmentPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.30
Choice min 1 element(s) and max 1 element(s). Elements to choose from:
  • hl7:structuredBody[hl7:component/hl7:section/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.55']
  • hl7:structuredBody[not(hl7:component/hl7:section/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.55')]
hl7:structuredBody
where
[hl7:component/hl7:section/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.55']
0 .. 1 (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F DOCBODY
@moodCode
0 .. 1 F EVN
hl7:component
where
[hl7:section [hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.55' and hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.58']]
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F COMP
Contains 2.16.840.1.113883.3.4424.13.10.3.58 [3] Sekcja postaci binarnej dokumentu zlecenia na zaopatrzenie w wyroby medyczne (DYNAMIC)
Schematron assert role  error
test not(hl7:component[not(hl7:section/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.55')])
Message Jeżeli w dokumencie znajduje się sekcja postaci binarnej dokumentu, to nie może występować sekcja innego typu.
hl7:structuredBody
where
[not(hl7:component/hl7:section/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.55')]
0 .. 1 (plCdaMedicalEquipmentPrescription)
@classCode
0 .. 1 F DOCBODY
@moodCode
0 .. 1 F EVN
hl7:component
where
[hl7:section [hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.8']]
1 .. 1 M (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F COMP
Contains 2.16.840.1.113883.3.4424.13.10.3.8 [3] Sekcja zlecenia wydania wyrobu medycznego (DYNAMIC)
hl7:component
where
[hl7:section [hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.2']]
0 .. 1 (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F COMP
Contains 2.16.840.1.113883.3.4424.13.10.3.2 [3] Sekcja informacji dodatkowych (DYNAMIC)
hl7:component
where
[hl7:section [hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.3.39']]
0 .. 1 (plCdaMedicalEquipmentPrescription)
@typeCode
0 .. 1 F COMP
Contains 2.16.840.1.113883.3.4424.13.10.3.39 [3] Sekcja załączników (DYNAMIC)
Schematron report role  error
test count(//(hl7:observation|hl7:substanceAdministration|hl7:supply|hl7:procedure|hl7:encounter|hl7:act|hl7:externalDocument)[not(ancestor::hl7:section/hl7:templateId[@root='2.16.840.1.113883.3.4424.13.10.3.55']) and not(ancestor::hl7:entryRelationship) and not(hl7:text/hl7:reference)])>0
Message Element text dla danego wyrażenia klinicznego jest wymagany, ze wskazaniem referencji do odpowiedniego elementu section.text.
extPL:pertinentInformation
where
[extPL:entitlementDocument]
0 .. * (plCdaMedicalEquipmentPrescription)
@typeCode
cs 1 .. 1 F PERT
Contains 2.16.840.1.113883.3.4424.13.10.2.11 [2] Dokumenty uprawnień (rozszerzenie) (DYNAMIC)
extPL:pertinentInformation
where
[extPL:coverageEligibilityConfirmation]
0 .. 1 (plCdaMedicalEquipmentPrescription)
@typeCode
cs 1 .. 1 F PERT
Contains 2.16.840.1.113883.3.4424.13.10.2.13 [2] Potwierdzenie ubezpieczenia w NFZ (rozszerzenie) (DYNAMIC)
extPL:pertinentInformation
where
[extPL:coveragePlan]
0 .. * (plCdaMedicalEquipmentPrescription)
@typeCode
cs 1 .. 1 F PERT
Contains 2.16.840.1.113883.3.4424.13.10.2.45 [2] Uprawnienie dodatkowe do świadczeń opieki zdrowotnej (rozszerzenie) (DYNAMIC)
Variable let Name versionLabel
Value 1.2
Schematron assert role  error
test count(hl7:templateId[@root and @extension=$versionLabel])=1
Message Nie występuje prawidłowe oznaczenie zgodności dokumentu z daną wersją wydania Polskiej Implementacji Krajowej HL7 CDA.
Schematron assert role  error
test /processing-instruction('xml-stylesheet') = concat('href="CDA_PL_IG_',/hl7:ClinicalDocument/hl7:templateId[@extension]/@extension,'.xsl" type="text/xsl"')
Message Nieprawidłowe wskazanie transformaty generującej warstwę prezentacyjną dokumentu.