Item | DT | Card | Conf | Description | Label |
---|
hl7:recordTarget
| | 1 … 1 | M | | plCdrget |
@typeCode
| cs | 0 … 1 | F | RCT |
@contextControlCode
| cs | 0 … 1 | F | OP |
hl7:templateId
| II | 1 … 1 | M | | plCdrget |
@root
| oid | 1 … 1 | F | 2.16.840.1.113883.3.4424.13.10.2.3 |
hl7:templateId
| II | 1 … 1 | M | | plCdrget |
@root
| oid | 1 … 1 | F | 2.16.840.1.113883.3.4424.13.10.2.26 |
hl7:patientRole
| | 1 … 1 | M | | plCdrget |
@classCode
| cs | 0 … 1 | F | PAT |
hl7:id
| II | 1 … * | M | | plCdrget |
@root
| oid | 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. | |
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 | | plCdAddr |
@nullFlavor
| cs | 0 … 1 | F | UNK |
hl7:country
| ADXP | 0 … 1 | | | plCdAddr |
hl7:postalCode
| | 0 … 1 | | | plCdAddr |
@xsi:type
| | 0 … 1 | F | extPL:adxp |
@postCity
| st | 0 … 1 | | |
hl7:city
| ADXP | 0 … 1 | | | plCdAddr |
hl7:streetName
| ADXP | 0 … 1 | | | plCdAddr |
hl7:houseNumber
| ADXP | 0 … 1 | | | plCdAddr |
hl7:unitID
| ADXP | 0 … 1 | | | plCdAddr |
hl7:unitType
| ADXP | 0 … 1 | | | plCdAddr |
hl7:censusTract
| ADXP | 0 … 1 | | | plCdAddr |
| 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. | |
hl7:patient
| | 1 … 1 | M | | plCdrget |
@classCode
| cs | 0 … 1 | F | PSN |
@determinerCode
| cs | 0 … 1 | F | INSTANCE |
hl7:id
| II | 0 … * | NP | | plCdrget |
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 | | plCdName |
hl7:prefix
| ENXP | 0 … 1 | | | plCdName |
hl7:given
| ENXP | 1 … * | R | | plCdName |
hl7:family
| ENXP | 1 … * | R | | plCdName |
hl7:birthTime
| TS.DATE | 0 … 1 | | | plCdrget |
| 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 urodzenia powinno być w formacie YYYYMMDD. | |
hl7:guardian
| | 0 … * | | | plCdrget |
@classCode
| cs | 1 … 1 | F | GUARD |
hl7:id
| II | 0 … * | | | plCdrget |
@root
| oid | 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:code
| CE | 0 … 1 | | | plCdrget |
@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 … * | | | plCdAddr |
@nullFlavor
| cs | 0 … 1 | F | UNK |
hl7:country
| ADXP | 0 … 1 | | | plCdAddr |
hl7:postalCode
| | 0 … 1 | | | plCdAddr |
@xsi:type
| | 0 … 1 | F | extPL:adxp |
@postCity
| st | 0 … 1 | | |
hl7:city
| ADXP | 0 … 1 | | | plCdAddr |
hl7:streetName
| ADXP | 0 … 1 | | | plCdAddr |
hl7:houseNumber
| ADXP | 0 … 1 | | | plCdAddr |
hl7:unitID
| ADXP | 0 … 1 | | | plCdAddr |
hl7:unitType
| ADXP | 0 … 1 | | | plCdAddr |
hl7:censusTract
| ADXP | 0 … 1 | | | plCdAddr |
| 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. | |
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) | plCdrget |
hl7:guardianOrganization
| | | | Contains 2.16.840.1.113883.3.4424.13.10.2.2 [2] Organizacja (bazowy) (DYNAMIC) | plCdrget |
extPL:multipleBirthInd
| BL | 0 … 1 | | | plCdrget |
extPL:multipleBirthOrderNumber
| INT.POS | 0 … 1 | | | plCdrget |
| Schematron report | role | 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) | plCdrget |
| Schematron report | role | 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. | |