Back To Index  <<  Back To Templates

ref Template  [1] Skierowanie do szpitala psychiatrycznego

Id 2.16.840.1.113883.3.4424.13.10.1.12 Effective Date valid from 2018‑04‑26
Status active Active Version Label 1.2.3
Name plCdaReferralToPsychiatricHospital Display Name [1] Skierowanie do szpitala psychiatrycznego
Description Szablon CDA dokumentu skierowania do szpitala psychiatrycznego
Context Pathname /
Classification CDA Document Level Template
Open/Closed Open (other than defined elements are allowed)
Used by / Uses
Used by 1 transaction and 0 templates, Uses 12 templates
Used by as Name Version
plcda-transaction-10 Transaction final Skierowanie do szpitala psychiatrycznego 2014‑08‑14
Uses as Name Version
2.16.840.1.113883.3.4424.13.10.2.40 Include active [2] Dane pacjenta dla dokumentu skierowania do szpitala psychiatrycznego (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.86 Include active [2] Autor dokumentu skierowania (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.20 Include active [2] Organizacja odpowiedzialna za dokument dla P1 (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.61 Include active [2] Odbiorca informacji (bazowy) (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.6 Include active [2] Wystawca dokumentu (bazowy) (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.19 Include active [2] Dane ubezpieczyciela publicznego (bazowy) (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.53 Include active [2] Dane zlecenia (bazowy) (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.21 Include active [2] Dokument powiązany dla P1 (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.41 Include active [2] Treść dokumentu skierowania do szpitala psychiatrycznego (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.11 Containment active [2] Dokumenty uprawnień (rozszerzenie) (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.13 Containment retired [2] Potwierdzenie ubezpieczenia w NFZ (rozszerzenie) (1.2.3) DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.45 Containment retired [2] Uprawnienie dodatkowe do świadczeń opieki zdrowotnej (rozszerzenie) (1.2.3) DYNAMIC
Relationship Specialization: template 2.16.840.1.113883.3.4424.13.10.1.4 (2017‑01‑02)
Item DT Card Conf Description Label
hl7:ClinicalDocument
1 … 1 M (plCdotstal)
@classCode
0 … 1 F DOCCLIN
@moodCode
0 … 1 F EVN
hl7:typeId
II 1 … 1 M (plCdotstal)
@extension
1 … 1 F POCD_HD000040
@root
1 … 1 F 2.16.840.1.113883.1.3
hl7:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.1.12
@extension
st 0 … 1  
hl7:id
II 1 … 1 R (plCdotstal)
@root
oid 1 … 1 R
@extension
st 1 … 1 R
hl7:code
CE 1 … 1 M (plCdotstal)
@code
CONF 1 … 1 F 57832-8
@codeSystem
1 … 1 F 2.16.840.1.113883.6.1 (LOINC)
@codeSystemName
1 … 1 F LOINC
@displayName
1 … 1 F Prescription for diagnostic or specialist care Document
hl7:translation
1 … 1 M (plCdotstal)
@code
CONF 1 … 1 F 02.10
@codeSystem
1 … 1 F 2.16.840.1.113883.3.4424.11.1.32 (Klasyfikacja dokumentów projektu P1)
@codeSystemName
1 … 1 F KLAS_DOK_P1
@displayName
1 … 1 F Skierowanie na badanie lub leczenie
hl7:title
ST 1 … 1 M (plCdotstal)
  CONF
element content shall be "Skierowanie do szpitala psychiatrycznego"
hl7:effectiveTime
TS 1 … 1 M (plCdotstal)
  Schematron assert role red 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 (plCdotstal)
  CONF
The value of @code shall be drawn from value set x_BasicConfidentialityKind x_BasicConfidentialityKind (DYNAMIC)
hl7:languageCode
CS 1 … 1 M (plCdotstal)
@code
CONF 1 … 1 F pl-PL
hl7:setId
II 1 … 1 M (plCdotstal)
hl7:versionNumber
INT 1 … 1 M (plCdotstal)
Included 1 … 1 M from 2.16.840.1.113883.3.4424.13.10.2.40 [2] Dane pacjenta dla dokumentu skierowania do szpitala psychiatrycznego (DYNAMIC)
hl7:recordTarget
1 … 1 M (plCdotstal)
@typeCode
0 … 1 F RCT
@contextControlCode
0 … 1 F OP
hl7:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.40
hl7:patientRole
1 … 1 M (plCdotstal)
@classCode
0 … 1 F PAT
hl7:id
II 1 … * M (plCdotstal)
@root
oid 1 … 1 R
@extension
st 1 … 1 R
  Schematron report role red 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 1 … 2 M from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC)
hl7:addr
1 … 2 M (plCdotstal)
@nullFlavor
cs 0 … 1 F UNK
hl7:country
ADXP 0 … 1 (plCdotstal)
hl7:postalCode
0 … 1 (plCdotstal)
@xsi:type
0 … 1 F extPL:adxp
@postCity
st 0 … 1  
hl7:city
ADXP 0 … 1 (plCdotstal)
hl7:streetName
ADXP 0 … 1 (plCdotstal)
hl7:houseNumber
ADXP 0 … 1 (plCdotstal)
hl7:unitID
ADXP 0 … 1 (plCdotstal)
hl7:unitType
ADXP 0 … 1 (plCdotstal)
hl7:censusTract
ADXP 0 … 1 (plCdotstal)
  Schematron report role red 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 red 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 red 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 red 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 red 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 (plCdotstal)
@classCode
0 … 1 F PSN
@determinerCode
0 … 1 F INSTANCE
hl7:id
II 0 … * NP (plCdotstal)
Included 1 … 1 R from 2.16.840.1.113883.3.4424.13.10.7.2 [7] Nazwisko i imię osoby (bazowy) (DYNAMIC)
hl7:name
1 … 1 R (plCdotstal)
hl7:prefix
ENXP 0 … 1 (plCdotstal)
hl7:given
ENXP 1 … * R (plCdotstal)
hl7:family
ENXP 1 … * R (plCdotstal)
hl7:birthTime
TS.DATE 0 … 1 (plCdotstal)
  Schematron assert role red 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 … * (plCdotstal)
@classCode
1 … 1 F GUARD
hl7:id
II 0 … * (plCdotstal)
@root
oid 1 … 1 R
@extension
st 1 … 1 R
  Schematron report role red 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 (plCdotstal)
@codeSystem
CONF 0 … 1 F 2.16.840.1.113883.5.111
Included 0 … * from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC)
hl7:addr
0 … * (plCdotstal)
@nullFlavor
cs 0 … 1 F UNK
hl7:country
ADXP 0 … 1 (plCdotstal)
hl7:postalCode
0 … 1 (plCdotstal)
@xsi:type
0 … 1 F extPL:adxp
@postCity
st 0 … 1  
hl7:city
ADXP 0 … 1 (plCdotstal)
hl7:streetName
ADXP 0 … 1 (plCdotstal)
hl7:houseNumber
ADXP 0 … 1 (plCdotstal)
hl7:unitID
ADXP 0 … 1 (plCdotstal)
hl7:unitType
ADXP 0 … 1 (plCdotstal)
hl7:censusTract
ADXP 0 … 1 (plCdotstal)
  Schematron report role red 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 red 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 red 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 red 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 red error  
  test @nullFlavor and count(./*) > 1  
  Message Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.  
Choice 1 … 1 Elements to choose from:
hl7:guardianPerson
Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank treeblank treeblank where [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.2.1']]
hl7:guardianOrganization
Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank treeblank treeblank where [hl7:templateId [@root=''] and hl7:templateId [@root='']]
hl7:birthplace
1 … 1 M (plCdotstal)
@classCode
0 … 1 F BIRTHPL
hl7:place
1 … 1 M (plCdotstal)
@classCode
0 … 1 F PLC
@determinerCode
0 … 1 F INSTANCE
hl7:name
EN 0 … 1 (plCdotstal)
hl7:addr
AD 0 … 1 (plCdotstal)
hl7:country
ADXP 0 … 1 (plCdotstal)
hl7:city
ADXP 0 … 1 (plCdotstal)
extPL:multipleBirthInd
BL 0 … 1 (plCdotstal)
extPL:multipleBirthOrderNumber
INT.POS 0 … 1 (plCdotstal)
extPL:personalRelationship
1 … 1 M Contains 2.16.840.1.113883.3.4424.13.10.2.64 [2] Imię matki (rozszerzenie) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [extPL:templateId [@root='2.16.840.1.113883.3.4424.13.10.2.64']] [not(@nullFlavor)]
@classCode
cs 1 … 1 F PRS
extPL:personalRelationship
1 … 1 M Contains 2.16.840.1.113883.3.4424.13.10.2.65 [2] Imię ojca (rozszerzenie) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [extPL:templateId [@root='2.16.840.1.113883.3.4424.13.10.2.65']] [not(@nullFlavor)]
@classCode
cs 1 … 1 F PRS
  Schematron report role red error  
  test extPL:multipleBirthInd/@value and not(extPL:multipleBirthOrderNumber/@value)  
  Message Dla ciąży mnogiej wymagane jest podanie numeru kolejności urodzenia.  
hl7:providerOrganization
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank where [hl7:templateId [@root=''] and hl7:templateId [@root='']]
  Schematron report role red 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 1 … 1 M from 2.16.840.1.113883.3.4424.13.10.2.86 [2] Autor dokumentu skierowania (DYNAMIC)
hl7:author
1 … 1 M (plCdotstal)
@typeCode
0 … 1 F AUT
@contextControlCode
0 … 1 F OP
hl7:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.86
hl7:functionCode
CE 1 … 1 R (plCdotstal)
  CONF
The value of @code shall be drawn from value set ZawodMedyczny Zawód medyczny (DYNAMIC)
hl7:time
TS 1 … 1 M (plCdotstal)
  Schematron assert role red 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 (plCdotstal)
@classCode
0 … 1 F ASSIGNED
Choice 1 … 1 Elements to choose from:
  • hl7:id[@root='2.16.840.1.113883.3.4424.1.6.2']
  • hl7:id[@root='2.16.840.1.113883.3.4424.1.6.3']
hl7:id
II 0 … 1 (plCdotstal)
treeblank treeblank treeblank treeblank where [@root='2.16.840.1.113883.3.4424.1.6.2']
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.1.6.2
@extension
st 1 … 1 R
hl7:id
II 0 … 1 (plCdotstal)
treeblank treeblank treeblank treeblank where [@root='2.16.840.1.113883.3.4424.1.6.3']
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.1.6.3
@extension
st 1 … 1 R
Choice 1 … 1 Elements to choose from:
  • hl7:code[@codeSystem='2.16.840.1.113883.3.4424.11.3.3']
  • hl7:code[@codeSystem='2.16.840.1.113883.3.4424.11.3.3.1']
hl7:code
CE 0 … 1 (plCdotstal)
treeblank treeblank treeblank treeblank where [@codeSystem='2.16.840.1.113883.3.4424.11.3.3']
  CONF
The value of @code shall be drawn from value set SpecjalnoscLekarza Specjalność lekarza (DYNAMIC)
hl7:code
CE 0 … 1 (plCdotstal)
treeblank treeblank treeblank treeblank where [@codeSystem='2.16.840.1.113883.3.4424.11.3.3.1']
@code
cs 1 … 1 R
@displayName
st 1 … 1 R
@codeSystem
CONF 1 … 1 F 2.16.840.1.113883.3.4424.11.3.3.1 (Mnogie specjalności lekarskie)
Included 0 … * from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC)
hl7:addr
0 … * (plCdotstal)
@nullFlavor
cs 0 … 1 F UNK
hl7:country
ADXP 0 … 1 (plCdotstal)
hl7:postalCode
0 … 1 (plCdotstal)
@xsi:type
0 … 1 F extPL:adxp
@postCity
st 0 … 1  
hl7:city
ADXP 0 … 1 (plCdotstal)
hl7:streetName
ADXP 0 … 1 (plCdotstal)
hl7:houseNumber
ADXP 0 … 1 (plCdotstal)
hl7:unitID
ADXP 0 … 1 (plCdotstal)
hl7:unitType
ADXP 0 … 1 (plCdotstal)
hl7:censusTract
ADXP 0 … 1 (plCdotstal)
  Schematron report role red 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 red 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 red 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 red 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 red 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 … * (plCdotstal)
hl7:assignedPerson
1 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank where [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.2.1']]
Choice 1 … 1 Elements to choose from:
hl7:representedOrganization
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.15 [2] Praktyka medyczna (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.2.15']]
hl7:representedOrganization
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.17 [2] Jednostka podmiotu wykonującego działalność leczniczą (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.2.17']]
hl7:representedOrganization
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.18 [2] Komórka podmiotu wykonującego działalność leczniczą (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.2.18']]
Included 0 … 1 from 2.16.840.1.113883.3.4424.13.10.2.44 [2] Dane umowy związanej z refundacją (DYNAMIC)
extPL:boundedBy
0 … 1 (plCdotstal)
@typeCode
cs 1 … 1 F PART
extPL:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.44
extPL:reimbursementRelatedContract
1 … 1 M (plCdotstal)
@classCode
cs 1 … 1 F CNTRCT
@moodCode
cs 1 … 1 F EVN
Choice 1 … 1 Elements to choose from:
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.1']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.2']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.3']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.4']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.5']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.6']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.7']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.8']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.9']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.10']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.11']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.12']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.13']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.14']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.15']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.1.16']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.1']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.2']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.3']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.4']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.5']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.6']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.7']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.8']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.9']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.10']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.11']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.12']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.13']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.14']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.15']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.2.16']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.1']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.2']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.3']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.4']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.5']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.6']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.7']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.8']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.9']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.10']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.11']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.12']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.13']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.14']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.15']
  • extPL:id[@root='2.16.840.1.113883.3.4424.8.6.3.16']
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.1
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.2
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.3
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.4
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.5
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.6
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.7
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.8
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.9
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.10
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.11
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.12
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.13
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.14
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.15
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.1.16
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.1
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.2
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.3
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.4
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.5
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.6
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.7
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.8
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.9
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.10
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.11
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.12
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.13
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.14
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.15
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.2.16
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.1
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.2
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.3
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.4
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.5
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.6
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.7
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.8
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.9
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.10
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.11
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.12
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.13
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.14
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.15
@extension
st 1 … 1 R
extPL:id
0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.8.6.3.16
@extension
st 1 … 1 R
extPL:code
0 … 1 (plCdotstal)
extPL:bounding
1 … 1 M (plCdotstal)
@typeCode
cs 1 … 1 F PART
extPL:reimburser
1 … 1 M (plCdotstal)
@classCode
cs 1 … 1 F UNDWRT
extPL:id
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.3.1
@extension
st 1 … 1 R
  Schematron report role red error  
  test (hl7:id/@root='2.16.840.1.113883.3.4424.1.6.2' and not(hl7:functionCode/@code=('LEK','LEKD','FEL'))) or (hl7:id/@root='2.16.840.1.113883.3.4424.1.6.3' and not(hl7:functionCode/@code=('PIEL','POL'))) or (hl7:id/@root='2.16.840.1.113883.3.4424.1.6.1' and not(hl7:functionCode/@code=('FARM'))) or (hl7:id/@root='2.16.840.1.113883.3.4424.1.6.4' and not(hl7:functionCode/@code=('DLAB')))  
  Message Wskazana pula numerów Prawa Wykonywania Zawodu jest nieprawidłowa w stosunku do wskazanego zawodu autora dokumentu  
hl7:dataEnterer
NP (plCdotstal)
hl7:informant
NP (plCdotstal)
Included 1 … 1 M from 2.16.840.1.113883.3.4424.13.10.2.20 [2] Organizacja odpowiedzialna za dokument dla P1 (DYNAMIC)
hl7:custodian
1 … 1 M (plCdotstal)
@typeCode
0 … 1 F CST
hl7:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.20
hl7:assignedCustodian
1 … 1 M (plCdotstal)
@classCode
0 … 1 F ASSIGNED
hl7:representedCustodianOrganization
1 … 1 M (plCdotstal)
@classCode
0 … 1 F ORG
@determinerCode
0 … 1 F INSTANCE
hl7:id
II 1 … 1 M (plCdotstal)
@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 R
hl7:name
ON 0 … * NP (plCdotstal)
hl7:telecom
TEL 0 … * NP (plCdotstal)
hl7:addr
AD 0 … * NP (plCdotstal)
Included 0 … * from 2.16.840.1.113883.3.4424.13.10.2.61 [2] Odbiorca informacji (bazowy) (DYNAMIC)
hl7:informationRecipient
0 … * (plCdotstal)
@typeCode
cs 1 … 1 R
  CONF
The value of @typeCode shall be drawn from value set x_InformationRecipient x_InformationRecipient (DYNAMIC)
hl7:intendedRecipient
1 … 1 (plCdotstal)
@classCode
cs 1 … 1 R
  CONF
@classCode shall be "ASSIGNED"
hl7:id
II 0 … * R (plCdotstal)
Included 0 … * from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC)
hl7:addr
0 … * (plCdotstal)
@nullFlavor
cs 0 … 1 F UNK
hl7:country
ADXP 0 … 1 (plCdotstal)
hl7:postalCode
0 … 1 (plCdotstal)
@xsi:type
0 … 1 F extPL:adxp
@postCity
st 0 … 1  
hl7:city
ADXP 0 … 1 (plCdotstal)
hl7:streetName
ADXP 0 … 1 (plCdotstal)
hl7:houseNumber
ADXP 0 … 1 (plCdotstal)
hl7:unitID
ADXP 0 … 1 (plCdotstal)
hl7:unitType
ADXP 0 … 1 (plCdotstal)
hl7:censusTract
ADXP 0 … 1 (plCdotstal)
  Schematron report role red 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 red 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 red 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 red 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 red 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 … * (plCdotstal)
hl7:informationRecipient
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank where [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.2.1']]
hl7:receivedOrganization
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank where [hl7:templateId [@root=''] and hl7:templateId [@root='']]
Included 1 … 1 M from 2.16.840.1.113883.3.4424.13.10.2.6 [2] Wystawca dokumentu (bazowy) (DYNAMIC)
hl7:legalAuthenticator
1 … 1 M (plCdotstal)
@typeCode
0 … 1 F LA
@contextControlCode
0 … 1 F OP
hl7:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.6
hl7:time
TS 1 … 1 R (plCdotstal)
hl7:signatureCode
CS 1 … 1 R (plCdotstal)
  CONF
The value of @code shall be drawn from value set ParticipationSignature ParticipationSignature (DYNAMIC)
hl7:assignedEntity
1 … 1 M (plCdotstal)
@classCode
0 … 1 F ASSIGNED
hl7:id
II 1 … * M (plCdotstal)
@root
oid 1 … 1 R
@extension
st 1 … 1 R
hl7:code
CE 0 … 1 (plCdotstal)
Included 0 … * from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC)
hl7:addr
0 … * (plCdotstal)
@nullFlavor
cs 0 … 1 F UNK
hl7:country
ADXP 0 … 1 (plCdotstal)
hl7:postalCode
0 … 1 (plCdotstal)
@xsi:type
0 … 1 F extPL:adxp
@postCity
st 0 … 1  
hl7:city
ADXP 0 … 1 (plCdotstal)
hl7:streetName
ADXP 0 … 1 (plCdotstal)
hl7:houseNumber
ADXP 0 … 1 (plCdotstal)
hl7:unitID
ADXP 0 … 1 (plCdotstal)
hl7:unitType
ADXP 0 … 1 (plCdotstal)
hl7:censusTract
ADXP 0 … 1 (plCdotstal)
  Schematron report role red 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 red 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 red 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 red 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 red 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 … * (plCdotstal)
hl7:assignedPerson
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank where [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.2.1']]
hl7:representedOrganization
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank where [hl7:templateId [@root=''] and hl7:templateId [@root='']]
  Schematron report role red error  
  test not(hl7:assignedPerson/hl7:name) and not(hl7:id[@root=/hl7:ClinicalDocument/hl7:author/hl7:assignedAuthor/hl7:id/@root and @extension=/hl7:ClinicalDocument/hl7:author/hl7:assignedAuthor/hl7:id/@extension])  
  Message Jeśli wystawca dokumentu jest również jego autorem to identyfikator wystawcy musi być taki sam jak identyfikator autora. W przeciwnym wypadku należy podać dane personalne wystawcy dokumentu.  
hl7:authenticator
NP (plCdotstal)
Included 0 … 1 from 2.16.840.1.113883.3.4424.13.10.2.19 [2] Dane ubezpieczyciela publicznego (bazowy) (DYNAMIC)
hl7:participant
0 … 1 (plCdotstal)
@typeCode
cs 1 … 1 F IND
@contextControlCode
0 … 1 F OP
hl7:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.19
hl7:associatedEntity
1 … 1 R (plCdotstal)
@classCode
cs 1 … 1 F UNDWRT
Choice 1 … 1 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 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.3.1
@extension
st 1 … 1 R
hl7:id
II 0 … 1 (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.11.1.49
@extension
st 1 … 1 R
Included 0 … * from 2.16.840.1.113883.3.4424.13.10.2.53 [2] Dane zlecenia (bazowy) (DYNAMIC)
hl7:inFulfillmentOf
0 … * (plCdotstal)
@typeCode
0 … 1 F FLFS
hl7:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.53
hl7:order
1 … 1 (plCdotstal)
@classCode
0 … 1 F ACT
@moodCode
1 … 1 F RQO
hl7:id
II 1 … * M (plCdotstal)
hl7:code
CE 0 … 1 (plCdotstal)
@codeSystem
CONF 0 … 1 F 2.16.840.1.113883.5.4 (ActCode)
hl7:priorityCode
CE 0 … 1 (plCdotstal)
  CONF
The value of @code shall be drawn from value set ActPriority ActPriority (DYNAMIC)
hl7:documentationOf
NP (plCdotstal)
Included 0 … 1 from 2.16.840.1.113883.3.4424.13.10.2.21 [2] Dokument powiązany dla P1 (DYNAMIC)
hl7:relatedDocument
0 … 1 (plCdotstal)
@typeCode
cs 1 … 1 R
  CONF
@typeCode shall be "RPLC"
or
@typeCode shall be "APND"
hl7:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.21
hl7:parentDocument
1 … 1 R (plCdotstal)
@classCode
0 … 1 F DOCCLIN
@moodCode
0 … 1 F EVN
hl7:id
II 1 … 1 M (plCdotstal)
hl7:setId
II 1 … 1 M (plCdotstal)
hl7:versionNumber
INT 1 … 1 M (plCdotstal)
  Schematron report role red error  
  test hl7:id[@root=/hl7:ClinicalDocument/hl7:id/@root and @extension=/hl7:ClinicalDocument/hl7:id/@extension]  
  Message Idetyfikator dokumentu jest taki sam jak identyfikator dokumentu powiązanego wskazujcego na jego poprzednią wersję.  
  Schematron assert role red error  
  test hl7:setId[@root=/hl7:ClinicalDocument/hl7:setId/@root and @extension=/hl7:ClinicalDocument/hl7:setId/@extension]  
  Message Identyfikator grupy wersji dokumentów (setId) powienien być identyczny dla dokumentu i dokumentu powiązanego wskazującego na jego poprzednią wersję.  
  Schematron assert role red error  
  test (xs:integer(hl7:versionNumber/@value)+1)=xs:integer(/hl7:ClinicalDocument/hl7:versionNumber/@value)  
  Message Dokument powiązany powienien wskazywać poprzednią wersję dokumentu.  
hl7:authorization
NP (plCdotstal)
hl7:componentOf
NP (plCdotstal)
Included 1 … 1 M from 2.16.840.1.113883.3.4424.13.10.2.41 [2] Treść dokumentu skierowania do szpitala psychiatrycznego (DYNAMIC)
hl7:component
1 … 1 M (plCdotstal)
@typeCode
0 … 1 F COMP
@contextConductionInd
bl 0 … 1  
hl7:templateId
II 1 … 1 M (plCdotstal)
@root
oid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.41
Choice 1 … 1 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
0 … 1 (plCdotstal)
treeblank treeblank treeblank where [hl7:component [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.55']]]]
@classCode
0 … 1 F DOCBODY
@moodCode
0 … 1 F EVN
hl7:component
1 … 1 M Contains 2.16.840.1.113883.3.4424.13.10.3.62 [3] Sekcja postaci binarnej dokumentu skierowania do szpitala psychiatrycznego (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.62']]]
@typeCode
0 … 1 F COMP
  Schematron assert role red 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
0 … 1 (plCdotstal)
treeblank treeblank treeblank where [not(hl7:component [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.55']]])]
@classCode
0 … 1 F DOCBODY
@moodCode
0 … 1 F EVN
hl7:component
1 … 1 M Contains 2.16.840.1.113883.3.4424.13.10.3.17 [3] Sekcja wywiadu społecznego na skierowaniu do szpitala psychiatrycznego (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.17']]] [not(@nullFlavor)]
@typeCode
0 … 1 F COMP
hl7:component
1 … 1 M Contains 2.16.840.1.113883.3.4424.13.10.3.18 [3] Sekcja wywiadu lekarskiego na skierowaniu do szpitala psychiatrycznego (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.18']]] [not(@nullFlavor)]
@typeCode
0 … 1 F COMP
hl7:component
1 … 1 M Contains 2.16.840.1.113883.3.4424.13.10.3.19 [3] Sekcja badania przedmiotowego na skierowaniu do szpitala psychiatrycznego (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.19']]] [not(@nullFlavor)]
@typeCode
0 … 1 F COMP
hl7:component
1 … 1 M Contains 2.16.840.1.113883.3.4424.13.10.3.20 [3] Sekcja rozpoznania na skierowaniu do szpitala psychiatrycznego (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.20']]] [not(@nullFlavor)]
@typeCode
0 … 1 F COMP
hl7:component
1 … 1 M Contains 2.16.840.1.113883.3.4424.13.10.3.21 [3] Sekcja główna skierowania do szpitala psychiatrycznego (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.21']]] [not(@nullFlavor)]
@typeCode
0 … 1 F COMP
hl7:component
1 … 1 M Contains 2.16.840.1.113883.3.4424.13.10.3.22 [3] Sekcja powodu skierowania do szpitala psychiatrycznego (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.22']]] [not(@nullFlavor)]
@typeCode
0 … 1 F COMP
hl7:component
0 … * R Contains 2.16.840.1.113883.3.4424.13.10.3.69 [3] Sekcja danych ubezpieczeniowych (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.69']]]
@typeCode
0 … 1 F COMP
hl7:component
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.3.39 [3] Sekcja załączników (DYNAMIC) (plCdotstal)
treeblank treeblank treeblank treeblank where [hl7:section [hl7:templateId [@root='2.16.840.1.113883.3.4424.13.10.3.39']]]
@typeCode
0 … 1 F COMP
  Schematron report role red 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
0 … * Contains 2.16.840.1.113883.3.4424.13.10.2.11 [2] Dokumenty uprawnień (rozszerzenie) (DYNAMIC) (plCdotstal)
treeblank where [extPL:entitlementDocument]
@typeCode
cs 1 … 1 F PERT
extPL:pertinentInformation
0 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.13 [2] Potwierdzenie ubezpieczenia w NFZ (rozszerzenie) (DYNAMIC) (plCdotstal)
treeblank where [extPL:coverageEligibilityConfirmation]
@typeCode
cs 1 … 1 F PERT
extPL:pertinentInformation
0 … * Contains 2.16.840.1.113883.3.4424.13.10.2.45 [2] Uprawnienie dodatkowe do świadczeń opieki zdrowotnej (rozszerzenie) (DYNAMIC) (plCdotstal)
treeblank where [extPL:coveragePlan]
@typeCode
cs 1 … 1 F PERT
  Variable let Name versionLabel  
  Value '1.2.3'  
  Schematron assert role red 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 red 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.