Te Whatu Ora, Central Region Integration Hub
1.0.12-rc1 - ci-build New Zealand flag

Te Whatu Ora, Central Region Integration Hub, published by Te Whatu Ora, Te Pae Hauora o Ruahine o Tararua, MidCentral. This guide is not an authorized publication; it is the continuous build for version 1.0.12-rc1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/tewhatuora/centralRegion-integrationHub-ig/ and changes regularly. See the Directory of published versions

Resource Profile: NZCentralRegionPatient - Mappings

Active as of 2024-09-17

Mappings for the NZCentralRegionPatient resource profile.

Mappings for Central Region Message Specification (1.14) (https://standards.digital.health.nz/ns/central-region/hl7-v2)

Central Region Message Specification (1.14) - Patient from ADT^031

NZCentralRegionPatient
PatientPatient
      extension
      extension (hl7v2Message)
         url'https://standards.digital.health.nz/ns/central-region/hl7-message'
         value[x]Entire incoming HL7 message

Base64 encoded

      extension (process-timestamp)
      extension (source-event-trigger)
      extension (source-record-type)
      extension (source-record-id)
      extension (source-data-mode-version)
      extension (process-client-id)
      extension (l4h-template-version)
   extension (ethnicity)PID-22, PID-10

Repeat for each entry in PID-22. Two coding entries, one each for

  • https://standards.digital.health.nz/ns/ethnic-group-level-4-code and
  • https://standards.digital.health.nz/ns/ethnic-group-level-2-code Note: May have to check primary ethnicity in PID-10 as well
      url'http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity'
      value[x] (valueCodeableConcept)
            systemhttps://standards.digital.health.nz/ns/ethnic-group-level-4-code and https://standards.digital.health.nz/ns/ethnic-group-level-2-code
            codePID-22.1

Which is group-level-2; lookup required for group-level-4. ConceptMap ?

            displayPID-22.2

Check for macrons in Māori and Cook Island Māori

   extension (nzCitizen)PID-26

Only using status, source not available

      extension
      extension (status)
         url'status'
         value[x] (valueCodeableConcept)
            coding
               systemhttps://standards.digital.health.nz/ns/nz-citizenship-status-code
               codePID-26.1

if PID-26.1 = 'Y' then 'yes*'

elif PID-26.1='N' then 'no'

else 'unknown'

               displayPID-26.1

if PID-26.1 = 'Y' then 'Yes'

elif PID-26.1='N' then 'No'

else 'Unknown'

      url'http://hl7.org.nz/fhir/StructureDefinition/nz-citizenship'
   extension (dhb)-

Not used, as no suitable ConceptMap available

      url'http://hl7.org.nz/fhir/StructureDefinition/dhb'

Not used, as no suitable ConceptMap available

         coding
            systemhttps://standards.digital.health.nz/ns/dhb-code

Not used, as no suitable ConceptMap available

            codePID-12

one-to-many mapping from PID-12. Perhaps with ConceptMap ??

            display
   extension (domicile-code)
      url'http://hl7.org.nz/fhir/StructureDefinition/domicile-code'
      value[x] (valueCodeableConcept)
         coding
            systemhttps://standards.digital.health.nz/ns/domicile-code
            codePID-12
            display
   extension (nzcrEthnicity)
         coding
            system
            code
            display
         coding (level2)
            system
            code
            display
         coding (level4)
            system
            code
            display
   extension (nzcrResidency)PID-28

Only using status, source not available

      extension (status)
         url'status'
            codingRepeat for each coding
               systemhttps://standards.digital.health.nz/ns/central-region/nz-residency-code AND https://standards.digital.health.nz/ns/nz-residency-code
               codePID-28.1

Raw value and mapped from webPAS residency status

               displayPID-28.2

Raw value and mapped from webPAS residency status.

            coding (nzBase)
               system
               code
               display
            coding (rawSource)
               system
               code
               display
      url'http://hl7.org.nz/fhir/StructureDefinition/nz-residency'
   extension (nzcrReligion)
      url'http://hl7.org/fhir/StructureDefinition/patient-religion'
         codingRepeat for each coding

Some codes don't map - eg: Ratana, No Religion, Refused to Answer, etc.

            systemhttps://standards.digital.health.nz/ns/central-region/patient-religion AND http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation
            codePID-17.1

Raw value and mapped from webPAS religion codes

            displayPID-17.2

Appropriate value from code lookup

         coding (origFhir)
            system
            code
            display
         coding (rawSource)
            system
            code
            display
   extension (interpreterRequired)
      url'http://hl7.org/fhir/StructureDefinition/patient-interpreterRequired'
      value[x]PID-15.4

if PID-15.4='Y' then 'true' else 'false'

   identifier 

if PID-3.4.2 != '2.16.840.1.113883.2.18.2'

      use'temp'

if PID-3.4.2 != '2.16.840.1.113883.2.18.2'

      type
         coding
            system'http://terminology.hl7.org/CodeSystem/v2-0203'
            code'MR'
            display'Medical record number'
      system'https://standards.digital.health.nz/ns/central-region/pas-patient-id'

if PID-3.4.2 != '2.16.840.1.113883.2.18.2'

      valuePID-3.1
   identifier (NHI) 

if PID-3.4.2 == '2.16.840.1.113883.2.18.2'

      use'usual'

if PID-3.4.2 == '2.16.840.1.113883.2.18.2'

      type 

as above

      system'https://standards.digital.health.nz/ns/nhi-id'

if PID-3.4.2 == '2.16.840.1.113883.2.18.2'

      valuePID-3.1
   namePID-5 and PID-9

Repeat for PID-5 Patient Name and PID-9 Patient Aliases

      use'usual' | 'old'

if mapping PID-5 then 'usual' elif mapping PID-9 then 'old'

      textPID-5.5 + ' ' + PID-5.2 + ' ' + PID-5.3 + ' ' + PID-5.1 or PID-9.5 + ' ' + PID-9.2 + ' ' + PID-9.3 + ' ' + PID-9.1
      familyPID-5.1 or PID-9.1
      givenPID-5.2 or PID-9.2 and PID-5.3 or PID-9.3

PID-5.2 and PID-9.2 -> name.given[0] AND

PID-5.3 and PID-9.3 -> name.given[1]

Do NOT attempt to separate middle names

      prefixPID-5.5 or PID-9.5
   telecomPID-13 and PID-14

Repeat for PID-13 and PID-14

      systemPID-13.3 or PID-14.3

if 'PH' then 'phone' if 'FX' then 'fax'

if 'CP' then 'sms'

if 'BP' then 'pager'

if 'NET' then 'email'

Note: If only one phone entry with type 'CP' then use 'phone'

      valuePID-13.1 or PID-14.1
      use'home' | 'work'

if mapping PID-13 then 'home'

elif mapping PID-14 then 'work'

   genderPID-8

if PID-8 == 'F' then 'female'

elif PID-8 == 'M' then 'male'

elif PIF-8 == 'U' then 'unknown'

   birthDatePID-7
   deceased[x]
   deceased[x] (deceasedDateTime)PID-29

if known

   deceased[x] (deceasedBoolean)PID-30
   address
      extension (suburb)
         url'http://hl7.org.nz/fhir/StructureDefinition/suburb'
         value[x]PID-11.8

if present

      extension (domicile-code)
         value[x] (valueCodeableConcept)
            coding
               system
               code
               display
      use
      type'physical' | 'postal'

if PID-11.7 == 'C' then 'physical' elif PID 11.7 == 'M' then 'postal'

      linePID-11.1 and PID-11.2

if present, repeat as required

      cityPID-11.3
      statePID-11.4

if present

      postalCodePID-11.5

if present

      countryPID-11.6

if present

   maritalStatus
      coding
         systemhttp://terminology.hl7.org/CodeSystem/v3-MaritalStatus or http://terminology.hl7.org/CodeSystem/v3-NullFlavor

According to Marital Status Concept Map

         codePID-16.1
         displayPID-16.2
   contactNK1

Repeat for each NK1 segment

      relationship
         extension (contact-relationship)
               systemhttps://standards.digital.health.nz/ns/central-region/contact-relationship
               codeNK1-3.1

Raw value

               displayNK1-3.2
         codingNK1
            systemhttp://terminology.hl7.org/CodeSystem/v2-0131
            codeC
            displayEmergency Contact
      name
         textNK1-2.5 + ' ' + NK1-2.1 + ' 'NK1-2.2 + '
         familyNK1-2.1
         givenNK1-2.2
         prefixNK1-2.5

if present

      telecomNK1

Repeat for NK1-5 and NK1-6

         systemNK1-5.3 or NK1-6.3

if 'PH' then 'phone'

if 'FX' then 'fax'

if 'CP' then 'sms'

if 'BP' then 'pager'

if 'NET' then 'email'

Note: If only one phone entry with type 'CP' then use 'phone'

         valueNK1-5.1 or NK1-6.1
         use'home' | 'work'

if mapping NK1-5 then 'home' elif mapping NK1-6 then 'work'

      period
   communication
      language
         codingPID-15

At least two codings:

  • https://standards.digital.health.nz/ns/central-region/pas-language AND
  • urn:ietf:bcp:47
            systemhttps://standards.digital.health.nz/ns/central-region/pas-language OR urn:ietf:bcp:47

ietf:bcp:47 includes all iso-639 language codes;

            codePID-15.1

Language Concept Map provides mapping from WebPAS raw code Note: zOTH and zTEO codes are mapped to special systems

            displayPID-15.2
      preferred'true'

PID-15 is by definition the patient's preferred language

   generalPractitionerPD1-4

Lookup using PD1-4.1 (local identifier) ??

      referencen/a

Internal GUID

      type'Practitioner'
      identifier
         use'usual'
         type
            coding 

Practitioner Identifiers are locally assigned within PAS

               system'http://terminology.hl7.org/CodeSystem/v2-0203'
               code'LR'
               display'Local registry ID'
         systemhttps://standards.digital.health.nz/ns/central-region/pas-practitioner-id

if PD1-4.9.2 == '2.16.840.1.113883.2.18.66.3.2.0'

         valuePD1-4.1
      displayPD1-4.2 + ', ' + PD1-4.3 + ' ' + PD1-4.4 + ' + PD1=4.6
   link
      other
         type
         identifier
      type