Id2.16.840.1.113883.3.4424.13.10.2.40Effective Date2014‑09‑23
Statusdraft DraftVersion Label0.9.10
NameplCdaReferralToPsychiatricHospitalRecordTargetDisplay Name[2] Dane pacjenta dla dokumentu skierowania do szpitala psychiatrycznego
DescriptionSzablon CDA danych pacjenta dla dokumentu skierowania do szpitala psychiatrycznego
ClassificationCDA Header Level Template
Open/ClosedOpen (other than defined elements are allowed)
Used by / Uses
Used by 1 transaction and 7 templates, Uses 6 templates
Used by as NameVersion
2.16.840.1.113883.3.4424.13.4.10Transactiondraft Skierowanie do szpitala psychiatrycznego2014‑08‑14
2.16.840.1.113883.3.4424.13.10.1.12Includedraft [1] Skierowanie do szpitala psychiatrycznego (0.9.9)2014‑08‑14
2.16.840.1.113883.3.4424.13.10.1.12Includedraft [1] Skierowanie do szpitala psychiatrycznego (0.9.10)2014‑09‑23
2.16.840.1.113883.3.4424.13.10.1.12Includedraft [1] Skierowanie do szpitala psychiatrycznego (1.0 errata)2015‑01‑28
2.16.840.1.113883.3.4424.13.10.1.12Includedraft [1] Skierowanie do szpitala psychiatrycznego (1.0.2)2015‑08‑15
2.16.840.1.113883.3.4424.13.10.1.12Includedraft [1] Skierowanie do szpitala psychiatrycznego (1.1)2015‑10‑26
2.16.840.1.113883.3.4424.13.10.1.12Includedraft [1] Skierowanie do szpitala psychiatrycznego (1.1.1)2017‑01‑02
2.16.840.1.113883.3.4424.13.10.1.12Includedraft [1] Skierowanie do szpitala psychiatrycznego (1.2)2017‑01‑28
Uses as NameVersion
2.16.840.1.113883.3.4424.13.10.2.1Containmentactive [2] Osoba (bazowy)DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.2Containmentactive [2] Organizacja (bazowy)DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.64Includedraft [2] Imię matki (rozszerzenie) (0.9.10)DYNAMIC
2.16.840.1.113883.3.4424.13.10.2.65Includedraft [2] Imię ojca (rozszerzenie) (0.9.10)DYNAMIC
2.16.840.1.113883.3.4424.13.10.7.1Includeactive [7] Adres (bazowy) (0.9.10 errata)DYNAMIC
2.16.840.1.113883.3.4424.13.10.7.2Includeactive [7] Nazwisko i imię osoby (bazowy) (0.9.10)DYNAMIC
RelationshipSpecialization: template 2.16.840.1.113883.3.4424.13.10.2.26 [2] Dane pacjenta dla dokumentu skierowania (2014‑09‑23)
Example
Example
<recordTarget typeCode="RCT" contextControlCode="OP">
  <templateId root="2.16.840.1.113883.3.4424.13.10.2.3"/>  <templateId root="2.16.840.1.113883.3.4424.13.10.2.26"/>  <templateId root="2.16.840.1.113883.3.4424.13.10.2.40"/>  <patientRole classCode="PAT">
    <id extension="23432" root="1.2.3.999"/>    <!-- include template plCdaBaseAddr (dynamic) 1..1 M -->
    <patient classCode="PSN" determinerCode="INSTANCE">
      <!-- include template plCdaBasePersonName (dynamic) 1..1 R -->
      <birthTime value="20140923"/>      <guardian classCode="GUARD">
        <id extension="21121" root="1.2.3.999"/>        <code/>        <!-- include template plCdaBaseAddr (dynamic) 0..* O -->
        <!-- choice min/max: 0..1 element hl7:guardianPerson containing template plCdaBasePerson (dynamic) element hl7:guardianOrganization containing template plCdaBaseOrganization (dynamic) -->
      </guardian>
      <birthplace classCode="BIRTHPL">
        <place classCode="PLC" determinerCode="INSTANCE">
          <name>name</name>          <addr>
            <country>country</country>            <city>city</city>          </addr>
        </place>
      </birthplace>
      <extPL:multipleBirthInd value="false"/>      <extPL:multipleBirthOrderNumber value="1"/>      <!-- include template plExtMotherGivenName (dynamic) 1..1 M -->
      <!-- include template plExtFatherGivenName (dynamic) 1..1 M -->
    </patient>
    <providerOrganization>
      <!-- template plCdaBaseOrganization (dynamic) -->
    </providerOrganization>
  </patientRole>
