segment-pid-to-patient
type: ConceptMap
node role: treeRoot
id:
  v: segment-pid-to-patient
text:
  status:
    v: generated
  div: Generated Narrative: ConceptMap segment-pid-to-patient Mapping from (not specified) to (not specified) Group 1 Mapping from unspecified code system to unspecified code system Source Concept Details Relationship Target Concept Details Comment Codes from NarrativeCondition ComputableANTLR Codes from PID-2 Patient ID is equivalent to identifier[1] identifier[1] PID-3 Patient Identifier List is equivalent to identifier[2] identifier[2] PID-4 Alternate Patient ID - PID is equivalent to identifier[3] identifier[3] PID-5 Patient Name is equivalent to name[1] name[1] PID-6 Mother's Maiden Name is equivalent to extension[1].url extension[1].url PID-6 Mother's Maiden Name is equivalent to extension[1].valueString extension[1].valueString This may not be the second name if there are repeats in PID-5. ext.patientMothersMaiden (string) also exists if we prefer. PID-7 Date/Time of Birth is equivalent to birthDate birthDate PROPOSAL MOVE TO IG IMPLEMENTATION GUIDANCE SECTION: Use ISO 8601 to establish the re-formatting from HL7 v2 data type to HL7 FHIR data type, particularly when mapping a platform datetime to platform date. ADD OTHER REFERENCES ON HOW TO ACHIEVE THESE CONVERSIONS in Java, CSHarp, etc., etc. PID-7 Date/Time of Birth IF PID-7 LENGTH GREATER THAN 8 is equivalent to birthDate.extension[1].url birthDate.extension[1].url PID-7 Date/Time of Birth IF PID-7 LENGTH GREATER THAN 8 is equivalent to birthDate.extension[1].valueDateTime birthDate.extension[1].valueDateTime PID-8 Administrative Sex is equivalent to gender gender PID-9 Patient Alias is equivalent to name[2] name[2] PID-11 Patient Address is equivalent to address[1] address[1] PID-12 County Code IF PID-11 LST.COUNT EQUALS 1 AND PID-11.9 IS NOT VALUED is equivalent to address[1].district address[1].district This may not be the second occurrence if PID-11 repeats. Because PID-11 can repeat but PID-12 cannot, it's not appropriate to include PID-12 in an iteration of .address populated from PID-11 PID-12 County Code…
extension:
  extension:
    url:
      v: type
    value: code
      v: derived-from
  extension:
    url:
      v: label
    value: string
      v: Segment PID to Patient.fsh
  extension:
    url:
      v: url
    value: uri
      v: https://docs.google.com/spreadsheets/d/1_MOAJOykRWct_9cBG-EcPcWSpSObQFLboPB579DIoAI/edit
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  value: code
    v: oo
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: informative
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      value: canonical
        v: http://hl7.org/fhir/uv/v2mappings/ImplementationGuide/hl7.fhir.uv.v2mappings
        link: http://hl7.org/fhir/uv/v2mappings/ImplementationGuide/hl7.fhir.uv.v2mappings
url:
  v: http://hl7.org/fhir/uv/v2mappings/ConceptMap/segment-pid-to-patient
version:
  v: 1.0.0
name:
  v: SegmentPIDToPatient
title:
  v: Segment PID to Patient Map
status:
  v: active
experimental:
  v: true
date:
  v: 2025-08-25
publisher:
  v: HL7 International / Orders and Observations
contact:
  name:
    v: HL7 Orders and Observations Workgroup
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/orders
description:
  v: This ConceptMap represents a mapping from the HL7 V2 Segment PID to the FHIR Patient Resource.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
copyright:
  v: Copyright (c) 2025, HL7 International, Inc., All Rights Reserved.
