Powrót do strony głownej  <<  Powrót do listy szablonów

 Szablon  [1] Dokument recepty farmaceutycznej

Szablon 2.16.840.1.113883.3.4424.13.10.1.7 - plCdaPharmaceuticalDrugPrescription
Id 2.16.840.1.113883.3.4424.13.10.1.7
Typ CDA document level template
Relacje Specialization: szablon 1.3.6.1.4.1.19376.1.9.1.1.1 (2016‑01‑07 22:13:03)
Kontekst Nazwa ścieżki /
Wersja 1.2.2 obowiązuje od 2017‑10‑26 status W trakcie tworzenia
Otwarty/Zamknięty Otwarty (pozostałe elementy poza zdefiniowanymi są dozwolone)
Opis Szablon CDA dokumentu recepty wystawionej przez farmaceutę w aptece
Używane przez / Używa
Używane przez / Używa 8 szablonów
Używa Template id Name Wersja
2.16.840.1.113883.3.4424.13.10.2.23 plCdaDrugPrescriptionRecordTarget DYNAMICZNE
2.16.840.1.113883.3.4424.13.10.2.81 plCdaPharmaceuticalDrugPrescriptionAuthor DYNAMICZNE
2.16.840.1.113883.3.4424.13.10.2.20 plCdaP1BaseCustodian DYNAMICZNE
2.16.840.1.113883.3.4424.13.10.2.61 plCdaBaseInformationRecipient DYNAMICZNE
2.16.840.1.113883.3.4424.13.10.2.6 plCdaBaseLegalAuthenticator DYNAMICZNE
2.16.840.1.113883.3.4424.13.10.2.53 plCdaBaseInFulfillmentOf DYNAMICZNE
2.16.840.1.113883.3.4424.13.10.2.83 plCdaDrugPrescriptionRelatedDocument DYNAMICZNE
2.16.840.1.113883.3.4424.13.10.2.25 plCdaDrugPrescriptionComponent DYNAMICZNE
Pozycja Typ danych Krotność Wymagalność Opis Etykieta
hl7:ClinicalDocument
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F DOCCLIN
@moodCode
0 .. 1 F EVN
hl7:typeId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@extension
1 .. 1 F POCD_HD000040
@root
1 .. 1 F 2.16.840.1.113883.1.3
hl7:templateId
gdzie
[@root='1.3.6.1.4.1.19376.1.9.1.1.1']
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@root
1 .. 1 F 1.3.6.1.4.1.19376.1.9.1.1.1
hl7:templateId
gdzie
[@root='1.3.6.1.4.1.19376.1.5.3.1.1.1']
II 1 .. 1 R (plCdaPharmaceuticalDrugPrescription)
@root
1 .. 1 F 1.3.6.1.4.1.19376.1.5.3.1.1.1
hl7:templateId
gdzie
[@root='2.16.840.1.113883.3.4424.13.10.1.7']
II 1 .. 1 R (plCdaPharmaceuticalDrugPrescription)
@root
1 .. 1 F 2.16.840.1.113883.3.4424.13.10.1.7
hl7:id
II 1 .. 1 R (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1  
@extension
st 1 .. 1  
hl7:code
CE 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F 57833-6
@codeSystem
1 .. 1 F 2.16.840.1.113883.6.1
@codeSystemName
1 .. 1 F LOINC
@displayName
1 .. 1 F Prescription for medication Document
hl7:translation
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F 04.01
@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 Recepta
hl7:qualifier
gdzie
[hl7:name/@code='KDLEK']
CR 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
hl7:name
CV 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F KDLEK
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.13.5.1 (Polskie klasyfikatory HL7 v3)
@codeSystemName
1 .. 1 F PolskieKlasyfikatoryHL7v3
@displayName
1 .. 1 F Kategoria dostępności leku
hl7:value
CD 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F Rp
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.11.1.25 (Kategorie dostępności leku)
@codeSystemName
1 .. 1 F PolskieKlasyfikatoryHL7v3
hl7:qualifier
gdzie
[hl7:name/@code='RLEK']
CR 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
hl7:name
CV 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F RLEK
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.13.5.1 (Polskie klasyfikatory HL7 v3)
@codeSystemName
1 .. 1 F PolskieKlasyfikatoryHL7v3
@displayName
1 .. 1 F Rodzaj leku
hl7:value
CD 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F G
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.13.5.1 (Polskie klasyfikatory HL7 v3)
@codeSystemName
1 .. 1 F PolskieKlasyfikatoryHL7v3
@displayName
1 .. 1 F Lek gotowy
hl7:qualifier
gdzie
[hl7:name/@code='TWREC']
CR 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
hl7:name
CV 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F TWREC
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.13.5.1 (Polskie klasyfikatory HL7 v3)
@codeSystemName
1 .. 1 F PolskieKlasyfikatoryHL7v3
@displayName
1 .. 1 F Tryb wystawienia recepty
hl7:value
CD 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F F
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.13.5.1 (Polskie klasyfikatory HL7 v3)
@codeSystemName
1 .. 1 F PolskieKlasyfikatoryHL7v3
@displayName
1 .. 1 F Farmaceutyczna
hl7:qualifier
gdzie
[hl7:name/@code='TRREC']
CR 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
hl7:name
CV 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F TRREC
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.13.5.1 (Polskie klasyfikatory HL7 v3)
@codeSystemName
1 .. 1 F PolskieKlasyfikatoryHL7v3
@displayName
1 .. 1 F Tryb realizacji recepty
hl7:value
CD 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F Z
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.13.5.1 (Polskie klasyfikatory HL7 v3)
@codeSystemName
1 .. 1 F PolskieKlasyfikatoryHL7v3
@displayName
1 .. 1 F Zwykły
hl7:title
ST 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
CONF
zawartość elementu musi być "Recepta"
hl7:effectiveTime
TS 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
Schematron assert rola  error
test concat(substring(@value,1,4),'-',substring(@value,5,2),'-',substring(@value,7,2)) castable as xs:date
Komunikat Pierwsze 8 cyfr daty powinno być w formacie YYYYMMDD.
hl7:confidentialityCode
CE 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F N
@codeSystem
1 .. 1 F 2.16.840.1.113883.5.25
hl7:languageCode
CS 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F pl-PL
hl7:setId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
hl7:versionNumber
INT 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@value
int 1 .. 1 F 1
Dołączony z 2.16.840.1.113883.3.4424.13.10.2.23 [2] Dane pacjenta dla dokumentu recepty (DYNAMICZNE) 1 .. 1 Required Bezwględnie wymagany
hl7:recordTarget
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@typeCode
0 .. 1 F RCT
@contextControlCode
0 .. 1 F OP
hl7:templateId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.23
hl7:patientRole
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F PAT
hl7:id
II 1 .. * M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1  
@extension
st 1 .. 1  
Schematron report rola  error
test @root='2.16.840.1.113883.3.4424.1.1.616' and not(matches(string(@extension),'^[0-9]{11}$'))
Komunikat Jeżeli identyfikatorem jest numer PESEL, to musi zawierać 11 cyfr.
Dołączony z 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMICZNE) 1 .. 1
hl7:addr
1 .. 1 (plCdaPharmaceuticalDrugPrescription)
@nullFlavor
cs 0 .. 1 F UNK
hl7:country
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:postalCode
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
@xsi:type
0 .. 1 F
@postCity
st 0 .. 1  
hl7:city
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:streetName
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:houseNumber
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:unitID
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:unitType
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:censusTract
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Schematron report rola  error
test not(@nullFlavor) and ((not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:postalCode))
Komunikat Dla polskiego adresu wymagane jest podanie kodu pocztowego.
Schematron report rola  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city)
Komunikat Dla polskiego adresu wymagane jest podanie miasta.
Schematron report rola  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:houseNumber)
Komunikat Dla polskiego adresu wymagane jest podanie numeru domu.
Schematron assert rola  error
test not(hl7:censusTract) or starts-with(hl7:censusTract,'TERYT TERC:') or starts-with(hl7:censusTract,'TERYT SIMC:')
Komunikat Poprawnie zapisany numer TERYT powinien zaczynać się od znaków: "TERYT TERC:" lub "TERYT SIMC:".
Schematron report rola  error
test @nullFlavor and count(./*) > 1
Komunikat Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.
hl7:telecom
TEL 0 .. 1 R (plCdaPharmaceuticalDrugPrescription)
hl7:patient
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F PSN
@determinerCode
0 .. 1 F INSTANCE
hl7:id
II 0 .. * NP (plCdaPharmaceuticalDrugPrescription)
Dołączony z 2.16.840.1.113883.3.4424.13.10.7.2 [7] Nazwisko i imię osoby (bazowy) (DYNAMICZNE) 1 .. 1 Required Bezwględnie wymagany
hl7:name
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
hl7:prefix
ENXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:given
ENXP 1 .. * R (plCdaPharmaceuticalDrugPrescription)
hl7:family
ENXP 1 .. * R (plCdaPharmaceuticalDrugPrescription)
hl7:administrativeGenderCode
CE 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
CONF
Wartość @code musi pochodzić ze zbioru wartości 2.16.840.1.113883.1.11.1 AdministrativeGender (DYNAMICZNE)
hl7:birthTime
TS.DATE 1 .. 1 R (plCdaPharmaceuticalDrugPrescription)
Schematron assert rola  error
test concat(substring(@value,1,4),'-',substring(@value,5,2),'-',substring(@value,7,2)) castable as xs:date
Komunikat Pierwsze 8 cyfr daty urodzenia powinno być w formacie YYYYMMDD.
hl7:guardian
0 .. * (plCdaPharmaceuticalDrugPrescription)
@classCode
1 .. 1 F GUARD
hl7:id
II 1 .. * (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1  
@extension
st 1 .. 1  
Schematron report rola  error
test @root='2.16.840.1.113883.3.4424.1.1.616' and not(matches(string(@extension),'^[0-9]{11}$'))
Komunikat Jeżeli identyfikatorem jest numer PESEL to musi zawierać 11 cyfr.
hl7:code
CE 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
@codeSystem
1 .. 1 F 2.16.840.1.113883.5.111
Dołączony z 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMICZNE) 0 .. 1
hl7:addr
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
@nullFlavor
cs 0 .. 1 F UNK
hl7:country
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:postalCode
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
@xsi:type
0 .. 1 F
@postCity
st 0 .. 1  
hl7:city
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:streetName
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:houseNumber
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:unitID
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:unitType
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:censusTract
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Schematron report rola  error
test not(@nullFlavor) and ((not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:postalCode))
Komunikat Dla polskiego adresu wymagane jest podanie kodu pocztowego.
Schematron report rola  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city)
Komunikat Dla polskiego adresu wymagane jest podanie miasta.
Schematron report rola  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:houseNumber)
Komunikat Dla polskiego adresu wymagane jest podanie numeru domu.
Schematron assert rola  error
test not(hl7:censusTract) or starts-with(hl7:censusTract,'TERYT TERC:') or starts-with(hl7:censusTract,'TERYT SIMC:')
Komunikat Poprawnie zapisany numer TERYT powinien zaczynać się od znaków: "TERYT TERC:" lub "TERYT SIMC:".
Schematron report rola  error
test @nullFlavor and count(./*) > 1
Komunikat Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.
Wybór min 1 element(ów) oraz max 1 element(ów). Elementy do wyboru z:
  • hl7:guardianPerson zawierający hl7:templateId z szablonu [2] Osoba (bazowy) (DYNAMICZNE)
  • hl7:guardianOrganization zawierający hl7:templateId z szablonu [2] Organizacja (bazowy) (DYNAMICZNE)
hl7:guardianPerson
gdzie
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.1']
(plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMICZNE)
hl7:guardianOrganization
gdzie
[hl7:templateId/@root='2.16.840.1.113883.3.1937.777.4.10.2' and hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2']
(plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMICZNE)
extPL:multipleBirthInd
BL 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
extPL:multipleBirthOrderNumber
INT.POS 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Schematron report rola  error
test extPL:multipleBirthInd/@value and not(extPL:multipleBirthOrderNumber/@value)
Komunikat Dla ciąży mnogiej wymagane jest podanie numeru kolejności urodzenia.
hl7:providerOrganization
gdzie
[hl7:templateId/@root='2.16.840.1.113883.3.1937.777.4.10.2' and hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2']
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMICZNE)
Dołączony z 2.16.840.1.113883.3.4424.13.10.2.81 [2] Autor dokumentu recepty farmaceutycznej (DYNAMICZNE) 1 .. 1 Required Bezwględnie wymagany
hl7:author
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@typeCode
0 .. 1 F AUT
@contextControlCode
0 .. 1 F OP
hl7:templateId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.81
hl7:functionCode
CE 1 .. 1 R (plCdaPharmaceuticalDrugPrescription)
@code
1 .. 1 F FARM
@codeSystem
1 .. 1 F 2.16.840.1.113883.3.4424.11.3.18 (Zawody medyczne)
@codeSystemName
1 .. 1 F ZAWODY_MED
@displayName
1 .. 1 F Farmaceuta
hl7:time
TS 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
Schematron assert rola  error
test (@value=/hl7:ClinicalDocument/hl7:legalAuthenticator/hl7:time/@value) or (@value=/hl7:ClinicalDocument/hl7:authenticator/hl7:time/@value)
Komunikat Data utworzenia dokumentu powinna być taka sama jak data wystawienia lub autoryzacji dokumentu.
hl7:assignedAuthor
1 .. 1 R (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F ASSIGNED
hl7:id
II 1 .. * M (plCdaPharmaceuticalDrugPrescription)
@extension
st 1 .. 1  
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.1.6.1
hl7:addr
AD 0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:telecom
TEL 0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:assignedPerson
gdzie
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.1']
1 .. 1 (plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMICZNE)
hl7:representedOrganization
gdzie
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.31']
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.2.31 [2] Apteka (bazowy) (DYNAMICZNE)
Schematron report rola  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')))
Komunikat Wskazana pula numerów Prawa Wykonywania Zawodu jest nieprawidłowa w stosunku do wskazanego zawodu autora dokumentu
hl7:dataEnterer
NP (plCdaPharmaceuticalDrugPrescription)
hl7:informant
NP (plCdaPharmaceuticalDrugPrescription)
Dołączony z 2.16.840.1.113883.3.4424.13.10.2.20 [2] Organizacja odpowiedzialna za dokument dla P1 (DYNAMICZNE) 1 .. 1 Required Bezwględnie wymagany
hl7:custodian
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@typeCode
0 .. 1 F CST
hl7:templateId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.20
hl7:assignedCustodian
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F ASSIGNED
hl7:representedCustodianOrganization
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F ORG
@determinerCode
0 .. 1 F INSTANCE
hl7:id
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424
@extension
st 0 NP NP/nie występuje
@assigningAuthorityName
st 1 .. 1 F CSIOZ
@displayable
bl 1 .. 1  
hl7:name
ON 0 .. * NP (plCdaPharmaceuticalDrugPrescription)
hl7:telecom
TEL 0 .. * NP (plCdaPharmaceuticalDrugPrescription)
hl7:addr
AD 0 .. * NP (plCdaPharmaceuticalDrugPrescription)
Dołączony z 2.16.840.1.113883.3.4424.13.10.2.61 [2] Odbiorca informacji (bazowy) (DYNAMICZNE) 0 .. *
hl7:informationRecipient
0 .. * (plCdaPharmaceuticalDrugPrescription)
@typeCode
cs 1 .. 1  
  CONF
Wartość @typeCode musi pochodzić ze zbioru wartości 2.16.840.1.113883.1.11.19366 x_InformationRecipient (DYNAMICZNE)
hl7:intendedRecipient
1 .. 1 (plCdaPharmaceuticalDrugPrescription)
@classCode
cs 1 .. 1  
  CONF
@classCode musi mieć wartość "ASSIGNED"
hl7:id
II 0 .. * R (plCdaPharmaceuticalDrugPrescription)
Dołączony z 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMICZNE) 0 .. *
hl7:addr
0 .. * (plCdaPharmaceuticalDrugPrescription)
@nullFlavor
cs 0 .. 1 F UNK
hl7:country
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:postalCode
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
@xsi:type
0 .. 1 F
@postCity
st 0 .. 1  
hl7:city
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:streetName
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:houseNumber
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:unitID
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:unitType
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:censusTract
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Schematron report rola  error
test not(@nullFlavor) and ((not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:postalCode))
Komunikat Dla polskiego adresu wymagane jest podanie kodu pocztowego.
Schematron report rola  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city)
Komunikat Dla polskiego adresu wymagane jest podanie miasta.
Schematron report rola  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:houseNumber)
Komunikat Dla polskiego adresu wymagane jest podanie numeru domu.
Schematron assert rola  error
test not(hl7:censusTract) or starts-with(hl7:censusTract,'TERYT TERC:') or starts-with(hl7:censusTract,'TERYT SIMC:')
Komunikat Poprawnie zapisany numer TERYT powinien zaczynać się od znaków: "TERYT TERC:" lub "TERYT SIMC:".
Schematron report rola  error
test @nullFlavor and count(./*) > 1
Komunikat Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.
hl7:telecom
TEL 0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:informationRecipient
gdzie
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.1']
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMICZNE)
hl7:receivedOrganization
gdzie
[hl7:templateId/@root='2.16.840.1.113883.3.1937.777.4.10.2' and hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2']
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMICZNE)
Dołączony z 2.16.840.1.113883.3.4424.13.10.2.6 [2] Wystawca dokumentu (bazowy) (DYNAMICZNE) 1 .. 1 Required Bezwględnie wymagany
hl7:legalAuthenticator
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@typeCode
0 .. 1 F LA
@contextControlCode
0 .. 1 F OP
hl7:templateId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.6
hl7:time
TS 1 .. 1 R (plCdaPharmaceuticalDrugPrescription)
hl7:signatureCode
CS 1 .. 1 R (plCdaPharmaceuticalDrugPrescription)
CONF
Wartość @code musi pochodzić ze zbioru wartości 2.16.840.1.113883.1.11.10282 ParticipationSignature (DYNAMICZNE)
hl7:assignedEntity
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F ASSIGNED
hl7:id
II 1 .. * M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1  
@extension
st 1 .. 1  
hl7:code
CE 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Dołączony z 2.16.840.1.113883.3.4424.13.10.7.1 [7] Adres (bazowy) (DYNAMICZNE) 0 .. *
hl7:addr
0 .. * (plCdaPharmaceuticalDrugPrescription)
@nullFlavor
cs 0 .. 1 F UNK
hl7:country
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:postalCode
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
@xsi:type
0 .. 1 F
@postCity
st 0 .. 1  
hl7:city
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:streetName
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:houseNumber
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:unitID
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:unitType
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
hl7:censusTract
ADXP 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Schematron report rola  error
test not(@nullFlavor) and ((not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:postalCode))
Komunikat Dla polskiego adresu wymagane jest podanie kodu pocztowego.
Schematron report rola  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:city)
Komunikat Dla polskiego adresu wymagane jest podanie miasta.
Schematron report rola  error
test not(@nullFlavor) and (not(hl7:country) or upper-case(hl7:country)='POLSKA') and not(hl7:houseNumber)
Komunikat Dla polskiego adresu wymagane jest podanie numeru domu.
Schematron assert rola  error
test not(hl7:censusTract) or starts-with(hl7:censusTract,'TERYT TERC:') or starts-with(hl7:censusTract,'TERYT SIMC:')
Komunikat Poprawnie zapisany numer TERYT powinien zaczynać się od znaków: "TERYT TERC:" lub "TERYT SIMC:".
Schematron report rola  error
test @nullFlavor and count(./*) > 1
Komunikat Jeżeli adres jest nieznany, to nie może zawierać żadnych składników adresu.
hl7:telecom
TEL 0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:assignedPerson
gdzie
[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.1']
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.2.1 [2] Osoba (bazowy) (DYNAMICZNE)
hl7:representedOrganization
gdzie
[hl7:templateId/@root='2.16.840.1.113883.3.1937.777.4.10.2' and hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.2.2']
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMICZNE)
Schematron report rola  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])
Komunikat 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 (plCdaPharmaceuticalDrugPrescription)
hl7:participant
NP (plCdaPharmaceuticalDrugPrescription)
Dołączony z 2.16.840.1.113883.3.4424.13.10.2.53 [2] Dane zlecenia (bazowy) (DYNAMICZNE) 0 .. *
hl7:inFulfillmentOf
0 .. * (plCdaPharmaceuticalDrugPrescription)
@typeCode
0 .. 1 F FLFS
hl7:templateId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.53
hl7:order
1 .. 1 (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F ACT
@moodCode
1 .. 1 F RQO
hl7:id
II 1 .. * M (plCdaPharmaceuticalDrugPrescription)
hl7:code
CE 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
@codeSystem
1 .. 1 F 2.16.840.1.113883.5.4
hl7:priorityCode
CE 0 .. 1 (plCdaPharmaceuticalDrugPrescription)
CONF
Wartość @code musi pochodzić ze zbioru wartości 2.16.840.1.113883.1.11.16866 ActPriority (DYNAMICZNE)
hl7:documentationOf
NP (plCdaPharmaceuticalDrugPrescription)
Dołączony z 2.16.840.1.113883.3.4424.13.10.2.83 [2] Dokument powiązany dla dokumentu recepty (DYNAMICZNE) 0 .. 1
hl7:relatedDocument
0 .. 1 (plCdaPharmaceuticalDrugPrescription)
@typeCode
cs 1 .. 1 F RPLC
hl7:templateId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.83
hl7:parentDocument
1 .. 1 R (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F DOCCLIN
@moodCode
0 .. 1 F EVN
hl7:id
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
hl7:setId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
hl7:versionNumber
INT 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
Schematron report rola  error
test hl7:id[@root=/hl7:ClinicalDocument/hl7:id/@root and @extension=/hl7:ClinicalDocument/hl7:id/@extension]
Komunikat Idetyfikator dokumentu jest taki sam jak identyfikator dokumentu powiązanego wskazujcego na jego poprzednią wersję.
Schematron assert rola  error
test hl7:setId[@root=/hl7:ClinicalDocument/hl7:setId/@root and @extension=/hl7:ClinicalDocument/hl7:setId/@extension]
Komunikat Identyfikator grupy wersji dokumentów (setId) powienien być identyczny dla dokumentu i dokumentu powiązanego wskazującego na jego poprzednią wersję.
Schematron assert rola  error
test (xs:integer(hl7:versionNumber/@value)+1)=xs:integer(/hl7:ClinicalDocument/hl7:versionNumber/@value)
Komunikat Dokument powiązany powienien wskazywać poprzednią wersję dokumentu.
hl7:authorization
NP (plCdaPharmaceuticalDrugPrescription)
hl7:componentOf
NP (plCdaPharmaceuticalDrugPrescription)
Dołączony z 2.16.840.1.113883.3.4424.13.10.2.25 [2] Treść dokumentu recepty (DYNAMICZNE) 1 .. 1 Required Bezwględnie wymagany
hl7:component
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@typeCode
0 .. 1 F COMP
@contextConductionInd
bl 0 .. 1  
hl7:templateId
II 1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@root
oid 1 .. 1 F 2.16.840.1.113883.3.4424.13.10.2.25
hl7:structuredBody
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
@classCode
0 .. 1 F DOCBODY
@moodCode
0 .. 1 F EVN
hl7:component
gdzie
[hl7:section [hl7:code [(@code='57828-6' and @codeSystem='2.16.840.1.113883.6.1')]]]
1 .. 1 M (plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.3.4 [3] Sekcja zalecenia leku (DYNAMICZNE)
hl7:component
gdzie
[hl7:section [hl7:code [(@code='48768-6' and @codeSystem='2.16.840.1.113883.6.1')]]]
0 .. * R (plCdaPharmaceuticalDrugPrescription)
Zawiera 2.16.840.1.113883.3.4424.13.10.3.69 [3] Sekcja danych ubezpieczeniowych (DYNAMICZNE)
hl7:component
gdzie
[hl7:section/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.1.5.3.2']
0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:section
(plCdaPharmaceuticalDrugPrescription)
hl7:templateId
(plCdaPharmaceuticalDrugPrescription)
@root
1 .. 1 F 1.3.6.1.4.1.19376.1.5.3.1.1.5.3.2
hl7:component
gdzie
[hl7:section/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.3.13']
0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:section
(plCdaPharmaceuticalDrugPrescription)
hl7:templateId
(plCdaPharmaceuticalDrugPrescription)
@root
1 .. 1 F 1.3.6.1.4.1.19376.1.5.3.1.3.13
hl7:component
gdzie
[hl7:section/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.3.6']
0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:section
(plCdaPharmaceuticalDrugPrescription)
hl7:templateId
(plCdaPharmaceuticalDrugPrescription)
@root
1 .. 1 F 1.3.6.1.4.1.19376.1.5.3.1.3.6
hl7:component
gdzie
[hl7:section/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.3.8']
0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:section
(plCdaPharmaceuticalDrugPrescription)
hl7:templateId
(plCdaPharmaceuticalDrugPrescription)
@root
1 .. 1 F 1.3.6.1.4.1.19376.1.5.3.1.3.8
hl7:component
gdzie
[hl7:section/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.3.23']
0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:section
(plCdaPharmaceuticalDrugPrescription)
hl7:templateId
(plCdaPharmaceuticalDrugPrescription)
@root
1 .. 1 F 1.3.6.1.4.1.19376.1.5.3.1.3.23
hl7:component
gdzie
[hl7:section/hl7:templateId/@root='1.3.6.1.4.1.19376.1.5.3.1.1.5.3.4']
0 .. * (plCdaPharmaceuticalDrugPrescription)
hl7:section
(plCdaPharmaceuticalDrugPrescription)
hl7:templateId
(plCdaPharmaceuticalDrugPrescription)
@root
1 .. 1 F 1.3.6.1.4.1.19376.1.5.3.1.1.5.3.4
Schematron report rola  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
Komunikat Element text dla danego wyrażenia klinicznego jest wymagany, ze wskazaniem referencji do odpowiedniego elementu section.text.
Zmienna let Nazwa versionLabel
Wartość '1.2.2'
Schematron assert rola  error
test count(hl7:templateId[@root and xs:string(@extension)=xs:string($versionLabel)])=1
Komunikat Nie występuje prawidłowe oznaczenie zgodności dokumentu z daną wersją wydania Polskiej Implementacji Krajowej HL7 CDA.
Schematron report rola  error
test ./hl7:code/hl7:translation/hl7:qualifier[hl7:name/@code='TWREC']/hl7:value/@code = 'Z' and ./hl7:title != 'Recepta'
Komunikat Nieprawidłowy tytuł recepty zwykłej.
Schematron report rola  error
test ./hl7:code/hl7:translation/hl7:qualifier[hl7:name/@code='TWREC']/hl7:value/@code = 'P' and ./hl7:title != 'Recepta pielęgniarska'
Komunikat Nieprawidłowy tytuł recepty pielęgniarskiej.
Schematron report rola  error
test ./hl7:code/hl7:translation/hl7:qualifier[hl7:name/@code='TWREC']/hl7:value/@code = 'PL' and ./hl7:title != 'Recepta pielęgniarska na zlecenie lekarza'
Komunikat Nieprawidłowy tytuł recepty pielęgniarkiej na zlecenie lekarza.
Schematron assert rola  error
test /processing-instruction('xml-stylesheet') = concat('href="CDA_PL_IG_',$versionLabel,'.xsl" type="text/xsl"')
Komunikat Nieprawidłowe wskazanie transformaty generującej warstwę prezentacyjną dokumentu.