hl7:ClinicalDocument
|
|
1 … 1 |
M |
|
(plM ent) |
@classCode
|
|
0 … 1 |
F |
DOCCLIN |
@moodCode
|
|
0 … 1 |
F |
EVN |
hl7:typeId
|
II |
1 … 1 |
M |
|
(plM ent) |
@extension
|
|
1 … 1 |
F |
POCD_HD000040 |
@root
|
|
1 … 1 |
F |
2.16.840.1.113883.1.3 |
hl7:templateId
|
II |
1 … 1 |
M |
|
(plM ent) |
@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 |
|
(plM ent) |
@root
|
uid |
1 … 1 |
R |
|
@extension
|
st |
1 … 1 |
R |
|
hl7:code
|
CE |
1 … 1 |
M |
|
(plM ent) |
@codeSystem
|
CONF |
1 … 1 |
F |
2.16.840.1.113883.6.1 |
@codeSystemName
|
1 … 1 |
F |
LOINC |
hl7:title
|
ST |
1 … 1 |
M |
|
(plM ent) |
hl7:effectiveTime
|
TS |
1 … 1 |
M |
|
(plM ent) |
|
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 |
|
(plM ent) |
|
CONF |
|
hl7:languageCode
|
CS |
1 … 1 |
M |
|
(plM ent) |
|
CONF |
The value of @code shall be drawn from value set JezykDokumentu Język dokumentu (DYNAMIC) |
|
hl7:setId
|
II |
1 … 1 |
M |
|
(plM ent) |
hl7:versionNumber
|
INT |
1 … 1 |
M |
|
(plM ent) |
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 |
|
(plM ent) |
@typeCode
|
|
0 … 1 |
F |
RCT |
@contextControlCode
|
|
0 … 1 |
F |
OP |
hl7:templateId
|
II |
1 … 1 |
M |
|
(plM ent) |
@root
|
uid |
1 … 1 |
F |
2.16.840.1.113883.2.48.3.5.2.4.10.2.3 |
hl7:patientRole
|
|
1 … 1 |
M |
|
(plM ent) |
@classCode
|
|
0 … 1 |
F |
PAT |
hl7:id
|
II |
1 … 1 |
M |
|
(plM ent) |
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 … * |
|
|
(plM ent) |
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 |
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 |
|
(plM ent) |
@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 |
|
(plM ent) |
hl7:prefix
|
ENXP |
0 … 1 |
|
|
(plM ent) |
hl7:given
|
ENXP |
1 … * |
R |
|
(plM ent) |
hl7:family
|
ENXP |
1 … * |
R |
|
(plM ent) |
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 |
|
(plM ent) |
@typeCode
|
|
0 … 1 |
F |
AUT |
@contextControlCode
|
|
0 … 1 |
F |
OP |
hl7:templateId
|
II |
1 … 1 |
M |
|
(plM ent) |
@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 |
|
(plM ent) |
hl7:assignedAuthor
|
|
1 … 1 |
R |
|
(plM ent) |
@classCode
|
|
0 … 1 |
F |
ASSIGNED |
hl7:id
|
II |
1 … * |
M |
|
(plM ent) |
@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) |
(plM ent) |
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) |
(plM ent) |
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 |
|
(plM ent) |
@typeCode
|
|
0 … 1 |
F |
CST |
hl7:templateId
|
II |
1 … 1 |
M |
|
(plM ent) |
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 |
|
(plM ent) |
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 |
|
(plM ent) |
@classCode
|
|
0 … 1 |
F |
ASSIGNED |
hl7:representedCustodianOrganization
|
|
1 … 1 |
M |
|
(plM ent) |
@classCode
|
|
0 … 1 |
F |
ORG |
@determinerCode
|
|
0 … 1 |
F |
INSTANCE |
hl7:id
|
II |
1 … * |
M |
|
(plM ent) |
@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 |
|
(plM ent) |
@typeCode
|
|
0 … 1 |
F |
LA |
@contextControlCode
|
|
0 … 1 |
F |
OP |
hl7:templateId
|
II |
1 … 1 |
M |
|
(plM ent) |
@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 |
|
(plM ent) |
hl7:signatureCode
|
CS |
1 … 1 |
R |
|
(plM ent) |
|
CONF |
|
hl7:assignedEntity
|
|
1 … 1 |
M |
|
(plM ent) |
@classCode
|
|
0 … 1 |
F |
ASSIGNED |
hl7:id
|
II |
1 … * |
M |
|
(plM ent) |
@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 … * |
|
|
(plM ent) |
@nullFlavor
|
cs |
0 … 1 |
F |
UNK |
hl7:country
|
ADXP |
0 … 1 |
|
|
(plM ent) |
hl7:postalCode
|
|
0 … 1 |
|
|
(plM ent) |
@xsi:type
|
|
0 … 1 |
F |
extPL:adxp |
@postCity
|
st |
0 … 1 |
|
|
hl7:city
|
ADXP |
0 … 1 |
|
|
(plM ent) |
hl7:streetName
|
ADXP |
0 … 1 |
|
|
(plM ent) |
hl7:houseNumber
|
ADXP |
0 … 1 |
|
|
(plM ent) |
hl7:unitID
|
ADXP |
0 … 1 |
|
|
(plM ent) |
hl7:unitType
|
ADXP |
0 … 1 |
|
|
(plM ent) |
hl7:censusTract
|
ADXP |
0 … 1 |
|
|
(plM ent) |
|
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. |
|
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 |
|
(plM ent) |
@typeCode
|
|
0 … 1 |
F |
COMP |
@contextConductionInd
|
bl |
0 … 1 |
|
|
hl7:templateId
|
II |
1 … 1 |
M |
|
(plM ent) |
@root
|
uid |
1 … 1 |
F |
2.16.840.1.113883.2.48.3.5.2.4.10.2.6 |
hl7:nonXMLBody
|
|
1 … 1 |
M |
|
(plM ent) |
@classCode
|
|
0 … 1 |
F |
DOCBODY |
@moodCode
|
|
0 … 1 |
F |
EVN |
hl7:text
|
ED |
1 … 1 |
M |
|
(plM ent) |
@representation
|
cs |
1 … 1 |
F |
B64 |
@mediaType
|
cs |
1 … 1 |
R |
|
|
Variable let |
Name |
versionLabel |
|
|
Value |
'1.0' |
|
|
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 specyfikacji.
|
|