group:
  element:
    extension:
      extension:
        value: code
      extension:
        value: integer
      extension:
        value: integer
      url:
        v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
    code:
      v: PID-2
    display:
      v: Patient ID
    target:
      code:
        v: identifier[1]
      display:
        v: identifier[1]
      equivalence:
        v: equivalent
  element:
    extension:
      extension:
        value: code
      extension:
        value: integer
      extension:
        value: integer
      url:
        v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
    code:
      v: PID-3
    display:
      v: Patient Identifier List
    target:
      code:
        v: identifier[2]
      display:
        v: identifier[2]
      equivalence:
        v: equivalent
  element:
    extension:
      extension:
        value: code
      extension:
        value: integer
      extension:
        value: integer
      url:
        v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
    code:
      v: PID-4
    display:
      v: Alternate Patient ID - PID
    target:
      code:
        v: identifier[3]
      display:
        v: identifier[3]
      equivalence:
        v: equivalent
  element:
    extension:
      extension:
        value: code
      extension:
        value: integer
      extension:
        value: integer
      url:
        v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
    code:
      v: PID-5
    display:
      v: Patient Name
    target:
      code:
        v: name[1]
      display:
        v: name[1]
      equivalence:
        v: equivalent
  element:
    extension:
      extension:
        value: code
      extension:
        value: integer
      extension:
        value: integer
      url:
        v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
    code:
      v: PID-6
    display:
      v: Mother's Maiden Name
    target:
      code:
        v: extension[1].url
      display:
        v: extension[1].url
      equivalence:
        v: equivalent
  element:
    extension:
      extension:
        value: code
      extension:
        value: integer
      extension:
        value: integer
      url:
        v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
    code:
      v: PID-6
    display:
      v: Mother's Maiden Name
    target:
      code:
        v: extension[1].valueString
      display:
        v: extension[1].valueString
      equivalence:
        v: equivalent

v: type

code
v: CX

v: cardinalityMin

integer
v: 1

v: cardinalityMax

integer
v: 1

url:
  v: type
value: code
  v: Identifier

url:
  v: cardinalityMin
value: integer
  v: 0

url:
  v: cardinalityMax
value: integer
  v: -1

v: type

code
v: CX

v: cardinalityMin

integer
v: -1

v: cardinalityMax

integer
v: -1

url:
  v: type
value: code
  v: Identifier

url:
  v: cardinalityMin
value: integer
  v: 0

url:
  v: cardinalityMax
value: integer
  v: -1

v: type

code
v: CX

v: cardinalityMin

integer
v: 1

v: cardinalityMax

integer
v: 1

url:
  v: type
value: code
  v: Identifier

url:
  v: cardinalityMin
value: integer
  v: 0

url:
  v: cardinalityMax
value: integer
  v: -1

v: type

code
v: XPN

v: cardinalityMin

integer
v: -1

v: cardinalityMax

integer
v: -1

url:
  v: type
value: code
  v: HumanName

url:
  v: cardinalityMin
value: integer
  v: 0

url:
  v: cardinalityMax
value: integer
  v: -1

v: type

code
v: XPN

v: cardinalityMin

integer
v: -1

v: cardinalityMax

integer
v: -1

url:
  v: type
value: code
  v: uri

url:
  v: cardinalityMin
value: integer
  v: 1

url:
  v: cardinalityMax
value: integer
  v: 1

url:
  v: assignment
value: string
  v: "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName"

v: type

code
v: XPN

v: cardinalityMin

integer
v: -1

v: cardinalityMax

integer
v: -1

url:
  v: type
value: code
  v: string

url:
  v: cardinalityMin
value: integer
  v: 1

url:
  v: cardinalityMax
value: integer
  v: 1

v: This may not be the second name if there are repeats in PID-5. ext.patientMothersMaiden (string) also exists if we prefer.