</recordTarget>
ItemDTCardConfDescriptionLabel
hl7:recordTarget
1 … 1MplCddotsrget
@typeCode
cs0 … 1FRCT
@contextControlCode
cs0 … 1FOP
hl7:templateId
II1 … 1MplCddotsrget
@root
oid1 … 1F2.16.840.1.113883.3.4424.13.10.2.3
hl7:templateId
II1 … 1MplCddotsrget
@root
oid1 … 1F2.16.840.1.113883.3.4424.13.10.2.26
hl7:templateId
II1 … 1MplCddotsrget
@root
oid1 … 1F2.16.840.1.113883.3.4424.13.10.2.40
hl7:patientRole
1 … 1MplCddotsrget
@classCode
cs0 … 1FPAT
hl7:id
II1 … *MplCddotsrget
@root
oid1 … 1R
@extension
st1 … 1R
 Schematron reportrolered 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.  
Included1 … 2M from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC)
hl7:addr
1 … 2MplCddotsAddr
@nullFlavor
cs0 … 1FUNK
hl7:country
ADXP0 … 1plCddotsAddr
hl7:postalCode
0 … 1plCddotsAddr
@xsi:type
0 … 1FextPL:adxp
@postCity
st0 … 1 
hl7:city
ADXP0 … 1plCddotsAddr
hl7:streetName
ADXP0 … 1plCddotsAddr
hl7:houseNumber
ADXP0 … 1plCddotsAddr
hl7:unitID
ADXP0 … 1plCddotsAddr
hl7:unitType
ADXP0 … 1plCddotsAddr
hl7:censusTract
ADXP0 … 1plCddotsAddr
 Schematron reportrolered error 
 testnot(@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 reportrolered error 
 testnot(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city) 
 Message Dla polskiego adresu wymagane jest podanie miasta.  
 Schematron reportrolered error 
 testnot(@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 assertrolered error 
 testnot(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 reportrolered 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 … 1MplCddotsrget
@classCode
cs0 … 1FPSN
@determinerCode
cs0 … 1FINSTANCE
hl7:id
II0 … *NPplCddotsrget
Included1 … 1R from 2.16.840.1.113883.3.4424.13.10.7.2 [7] Nazwisko i imię osoby (bazowy) (DYNAMIC)
hl7:name
1 … 1RplCddotsName
hl7:prefix
ENXP0 … 1plCddotsName
hl7:given
ENXP1 … *RplCddotsName
hl7:family
ENXP1 … *RplCddotsName
hl7:birthTime
TS.DATE0 … 1plCddotsrget
 Schematron assertrolered error 
 testconcat(substring(@value,1,4),'-',substring(@value,5,2),'-',substring(@value,7,2)) castable as xs:date 
 MessagePierwsze 8 cyfr daty urodzenia powinno być w formacie YYYYMMDD. 
hl7:guardian
0 … *plCddotsrget
@classCode
cs1 … 1FGUARD
hl7:id
II0 … *plCddotsrget
@root
oid1 … 1R
@extension
st1 … 1R
 Schematron reportrolered 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
CE0 … 1plCddotsrget
@codeSystem
CONF0 … 1F2.16.840.1.113883.5.111
Included0 … * from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC)
hl7:addr
0 … *plCddotsAddr
@nullFlavor
cs0 … 1FUNK
hl7:country
ADXP0 … 1plCddotsAddr
hl7:postalCode
0 … 1plCddotsAddr
@xsi:type
0 … 1FextPL:adxp
@postCity
st0 … 1 
hl7:city
ADXP0 … 1plCddotsAddr
hl7:streetName
ADXP0 … 1plCddotsAddr
hl7:houseNumber
ADXP0 … 1plCddotsAddr
hl7:unitID
ADXP0 … 1plCddotsAddr
hl7:unitType
ADXP0 … 1plCddotsAddr
hl7:censusTract
ADXP0 … 1plCddotsAddr
 Schematron reportrolered error 
 testnot(@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 reportrolered error 
 testnot(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city) 
 Message Dla polskiego adresu wymagane jest podanie miasta.  
 Schematron reportrolered error 
 testnot(@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 assertrolered error 
 testnot(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 reportrolered error 
 test@nullFlavor and count(./*) > 1 
 Message Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.  
Choice1 … 1Elements to choose from:
hl7:guardianPerson
Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC)plCddotsrget
hl7:guardianOrganization
Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC)plCddotsrget
hl7:birthplace
1 … 1MplCddotsrget
@classCode
cs0 … 1FBIRTHPL
hl7:place
1 … 1MplCddotsrget
@classCode
cs0 … 1FPLC
@determinerCode
cs0 … 1FINSTANCE
hl7:name
EN0 … 1plCddotsrget
hl7:addr
AD0 … 1plCddotsrget
hl7:country
ADXP0 … 1plCddotsrget
hl7:city
ADXP0 … 1plCddotsrget
extPL:multipleBirthInd
BL0 … 1plCddotsrget
extPL:multipleBirthOrderNumber
INT.POS0 … 1plCddotsrget
Included1 … 1M from 2.16.840.1.113883.3.4424.13.10.2.64 [2] Imię matki (rozszerzenie) (DYNAMIC)
extPL:personalRelationship
1 … 1MplExdotsName
where [extPL:code/@code='MTH']
@classCode
cs1 … 1FPRS
extPL:templateId
II1 … 1MplExdotsName
@root
oid1 … 1F2.16.840.1.113883.3.4424.13.10.2.9
extPL:templateId
II1 … 1MplExdotsName
@root
oid1 … 1F2.16.840.1.113883.3.4424.13.10.2.64
extPL:code
CD1 … 1MplExdotsName
@code
CONF1 … 1FMTH
@codeSystem
1 … 1F2.16.840.1.113883.5.111
@displayName
1 … 1FMother
extPL:person
1 … 1MplExdotsName
@classCode
cs1 … 1FPSN
extPL:name
EN1 … 1MplExdotsName
hl7:given
ENXP1 … 1MplExdotsName
Included1 … 1M from 2.16.840.1.113883.3.4424.13.10.2.65 [2] Imię ojca (rozszerzenie) (DYNAMIC)
extPL:personalRelationship
1 … 1MplExdotsName
where [extPL:code/@code='FTH']
@classCode
cs1 … 1FPRS
extPL:templateId
II1 … 1MplExdotsName
@root
oid1 … 1F2.16.840.1.113883.3.4424.13.10.2.9
extPL:templateId
II1 … 1MplExdotsName
@root
oid1 … 1F2.16.840.1.113883.3.4424.13.10.2.65
extPL:code
CD1 … 1MplExdotsName
@code
CONF1 … 1FFTH
@codeSystem
1 … 1F2.16.840.1.113883.5.111
@displayName
1 … 1FFather
extPL:person
1 … 1MplExdotsName
@classCode
cs1 … 1FPSN
extPL:name
EN1 … 1MplExdotsName
hl7:given
ENXP1 … 1MplExdotsName
 Schematron reportrolered error 
 testextPL:multipleBirthInd/@value and not(extPL:multipleBirthOrderNumber/@value) 
 Message Dla ciąży mnogiej wymagane jest podanie numeru kolejności urodzenia.  
hl7:providerOrganization
0 … 1Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC)plCddotsrget
 Schematron reportrolered error 
 testcount(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.