Back To Index  <<  Back To Templates

active Template  Dokument zdigitalizowany

Id 2.16.840.1.113883.2.48.3.5.2.4.10.1.1 Effective Date 2023‑03‑28
Status active Active Version Label 1.0
Name plMsimCdaDigitizedDocument Display Name Dokument zdigitalizowany
Description Szablon CDA dokumentu zdigitalizowanego
Context Pathname /
Classification CDA Document Level Template
Open/Closed Closed (only defined elements are allowed)
Used by / Uses
Used by 1 transaction and 0 templates, Uses 5 templates
Used by as Name Version
plcda-transaction-2 Transaction final Dokument zdigitalizowany 2023‑03‑28
Uses as Name Version
2.16.840.1.113883.2.48.3.5.2.4.10.2.3 Include active Dane pacjenta w dokumencie zdigitalizowanym (1.0) DYNAMIC
2.16.840.1.113883.2.48.3.5.2.4.10.2.4 Include active [2] Autor dokumentu zdigitalizowanego (1.0) DYNAMIC
2.16.840.1.113883.2.48.3.5.2.4.10.2.2 Include active Organizacja odpowiedzialna za dokument (1.0) DYNAMIC
2.16.840.1.113883.2.48.3.5.2.4.10.2.7 Include active Wystawca dokumentu zdigitalizowanego (1.0) DYNAMIC
2.16.840.1.113883.2.48.3.5.2.4.10.2.6 Include active Treść dokumentu zdigitalizowanego (1.0) DYNAMIC
Item DT Card Conf Description Label
hl7:ClinicalDocument
1 … 1 M (plMdotsent)
@classCode
0 … 1 F DOCCLIN
@moodCode
0 … 1 F EVN
hl7:typeId
II 1 … 1 M (plMdotsent)
@extension
1 … 1 F POCD_HD000040
@root
1 … 1 F 2.16.840.1.113883.1.3
hl7:templateId
II 1 … 1 M (plMdotsent)
@root
uid 1 … 1 F 2.16.840.1.113883.2.48.3.5.2.4.10.1.1
@extension
st 0 … 1  
hl7:id
II 1 … 1 R (plMdotsent)
@root
uid 1 … 1 R
@extension
st 1 … 1 R
hl7:code
CE 1 … 1 M (plMdotsent)
@codeSystem
CONF 1 … 1 F 2.16.840.1.113883.6.1
@codeSystemName
1 … 1 F LOINC
hl7:title
ST 1 … 1 M (plMdotsent)
hl7:effectiveTime
TS 1 … 1 M (plMdotsent)
  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 (plMdotsent)
  CONF
The value of @code shall be drawn from value set x_BasicConfidentialityKind x_BasicConfidentialityKind (DYNAMIC)
hl7:languageCode
CS 1 … 1 M (plMdotsent)
  CONF