extension:
  extension:
    url:
      v: type
    value: code
      v: DTM
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-7
display:
  v: Date/Time of Birth
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: date
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: birthDate
  display:
    v: birthDate
  equivalence:
    v: equivalent
  comment:
    v: PROPOSAL MOVE TO IG IMPLEMENTATION GUIDANCE SECTION: Use ISO 8601 to establish the re-formatting from HL7 v2 data type to HL7 FHIR data type, particularly when mapping a platform datetime to platform date. ADD OTHER REFERENCES ON HOW TO ACHIEVE THESE CONVERSIONS in Java, CSHarp, etc., etc.

extension:
  extension:
    url:
      v: type
    value: code
      v: DTM
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-7
display:
  v: Date/Time of Birth
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "http://hl7.org/fhir/StructureDefinition/patient-birthTime"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: birthDate.extension[1].url
  display:
    v: birthDate.extension[1].url
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-7 LENGTH GREATER THAN 8

extension:
  extension:
    url:
      v: type
    value: code
      v: DTM
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-7
display:
  v: Date/Time of Birth
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: dateTime
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: birthDate.extension[1].valueDateTime
  display:
    v: birthDate.extension[1].valueDateTime
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-7 LENGTH GREATER THAN 8

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-8
display:
  v: Administrative Sex
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: code
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: mappedVia
      value: url
        v: ConceptMap/table-hl70001-to-administrative-gender
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: gender
  display:
    v: gender
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: XPN
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-9
display:
  v: Patient Alias
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: HumanName
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: -1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: name[2]
  display:
    v: name[2]
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: XAD
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-11
display:
  v: Patient Address
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: Address
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: -1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: address[1]
  display:
    v: address[1]
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: ID
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-12
display:
  v: County Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: string
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: address[1].district
  display:
    v: address[1].district
  equivalence:
    v: equivalent
  comment:
    v: This may not be the second occurrence if PID-11 repeats. Because PID-11 can repeat but PID-12 cannot, it's not appropriate to include PID-12 in an iteration of .address populated from PID-11
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-11 LST.COUNT EQUALS 1 AND PID-11.9 IS NOT VALUED

extension:
  extension:
    url:
      v: type
    value: code
      v: ID
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-12
display:
  v: County Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: string
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: address[2].district
  display:
    v: address[2].district
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-11 LST.COUNT EQUALS 1 AND PID-11.9 IS VALUED NOT EQUAL PID-12

extension:
  extension:
    url:
      v: type
    value: code
      v: ID
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-12
display:
  v: County Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: string
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: address[2].district
  display:
    v: address[2].district
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-11 LST.COUNT GREATER THAN 1

extension:
  extension:
    url:
      v: type
    value: code
      v: ID
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-12
display:
  v: County Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: string
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: address[1].district
  display:
    v: address[1].district
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-11 IS NOT VALUED

extension:
  extension:
    url:
      v: type
    value: code
      v: XTN
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-13
display:
  v: Phone Number - Home
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: ContactPoint
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: -1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: telecom[1]
  display:
    v: telecom[1]
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: XTN
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-13
display:
  v: Phone Number - Home
target:
  extension:
    extension:
      url:
        v: assignment
      value: string
        v: "home"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: telecom[1].use
  display:
    v: telecom[1].use
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-13.2 IS NOT VALUED

extension:
  extension:
    url:
      v: type
    value: code
      v: XTN
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-14
display:
  v: Phone Number - Business
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: ContactPoint
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: -1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: telecom[2]
  display:
    v: telecom[2]
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: XTN
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-14
display:
  v: Phone Number - Business
target:
  extension:
    extension:
      url:
        v: assignment
      value: string
        v: "work"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: telecom[2].use
  display:
    v: telecom[2].use
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-14.2 IS NOT VALUED

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-15
display:
  v: Primary Language
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: CodeableConcept
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: -1
    extension:
      url:
        v: mappedVia
      value: url
        v: unspecified_mapping
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: communication.language
  display:
    v: communication.language
  equivalence:
    v: equivalent
  comment:
    v: During implementation, if you know that the value in PID-15 is the preferred patient language, then Patient.communication.preferred can be set to "true".

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-16
display:
  v: Marital Status
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: CodeableConcept
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: mappedVia
      value: url
        v: ConceptMap/table-hl70002-to-v3-maritalstatus
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: maritalStatus
  display:
    v: maritalStatus
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-17
display:
  v: Religion
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "http://hl7.org/fhir/StructureDefinition/patient-religion"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[2].url
  display:
    v: extension[2].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-17
