Mappings for the ehealth-patient resource profile.
  
  
  
 | ehealth-patient | 
 | Patient | Entity. Role, or Act, Patient[classCode=PAT] |  
 |    text | Act.text? |  
 |    contained | N/A |  
 |    modifierExtension | N/A |  
 |    identifier | id |  
 |    identifier (cpr) | n/a, II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT] |  
 |    active | statusCode |  
 |    name | name |  
 |    name (official) | name |  
 |       id | n/a |  
 |       extension | n/a |  
 |       use | unique(./use) |  
 |       text | ./formatted |  
 |       family | ./part[partType = FAM] |  
 |       given | ./part[partType = GIV] |  
 |       prefix | ./part[partType = PFX] |  
 |       suffix | ./part[partType = SFX] |  
 |       period | ./usablePeriod[type="IVL<TS>"] |  
 |    telecom | telecom |  
 |    telecom (NemSMS) | telecom |  
 |       id | n/a |  
 |       extension | n/a |  
 |       system | ./scheme |  
 |       value | ./url |  
 |       period | ./usablePeriod[type="IVL<TS>"] |  
 |    telecom (eBoks) | telecom |  
 |       id | n/a |  
 |       extension | n/a |  
 |       system | ./scheme |  
 |       value | ./url |  
 |       period | ./usablePeriod[type="IVL<TS>"] |  
 |    gender | player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender |  
 |    birthDate | player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime |  
 |    deceased[x] | player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime |  
 |    address | addr |  
 |       id | n/a |  
 |       extension | n/a |  
 |       use | unique(./use) |  
 |       type | unique(./use) |  
 |       text | ./formatted |  
 |       line | AD.part[parttype = AL] |  
 |       city | AD.part[parttype = CTY] |  
 |       district | AD.part[parttype = CNT | CPA] |  
 |       state | AD.part[parttype = STA] |  
 |       postalCode | AD.part[parttype = ZIP] |  
 |       country | AD.part[parttype = CNT] |  
 |       period | ./usablePeriod[type="IVL<TS>"] |  
 |    address (officialHomeAddress) | addr |  
 |       id | n/a |  
 |       extension | n/a |  
 |       use | unique(./use) |  
 |       type | unique(./use) |  
 |       text | ./formatted |  
 |       line | AD.part[parttype = AL] |  
 |       city | AD.part[parttype = CTY] |  
 |       district | AD.part[parttype = CNT | CPA] |  
 |       state | AD.part[parttype = STA] |  
 |       postalCode | AD.part[parttype = ZIP] |  
 |       country | AD.part[parttype = CNT] |  
 |       period | ./usablePeriod[type="IVL<TS>"] |  
 |    maritalStatus | player[classCode=PSN]/maritalStatusCode |  
 |    multipleBirth[x] | player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd,  player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber |  
 |    photo | player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc |  
 |    contact | player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON] |  
 |       id | n/a |  
 |       modifierExtension | N/A |  
 |       relationship | code |  
 |       name | name |  
 |       telecom | telecom |  
 |       address | addr |  
 |          id | n/a |  
 |          extension | n/a |  
 |          use | unique(./use) |  
 |          type | unique(./use) |  
 |          text | ./formatted |  
 |          line | AD.part[parttype = AL] |  
 |          city | AD.part[parttype = CTY] |  
 |          district | AD.part[parttype = CNT | CPA] |  
 |          state | AD.part[parttype = STA] |  
 |          postalCode | AD.part[parttype = ZIP] |  
 |          country | AD.part[parttype = CNT] |  
 |          period | ./usablePeriod[type="IVL<TS>"] |  
 |       gender | player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender |  
 |       organization | scoper |  
 |       period | effectiveTime |  
 |    communication | LanguageCommunication |  
 |       id | n/a |  
 |       extension | n/a |  
 |       modifierExtension | N/A |  
 |       language | player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code |  
 |          id | n/a |  
 |          extension | n/a |  
 |          coding | union(., ./translation) |  
 |             id | n/a |  
 |             extension | n/a |  
 |             system | ./codeSystem |  
 |             version | ./codeSystemVersion |  
 |             code | ./code |  
 |             display | CV.displayName |  
 |             userSelected | CD.codingRationale |  
 |          text | ./originalText[mediaType/code="text/plain"]/data |  
 |       preferred | preferenceInd |  
 |    generalPractitioner | subjectOf.CareEvent.performer.AssignedEntity |  
 |    generalPractitioner (referencedSORUnit) | subjectOf.CareEvent.performer.AssignedEntity |  
 |       id | n/a |  
 |       extension | n/a |  
 |       reference | N/A |  
 |       type | N/A |  
 |       identifier | n/a, II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT] |  
 |       display | N/A |  
 |    managingOrganization | scoper |  
 |    link | outboundLink |  
 |       id | n/a |  
 |       extension | n/a |  
 |       modifierExtension | N/A |  
 |       other | id |  
 |       type | typeCode |  
 | ehealth-patient | 
 | Patient |  |  
 |    identifier | PID-3 |  
 |    identifier (cpr) | CX / EI (occasionally, more often EI maps to a resource id or a URL) |  
 |    name | PID-5, PID-9 |  
 |    name (official) | PID-5, PID-9 |  
 |       use | XPN.7, but often indicated by which field contains the name |  
 |       text | implied by XPN.11 |  
 |       family | XPN.1/FN.1 |  
 |       given | XPN.2 + XPN.3 |  
 |       prefix | XPN.5 |  
 |       suffix | XPN/4 |  
 |       period | XPN.13 + XPN.14 |  
 |    telecom | PID-13, PID-14, PID-40 |  
 |    telecom (NemSMS) | PID-13, PID-14, PID-40 |  
 |       system | XTN.3 |  
 |       value | XTN.1 (or XTN.12) |  
 |       period | N/A |  
 |    telecom (eBoks) | PID-13, PID-14, PID-40 |  
 |       system | XTN.3 |  
 |       value | XTN.1 (or XTN.12) |  
 |       period | N/A |  
 |    gender | PID-8 |  
 |    birthDate | PID-7 |  
 |    deceased[x] | PID-30  (bool) and PID-29 (datetime) |  
 |    address | PID-11 |  
 |       use | XAD.7 |  
 |       type | XAD.18 |  
 |       text | XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6 |  
 |       line | XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address) |  
 |       city | XAD.3 |  
 |       district | XAD.9 |  
 |       state | XAD.4 |  
 |       postalCode | XAD.5 |  
 |       country | XAD.6 |  
 |       period | XAD.12 / XAD.13 + XAD.14 |  
 |    address (officialHomeAddress) | PID-11 |  
 |       use | XAD.7 |  
 |       type | XAD.18 |  
 |       text | XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6 |  
 |       line | XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address) |  
 |       city | XAD.3 |  
 |       district | XAD.9 |  
 |       state | XAD.4 |  
 |       postalCode | XAD.5 |  
 |       country | XAD.6 |  
 |       period | XAD.12 / XAD.13 + XAD.14 |  
 |    maritalStatus | PID-16 |  
 |    multipleBirth[x] | PID-24 (bool), PID-25 (integer) |  
 |    photo | OBX-5 - needs a profile |  
 |    contact |  |  
 |       relationship | NK1-7, NK1-3 |  
 |       name | NK1-2 |  
 |       telecom | NK1-5, NK1-6, NK1-40 |  
 |       address | NK1-4 |  
 |          use | XAD.7 |  
 |          type | XAD.18 |  
 |          text | XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6 |  
 |          line | XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address) |  
 |          city | XAD.3 |  
 |          district | XAD.9 |  
 |          state | XAD.4 |  
 |          postalCode | XAD.5 |  
 |          country | XAD.6 |  
 |          period | XAD.12 / XAD.13 + XAD.14 |  
 |       gender | NK1-15 |  
 |       organization | NK1-13, NK1-30, NK1-31, NK1-32, NK1-41 |  
 |    communication |  |  
 |       language | PID-15, LAN-2 |  
 |          coding | C*E.1-8, C*E.10-22 |  
 |             system | C*E.3 |  
 |             version | C*E.7 |  
 |             code | C*E.1 |  
 |             display | C*E.2 - but note this is not well followed |  
 |             userSelected | Sometimes implied by being first |  
 |          text | C*E.9. But note many systems use C*E.2 for this |  
 |       preferred | PID-15 |  
 |    generalPractitioner | PD1-4 |  
 |    generalPractitioner (referencedSORUnit) | PD1-4 |  
 |       identifier | CX / EI (occasionally, more often EI maps to a resource id or a URL) |  
 |    link |  |  
 |       other | PID-3, MRG-1 |