The value of @code shall be drawn from value set JezykDokumentu Język dokumentu (DYNAMIC)
hl7:setId
II 1 … 1 M (plMdotsent)
hl7:versionNumber
INT 1 … 1 M (plMdotsent)
Included 1 … 1 M from 2.16.840.1.113883.2.48.3.5.2.4.10.2.3 Dane pacjenta w dokumencie zdigitalizowanym (DYNAMIC)
hl7:recordTarget
1 … 1 M (plMdotsent)
@typeCode
0 … 1 F RCT
@contextControlCode
0 … 1 F OP
hl7:templateId
II 1 … 1 M (plMdotsent)
@root
uid 1 … 1 F 2.16.840.1.113883.2.48.3.5.2.4.10.2.3
hl7:patientRole
1 … 1 M (plMdotsent)
@classCode
0 … 1 F PAT
hl7:id
II 1 … 1 M (plMdotsent)
where [@root='2.16.840.1.113883.2.48.3.5.22.1']
@root
uid 1 … 1 F 2.16.840.1.113883.2.48.3.5.20.1.1.1
@extension
st 1 … 1 R
hl7:id
II 0 … * (plMdotsent)
where [@root!='2.16.840.1.113883.2.48.3.5.22.1']
@root
uid 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:patient
1 … 1 M (plMdotsent)
@classCode
0 … 1 F PSN
@determinerCode
0 … 1 F INSTANCE
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 (plMdotsent)
hl7:prefix
ENXP 0 … 1 (plMdotsent)
hl7:given
ENXP 1 … * R (plMdotsent)
hl7:family
ENXP 1 … * R (plMdotsent)
Included 1 … 1 M from 2.16.840.1.113883.2.48.3.5.2.4.10.2.4 [2] Autor dokumentu zdigitalizowanego (DYNAMIC)
hl7:author
1 … 1 M (plMdotsent)
@typeCode
0 … 1 F AUT
@contextControlCode
0 … 1 F OP
hl7:templateId
II 1 … 1 M (plMdotsent)
@root
uid 1 … 1 F 2.16.840.1.113883.2.48.3.5.2.4.10.2.4
hl7:time
TS 1 … 1 M (plMdotsent)
hl7:assignedAuthor
1 … 1 R (plMdotsent)
@classCode
0 … 1 F ASSIGNED
hl7:id
II 1 … * M (plMdotsent)
@nullFlavor
cs 0 … 1 F NA
hl7:assignedPerson
1 … 1 Contains 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMIC) (plMdotsent)
hl7:representedOrganization
1 … 1 R Contains 2.16.840.1.113883.2.48.3.5.2.4.10.2.5 Organizacja autora dokumentu digitalizowanego (DYNAMIC) (plMdotsent)
Included 1 … 1 M from 2.16.840.1.113883.2.48.3.5.2.4.10.2.2 Organizacja odpowiedzialna za dokument (DYNAMIC)
hl7:custodian
1 … 1 M (plMdotsent)
@typeCode
0 … 1 F CST
hl7:templateId
II 1 … 1 M (plMdotsent)
where [@root='2.16.840.1.113883.2.48.3.5.2.4.10.2.2']
@root
uid 1 … 1 F 2.16.840.1.113883.2.48.3.5.2.4.10.2.2
hl7:templateId
II 1 … 1 M (plMdotsent)
where [@root='2.16.840.1.113883.3.4424.13.10.2.5']
@root
uid 1 … 1 F 2.16.840.1.113883.3.4424.13.10.2.5
hl7:assignedCustodian
1 … 1 M (plMdotsent)
@classCode
0 … 1 F ASSIGNED
hl7:representedCustodianOrganization
1 … 1 M (plMdotsent)
@classCode
0 … 1 F ORG
@determinerCode
0 … 1 F INSTANCE
hl7:id
II 1 … * M (plMdotsent)
@root
uid 1 … 1 F 2.16.840.1.113883.2.48.3.5
@displayable
bl 1 … 1 R
Included 1 … 1 M from 2.16.840.1.113883.2.48.3.5.2.4.10.2.7 Wystawca dokumentu zdigitalizowanego (DYNAMIC)
hl7:legalAuthenticator
1 … 1 M (plMdotsent)
@typeCode
0 … 1 F LA
@contextControlCode
0 … 1 F OP
hl7:templateId
II 1 … 1 M (plMdotsent)
@root
uid 1 … 1 F 2.16.840.1.113883.2.48.3.5.2.4.10.2.7
hl7:time
TS 1 … 1 R (plMdotsent)
hl7:signatureCode
CS 1 … 1 R (plMdotsent)
  CONF
The value of @code shall be drawn from value set ParticipationSignature ParticipationSignature (DYNAMIC)
hl7:assignedEntity
1 … 1 M (plMdotsent)
@classCode
0 … 1 F ASSIGNED
hl7:id
II 1 … * M (plMdotsent)
@root
uid 1 … 1 R
@extension
st 1 … 1 R
Included 0 … * from 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMIC)
hl7:addr
0 … * (plMdotsent)
@nullFlavor
cs 0 … 1 F UNK
hl7:country
ADXP 0 … 1 (plMdotsent)
hl7:postalCode
0 … 1 (plMdotsent)
@xsi:type
0 … 1 F extPL:adxp
@postCity
st 0 … 1  
hl7:city
ADXP 0 … 1 (plMdotsent)
hl7:streetName
ADXP 0 … 1 (plMdotsent)
hl7:houseNumber
ADXP 0 … 1 (plMdotsent)
hl7:unitID
ADXP 0 … 1 (plMdotsent)
hl7:unitType
ADXP 0 … 1 (plMdotsent)
hl7:censusTract
ADXP 0 … 1 (plMdotsent)
  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.  
Included 1 … 1 M from 2.16.840.1.113883.2.48.3.5.2.4.10.2.6 Treść dokumentu zdigitalizowanego (DYNAMIC)
hl7:component
1 … 1 M (plMdotsent)
@typeCode
0 … 1 F COMP
@contextConductionInd
bl 0 … 1  
hl7:templateId
II 1 … 1 M (plMdotsent)
@root
uid 1 … 1 F 2.16.840.1.113883.2.48.3.5.2.4.10.2.6
hl7:nonXMLBody
1 … 1 M (plMdotsent)
@classCode
0 … 1 F DOCBODY
@moodCode
0 … 1 F EVN
hl7:text
ED 1 … 1 M (plMdotsent)
@representation
cs 1 … 1 F B64
@mediaType
cs 1 … 1 R
  Variable let Name versionLabel  
  Value '1.0'  
  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 specyfikacji.