display:
  v: Religion
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: CodeableConcept
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: mappedVia
      value: url
        v: ConceptMap/table-hl70006-to-v3-religiousaffiliation
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[2].valueCodeableConcept
  display:
    v: extension[2].valueCodeableConcept
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: ST
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-19
display:
  v: SSN Number - Patient
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: string
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: identifier[4].value
  display:
    v: identifier[4].value
  equivalence:
    v: equivalent
  comment:
    v: the value set for Identifier.type doesn't contain SSN but it does have SB (social beneficiary)

extension:
  extension:
    url:
      v: type
    value: code
      v: ST
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-19
display:
  v: SSN Number - Patient
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: code
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "SS"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: identifier[4].type.coding.code
  display:
    v: identifier[4].type.coding.code
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Narrative-Condition
    value:
      v: If in the US and various other jurisdictions

extension:
  extension:
    url:
      v: type
    value: code
      v: ST
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-19
display:
  v: SSN Number - Patient
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: code
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "SB"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: identifier[4].type.coding.code
  display:
    v: identifier[4].type.coding.code
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Narrative-Condition
    value:
      v: If outside the US for certain jurisdictions

extension:
  extension:
    url:
      v: type
    value: code
      v: ST
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-19
display:
  v: SSN Number - Patient
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "http://terminology.hl7.org/CodeSystem/v2-0203"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: identifier[4].type.coding.system
  display:
    v: identifier[4].type.coding.system
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: ST
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-19
display:
  v: SSN Number - Patient
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "http://hl7.org/fhir/sid/us-ssn."
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: identifier[4].system
  display:
    v: identifier[4].system
  equivalence:
    v: equivalent
  comment:
    v: If working in a jurisdiction other than the US and this field is used for the local SSN equivalent, a different system will need to be identified.

extension:
  extension:
    url:
      v: type
    value: code
      v: DLN
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-20
display:
  v: Driver's License Number - Patient
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: Identifier
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: identifier[5]
  display:
    v: identifier[5]
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CX
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-21
display:
  v: Mother's Identifier
target:
  code:
    v: $this
  display:
    v: $this
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: ST
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-23
display:
  v: Birth Place
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "http://hl7.org/fhir/StructureDefinition/patient-birthPlace"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[3].url
  display:
    v: extension[3].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: ST
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-23
display:
  v: Birth Place
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: string
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[3].valueAddress.text
  display:
    v: extension[3].valueAddress.text
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: ID
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-24
display:
  v: Multiple Birth Indicator
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: boolean
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: mappedVia
      value: url
        v: ConceptMap/table-hl70136-to-special-values
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: multipleBirthBoolean
  display:
    v: multipleBirthBoolean
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-25 NOT VALUED

extension:
  extension:
    url:
      v: type
    value: code
      v: NM
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-25
display:
  v: Birth Order
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: integer
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: multipleBirthInteger
  display:
    v: multipleBirthInteger
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-26
display:
  v: Citizenship
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "http://hl7.org/fhir/StructureDefinition/patient-citizenship"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[4].url
  display:
    v: extension[4].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-26
display:
  v: Citizenship
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "code"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[4].extension[1].url
  display:
    v: extension[4].extension[1].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-26
display:
  v: Citizenship
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: CodeableConcept
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[4].extension[1].valueCodeableConcept
  display:
    v: extension[4].extension[1].valueCodeableConcept
  equivalence:
    v: equivalent
  comment:
    v: The standard extension does not include a value set

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-28
display:
  v: Nationality
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "http://hl7.org/fhir/StructureDefinition/patient-nationality"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[5].url
  display:
    v: extension[5].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-28
display:
  v: Nationality
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "code"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[5].extension[1].url
  display:
    v: extension[5].extension[1].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-28
display:
  v: Nationality
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: CodeableConcept
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[5].extension[1].valueCodeableConcept
  display:
    v: extension[5].extension[1].valueCodeableConcept
  equivalence:
    v: equivalent
  comment:
    v: The standard extension does not include a value set

extension:
  extension:
    url:
      v: type
    value: code
      v: DTM
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-29
display:
  v: Patient Death Date and Time
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: dateTime
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: deceasedDateTime
  display:
    v: deceasedDateTime
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: ID
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-30
display:
  v: Patient Death Indicator
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: boolean
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: mappedVia
      value: url
        v: ConceptMap/table-hl70136-to-special-values
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: deceasedBoolean
  display:
    v: deceasedBoolean
  equivalence:
    v: equivalent
  depends on:
    property:
      v: Computable-ANTLR
    value:
      v: IF PID-29 NOT VALUED

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-35
display:
  v: Taxonomic Classification Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: -1
    extension:
      url:
        v: assignment
      value: string
        v: "http://hl7.org/fhir/StructureDefinition/patient-animal"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[6].url
  display:
    v: extension[6].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-35
display:
  v: Taxonomic Classification Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "species"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[6].extension[1].url
  display:
    v: extension[6].extension[1].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-35
display:
  v: Taxonomic Classification Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: CodeableConcept
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[6].extension[1].valueCodeableConcept
  display:
    v: extension[6].extension[1].valueCodeableConcept
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-36
display:
  v: Breed Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: -1
    extension:
      url:
        v: assignment
      value: string
        v: "http://hl7.org/fhir/StructureDefinition/patient-animal"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[6].url
  display:
    v: extension[6].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-36
display:
  v: Breed Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "breed"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[6].extension[2].url
  display:
    v: extension[6].extension[2].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: 1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: 1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-36
display:
  v: Breed Code
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: CodeableConcept
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[6].extension[2].valueCodeableConcept
  display:
    v: extension[6].extension[2].valueCodeableConcept
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-39
display:
  v: Tribal Citizenship
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "http://hl7.org/fhir/StructureDefinition/patient-citizenship"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[7].url
  display:
    v: extension[7].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-39
display:
  v: Tribal Citizenship
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: uri
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    extension:
      url:
        v: assignment
      value: string
        v: "code"
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[7].extension[1].url
  display:
    v: extension[7].extension[1].url
  equivalence:
    v: equivalent

extension:
  extension:
    url:
      v: type
    value: code
      v: CWE
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-39
display:
  v: Tribal Citizenship
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: CodeableConcept
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 1
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: 1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: extension[7].extension[1].valueCodeableConcept
  display:
    v: extension[7].extension[1].valueCodeableConcept
  equivalence:
    v: equivalent
  comment:
    v: The standard extension does not include a value set. Also suggest that the extension should not be limited to "country". Consider adding a .type to the extension to distinguish tribal vs. "country" (or whatever we call it), or otherwise add an extension for tribal citizenship to accommodate the return flow.

extension:
  extension:
    url:
      v: type
    value: code
      v: XTN
  extension:
    url:
      v: cardinalityMin
    value: integer
      v: -1
  extension:
    url:
      v: cardinalityMax
    value: integer
      v: -1
  url:
    v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
code:
  v: PID-40
display:
  v: Patient Telecommunication Information
target:
  extension:
    extension:
      url:
        v: type
      value: code
        v: ContactPoint
    extension:
      url:
        v: cardinalityMin
      value: integer
        v: 0
    extension:
      url:
        v: cardinalityMax
      value: integer
        v: -1
    url:
      v: http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo
  code:
    v: telecom[3]
  display:
    v: telecom[3]
  equivalence:
    v: equivalent