2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Profile: USLabPHPatient

Profile for Patient with expanded contact information

{
  "resourceType": "Profile",
  "id": "patient-uslab-uslabphpatient",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "url": "http://hl7.org/fhir/Profile/patient-uslab-uslabphpatient",
  "name": "US Laboratory Patient Profile",
  "publisher": "HL7 International - Orders and Observations WG",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org"
        }
      ]
    }
  ],
  "description": "Patient with expanded contact information",
  "status": "draft",
  "date": "2014-11-17",
  "type": "Patient",
  "base": "http://hl7.org/fhir/Profile/Patient",
  "snapshot": {
    "element": [
      {
        "path": "Patient",
        "name": "USLabPHPatient",
        "short": "Patient with expanded contact information",
        "definition": "Subject of lab test.",
        "requirements": "Tracking patient is the center of the healthcare process.",
        "synonym": [
          "SubjectOfCare Client Resident",
          "Subject"
        ],
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "rim",
            "map": "Patient[classCode=PAT]"
          }
        ]
      },
      {
        "path": "Patient.id",
        "short": "Logical id of this artefact",
        "definition": "The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.",
        "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ]
      },
      {
        "path": "Patient.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Meta"
          }
        ]
      },
      {
        "path": "Patient.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comments": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true
      },
      {
        "path": "Patient.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comments": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource\n\nNot all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "name": "Language",
          "isExtensible": false,
          "conformance": "required",
          "description": "A human language",
          "referenceUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "path": "Patient.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
        "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "synonym": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "path": "Patient.text.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.text.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.text.status",
        "short": "generated | extensions | additional",
        "definition": "The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "generated",
        "mustSupport": true,
        "binding": {
          "name": "NarrativeStatus",
          "isExtensible": false,
          "conformance": "required",
          "description": "The status of a resource narrative",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/narrative-status"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.text.div",
        "short": "Limited xhtml content",
        "definition": "The actual narrative content, a stripped down version of XHTML.",
        "comments": "The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained stylesheets. The XHTML content may not contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "xhtml"
          }
        ],
        "constraint": [
          {
            "key": "txt-2",
            "severity": "error",
            "human": "The narrative SHALL have some non-whitespace content",
            "xpath": "descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]"
          },
          {
            "key": "txt-1",
            "severity": "error",
            "human": "The narrative SHALL contain only the basic html formatting elements described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes",
            "xpath": "not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))])"
          },
          {
            "key": "txt-3",
            "severity": "error",
            "human": "The narrative SHALL contain only the basic html formatting attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes",
            "xpath": "not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "comments": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
        "synonym": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.extension",
        "name": "race",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/us-core-race"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.extension.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.extension.value[x]",
        "short": "Value of extension",
        "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "*"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.extension",
        "name": "ethnicity",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/us-core-ethnicity"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.extension.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.extension.value[x]",
        "short": "Value of extension",
        "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "*"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.identifier",
        "short": "An identifier for the person as this patient",
        "definition": "An identifier that applies to this person as a patient.",
        "requirements": "Patients are almost always assigned specific numerical identifiers.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mustSupport": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3"
          },
          {
            "identity": "rim",
            "map": "id"
          }
        ]
      },
      {
        "path": "Patient.identifier.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.identifier.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.identifier.use",
        "short": "usual | official | temp | secondary (If known)",
        "definition": "The purpose of this identifier.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
        "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "isModifier": true,
        "binding": {
          "name": "IdentifierUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "Identifies the purpose for this identifier, if known",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/identifier-use"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "Role.code or implied by context"
          }
        ]
      },
      {
        "path": "Patient.identifier.label",
        "short": "Description of identifier",
        "definition": "A text string for the identifier that can be displayed to a human so they can recognize the identifier.",
        "requirements": "Allows humans to make use of identifiers when the identifier system is not known.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.5"
          },
          {
            "identity": "rim",
            "map": "Role.title or implied by context"
          }
        ]
      },
      {
        "path": "Patient.identifier.system",
        "short": "Organization or System URI",
        "definition": "URI of Organization or system that assigned the patient ID.  This may be the same as the Placer URI.",
        "requirements": "There are many sequences of identifiers.  To perform matching, we need to know what sequence we're dealing with. The system identifies a particular sequence or set of unique identifiers.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "exampleUri": "http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the id itself is a full uri",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / EI-2-4"
          },
          {
            "identity": "rim",
            "map": "II.root or Role.id.root"
          },
          {
            "identity": "servd",
            "map": "./IdentifierType"
          }
        ]
      },
      {
        "path": "Patient.identifier.value",
        "short": "Patient Identifier String",
        "definition": "Patient Identifier String.",
        "comments": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "123456",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.1 / EI.1"
          },
          {
            "identity": "rim",
            "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
          },
          {
            "identity": "servd",
            "map": "./Value"
          }
        ]
      },
      {
        "path": "Patient.identifier.period",
        "short": "Time period when id is/was valid for use",
        "definition": "Time period during which identifier is/was valid for use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.7 + CX.8"
          },
          {
            "identity": "rim",
            "map": "Role.effectiveTime or implied by context"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "Patient.identifier.assigner",
        "short": "Organization that issued id (may be just text)",
        "definition": "Organization that issued/manages the identifier.",
        "comments": "The reference may be just a text description of the assigner.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Organization"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / (CX.4,CX.9,CX.10)"
          },
          {
            "identity": "rim",
            "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper"
          },
          {
            "identity": "servd",
            "map": "./IdentifierIssuingAuthority"
          }
        ]
      },
      {
        "path": "Patient.name",
        "short": "A name associated with the patient",
        "definition": "A name associated with the individual.",
        "comments": "Person may have multiple names with different uses or applicable periods.For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.",
        "requirements": "Need to be able to track the person by multiple names. Examples are your official name and a partner name.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "HumanName"
          }
        ],
        "mustSupport": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-5, PID-9"
          },
          {
            "identity": "rim",
            "map": "name"
          }
        ]
      },
      {
        "path": "Patient.name.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.name.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.name.use",
        "short": "usual | official | temp | nickname | anonymous | old | maiden",
        "definition": "Identifies the purpose for this name.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old name etc for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old.",
        "requirements": "Allows the appropriate name for a particular context of use to be selected from among a set of names.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "isModifier": true,
        "binding": {
          "name": "USLabPHNameUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "The name types for US Laboratory reporting to Public Health",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/patient-uslabph-nameuse"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.7, but often indicated by which field contains the name"
          },
          {
            "identity": "rim",
            "map": "unique(./use)"
          },
          {
            "identity": "servd",
            "map": "./NamePurpose"
          }
        ]
      },
      {
        "path": "Patient.name.text",
        "short": "Text representation of the full name",
        "definition": "A full text representation of the name.",
        "comments": "Can provide both a text representation and structured parts.",
        "requirements": "A renderable, unencoded form.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "implied by XPN.11"
          },
          {
            "identity": "rim",
            "map": "./formatted"
          }
        ]
      },
      {
        "path": "Patient.name.family",
        "short": "Family name (often called 'Surname')",
        "definition": "The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.",
        "comments": "For family name, hyphenated names such as \"Smith-Jones\" are a single name, but names with spaces such as \"Smith Jones\" are broken into multiple parts.",
        "synonym": [
          "surname"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.1"
          },
          {
            "identity": "rim",
            "map": "./part[partType = FAM]"
          },
          {
            "identity": "servd",
            "map": "./FamilyName"
          }
        ]
      },
      {
        "path": "Patient.name.given",
        "short": "Given names (not always 'first'). Includes middle names",
        "definition": "Given name.",
        "comments": "If only initials are recorded, they may be used in place of the full name.  Not called \"first name\" since given names do not always come first.",
        "synonym": [
          "first name",
          "middle name"
        ],
        "min": 0,
        "max": "2",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.2 + XPN.3"
          },
          {
            "identity": "rim",
            "map": "./part[partType = GIV]"
          },
          {
            "identity": "servd",
            "map": "./GivenNames"
          }
        ]
      },
      {
        "path": "Patient.name.prefix",
        "short": "Parts that come before the name",
        "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.5"
          },
          {
            "identity": "rim",
            "map": "./part[partType = PFX]"
          },
          {
            "identity": "servd",
            "map": "./TitleCode"
          }
        ]
      },
      {
        "path": "Patient.name.suffix",
        "short": "Parts that come after the name",
        "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN/4"
          },
          {
            "identity": "rim",
            "map": "./part[partType = SFX]"
          }
        ]
      },
      {
        "path": "Patient.name.period",
        "short": "Time period when name was/is in use",
        "definition": "Indicates the period of time when this name was valid for the named person.",
        "requirements": "Allows names to be placed in historical context.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.13 + XPN.14"
          },
          {
            "identity": "rim",
            "map": "./usablePeriod[type=\"IVL<TS>\"]"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            "use"
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "A contact detail for the individual",
        "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.",
        "comments": "Person may have multiple ways to be contacted with different uses or applicable periods. \rMay need to have options for contacting the person urgently and also to help with identification. The address may not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).",
        "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-13, PID-14, PID-40"
          },
          {
            "identity": "rim",
            "map": "telecom"
          }
        ]
      },
      {
        "path": "Patient.telecom",
        "name": "USLabHomePhone",
        "short": "A contact detail for the individual",
        "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.",
        "comments": "Person may have multiple ways to be contacted with different uses or applicable periods. \rMay need to have options for contacting the person urgently and also to help with identification. The address may not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).",
        "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "mustSupport": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-13, PID-14, PID-40"
          },
          {
            "identity": "rim",
            "map": "telecom"
          }
        ]
      },
      {
        "path": "Patient.telecom.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.telecom.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.telecom.system",
        "short": "phone | fax | email | url",
        "definition": "Telecommunications form for contact point - what communications system is required to make use of the contact.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "condition": [
          "cpt-2"
        ],
        "mustSupport": true,
        "binding": {
          "name": "ContactPointSystem",
          "isExtensible": false,
          "conformance": "required",
          "description": "Telecommunications form for contact point",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/contact-point-system"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XTN.3"
          },
          {
            "identity": "rim",
            "map": "./scheme"
          },
          {
            "identity": "servd",
            "map": "./ContactPointType"
          }
        ]
      },
      {
        "path": "Patient.telecom.value",
        "short": "The actual contact point details",
        "definition": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).",
        "comments": "Additional out of band data such as extensions, or notes about use of the contact are sometimes included in the value.",
        "requirements": "Need to support legacy numbers that are not in a tightly controlled format.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XTN.1 (or XTN.12)"
          },
          {
            "identity": "rim",
            "map": "./url"
          },
          {
            "identity": "servd",
            "map": "./Value"
          }
        ]
      },
      {
        "path": "Patient.telecom.use",
        "short": "home | work | temp | old | mobile - purpose of this contact point",
        "definition": "Identifies the purpose for the contact point.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old contact etc for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old.",
        "requirements": "Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "home",
        "mustSupport": true,
        "isModifier": true,
        "binding": {
          "name": "ContactPointUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "Use of contact point",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/contact-point-use"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XTN.2 - but often indicated by field"
          },
          {
            "identity": "rim",
            "map": "unique(./use)"
          },
          {
            "identity": "servd",
            "map": "./ContactPointPurpose"
          }
        ]
      },
      {
        "path": "Patient.telecom.period",
        "short": "Time period when the contact point was/is in use",
        "definition": "Time period when the contact point was/is in use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "./useablePeriod[type=\"IVL<TS>\"]"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "Patient.telecom",
        "name": "USLabWorkPhone",
        "short": "A contact detail for the individual",
        "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.",
        "comments": "Person may have multiple ways to be contacted with different uses or applicable periods. \rMay need to have options for contacting the person urgently and also to help with identification. The address may not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).",
        "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "mustSupport": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-13, PID-14, PID-40"
          },
          {
            "identity": "rim",
            "map": "telecom"
          }
        ]
      },
      {
        "path": "Patient.telecom.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.telecom.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.telecom.system",
        "short": "phone | fax | email | url",
        "definition": "Telecommunications form for contact point - what communications system is required to make use of the contact.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "condition": [
          "cpt-2"
        ],
        "mustSupport": true,
        "binding": {
          "name": "ContactPointSystem",
          "isExtensible": false,
          "conformance": "required",
          "description": "Telecommunications form for contact point",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/contact-point-system"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XTN.3"
          },
          {
            "identity": "rim",
            "map": "./scheme"
          },
          {
            "identity": "servd",
            "map": "./ContactPointType"
          }
        ]
      },
      {
        "path": "Patient.telecom.value",
        "short": "The actual contact point details",
        "definition": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).",
        "comments": "Additional out of band data such as extensions, or notes about use of the contact are sometimes included in the value.",
        "requirements": "Need to support legacy numbers that are not in a tightly controlled format.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XTN.1 (or XTN.12)"
          },
          {
            "identity": "rim",
            "map": "./url"
          },
          {
            "identity": "servd",
            "map": "./Value"
          }
        ]
      },
      {
        "path": "Patient.telecom.use",
        "short": "home | work | temp | old | mobile - purpose of this contact point",
        "definition": "Identifies the purpose for the contact point.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old contact etc for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old.",
        "requirements": "Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "work",
        "mustSupport": true,
        "isModifier": true,
        "binding": {
          "name": "ContactPointUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "Use of contact point",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/contact-point-use"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XTN.2 - but often indicated by field"
          },
          {
            "identity": "rim",
            "map": "unique(./use)"
          },
          {
            "identity": "servd",
            "map": "./ContactPointPurpose"
          }
        ]
      },
      {
        "path": "Patient.telecom.period",
        "short": "Time period when the contact point was/is in use",
        "definition": "Time period when the contact point was/is in use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "./useablePeriod[type=\"IVL<TS>\"]"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "Patient.gender",
        "short": "male | female | other | unknown",
        "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.",
        "comments": "The gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F.",
        "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date. Gender of individual drives many clinical processes.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "isSummary": true,
        "binding": {
          "name": "AdministrativeGender",
          "isExtensible": false,
          "conformance": "required",
          "description": "The gender of a person used for administrative purposes",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/administrative-gender"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-8"
          },
          {
            "identity": "rim",
            "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
          }
        ]
      },
      {
        "path": "Patient.birthDate",
        "short": "The date of birth for the individual",
        "definition": "The date of birth for the individual.",
        "comments": "At least an estimated year should be provided as a guess if the real dob is unknown.",
        "requirements": "Age of the individual drives many clinical processes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "date"
          }
        ],
        "mustSupport": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "loinc",
            "map": "21112-8"
          },
          {
            "identity": "v2",
            "map": "PID-7"
          },
          {
            "identity": "rim",
            "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime"
          }
        ]
      },
      {
        "path": "Patient.birthTime",
        "short": "The time of birth for the individual",
        "definition": "The  time of birth for the individual.",
        "requirements": "In some cases birth time is important (e.g. multiple births). Hospitals will capture the time of birth in most cases.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "time"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "loinc",
            "map": "21112-8"
          },
          {
            "identity": "v2",
            "map": "PID-7"
          },
          {
            "identity": "rim",
            "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime"
          }
        ]
      },
      {
        "path": "Patient.deceased[x]",
        "short": "Indicates if the individual is deceased or not",
        "definition": "Indicates if the individual is deceased or not.",
        "comments": "If there's no value in the instance it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.",
        "requirements": "The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          },
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true,
        "isModifier": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-30\r (bool) and PID-29 (datetime)"
          },
          {
            "identity": "rim",
            "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd,\rplayer[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime"
          }
        ]
      },
      {
        "path": "Patient.address",
        "short": "Addresses for the individual",
        "definition": "Addresses for the individual.",
        "comments": "Person may have multiple addresses with different uses or applicable periods.",
        "requirements": "May need to keep track of persons addresses for contacting, billing or reporting requirements and also to help with identification.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Address"
          }
        ],
        "mustSupport": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-11"
          },
          {
            "identity": "rim",
            "map": "addr"
          }
        ]
      },
      {
        "path": "Patient.address.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.address.extension",
        "short": "County/Parish FIPS codes",
        "definition": "County/Parish FIPS codes.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/us-core-county"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.address.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.address.extension.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/iso21090-SC-coding"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USFIPSCounty",
          "isExtensible": false,
          "conformance": "required",
          "description": "FIPS codes for US counties and county equivalent entities",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/fips-county"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.address.extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.address.extension.extension.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.address.extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.address.extension.extension.value[x]",
        "short": "Value of extension",
        "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "*"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.address.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.address.extension.value[x]",
        "short": "Value of extension",
        "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "*"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.address.use",
        "short": "home | work | temp | old - purpose of this address",
        "definition": "The purpose of this address.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old address etc for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old.",
        "requirements": "Allows an appropriate address to be chosen from a list of many.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "exampleCode": "home",
        "mustSupport": true,
        "isModifier": true,
        "binding": {
          "name": "AddressUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "The use of an address",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/address-use"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XAD.7"
          },
          {
            "identity": "rim",
            "map": "unique(./use)"
          },
          {
            "identity": "servd",
            "map": "./AddressPurpose"
          }
        ]
      },
      {
        "path": "Patient.address.text",
        "short": "Text representation of the address",
        "definition": "A full text representation of the address.",
        "comments": "Can provide both a text representation and parts.",
        "requirements": "A renderable, unencoded form.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "137 Nowhere Street, Erewhon 9132",
        "mapping": [
          {
            "identity": "v2",
            "map": "XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6"
          },
          {
            "identity": "rim",
            "map": "./formatted"
          }
        ]
      },
      {
        "path": "Patient.address.line",
        "short": "Street name, number, direction & P.O. Box etc",
        "definition": "This component contains the house number, apartment number, street name, street direction, \nP.O. Box number, delivery hints, and similar address information.",
        "requirements": "home | work | temp | old - purpose of this address.",
        "min": 0,
        "max": "2",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "137 Nowhere Street",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "vcard",
            "map": "street address"
          },
          {
            "identity": "v2",
            "map": "XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = AL]"
          },
          {
            "identity": "servd",
            "map": "./StreetAddress (newline delimitted)"
          }
        ]
      },
      {
        "path": "Patient.address.city",
        "short": "Name of city, town etc.",
        "definition": "The name of the city, town, village or other community or delivery center.",
        "synonym": [
          "Muncipality"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "Erewhon",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "vcard",
            "map": "locality"
          },
          {
            "identity": "v2",
            "map": "XAD.3"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = CTY]"
          },
          {
            "identity": "servd",
            "map": "./Jurisdiction"
          }
        ]
      },
      {
        "path": "Patient.address.state",
        "short": "Sub-unit of country (abreviations ok)",
        "definition": "Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).",
        "synonym": [
          "Province",
          "Territory"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USPSState",
          "isExtensible": true,
          "conformance": "required",
          "description": "Two letter USPS alphabetic codes.",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/usps-state"
          }
        },
        "mapping": [
          {
            "identity": "vcard",
            "map": "region"
          },
          {
            "identity": "v2",
            "map": "XAD.4"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = STA]"
          },
          {
            "identity": "servd",
            "map": "./Region"
          }
        ]
      },
      {
        "path": "Patient.address.postalCode",
        "short": "US Zip Codes",
        "definition": "US Zip Codes.",
        "synonym": [
          "Zip"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "9132",
        "constraint": [
          {
            "key": "inv-1",
            "name": "Regex for Zip",
            "severity": "error",
            "human": "(Zip or Postal Code) SHALL be formatted as 99999[-9999] for US Zip or ZIP +4 codes or as A9A9A9 for Canadian postal codes.",
            "xpath": "f:matches(issued,[0-9]{5}(-[0-9]{4}){0,1} )"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "vcard",
            "map": "postal code"
          },
          {
            "identity": "v2",
            "map": "XAD.5"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = ZIP]"
          },
          {
            "identity": "servd",
            "map": "./PostalIdentificationCode"
          }
        ]
      },
      {
        "path": "Patient.address.country",
        "short": "ISO 3166 3 letter Country Code",
        "definition": "ISO 3166 3 letter Country Code.",
        "comments": "ISO 3166 3 letter codes can be used in place of a full country name.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USLabCountry",
          "isExtensible": true,
          "conformance": "required",
          "description": "ISO 3 letter codes",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/uslab-country-codes"
          }
        },
        "mapping": [
          {
            "identity": "vcard",
            "map": "country name"
          },
          {
            "identity": "v2",
            "map": "XAD.6"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = CNT]"
          },
          {
            "identity": "servd",
            "map": "./Country"
          }
        ]
      },
      {
        "path": "Patient.address.period",
        "short": "Time period when address was/is in use",
        "definition": "Time period when address was/is in use.",
        "requirements": "Allows addresses to be placed in historical context.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "examplePeriod": {
          "start": "2010-03-23",
          "end": "2010-07-01"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XAD.12 / XAD.13 + XAD.14"
          },
          {
            "identity": "rim",
            "map": "./usablePeriod[type=\"IVL<TS>\"]"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "Patient.maritalStatus",
        "short": "Marital (civil) status of a person",
        "definition": "This field contains a patient's most recent marital (civil) status.",
        "requirements": "Most, if not all systems capture it.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "name": "MaritalStatus",
          "isExtensible": true,
          "conformance": "preferred",
          "description": "The domestic partnership status of a person",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/marital-status"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-16"
          },
          {
            "identity": "rim",
            "map": "player[classCode=PSN]/maritalStatusCode"
          }
        ]
      },
      {
        "path": "Patient.multipleBirth[x]",
        "short": "Whether patient is part of a multiple birth",
        "definition": "Indicates whether the patient is part of a multiple or indicates the actual birth order.",
        "requirements": "For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          },
          {
            "code": "integer"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-24 (bool), PID-25 (integer)"
          },
          {
            "identity": "rim",
            "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, \rplayer[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber"
          }
        ]
      },
      {
        "path": "Patient.photo",
        "short": "Image of the person",
        "definition": "Image of the person.",
        "requirements": "Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Attachment"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX-5 - needs a profile"
          },
          {
            "identity": "rim",
            "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"
          }
        ]
      },
      {
        "path": "Patient.contact",
        "short": "A contact party (e.g. guardian, partner, friend) for the patient",
        "definition": "A contact party (e.g. guardian, partner, friend) for the patient.",
        "comments": "Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.",
        "requirements": "Need to track people you can contact about the patient.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "pat-1",
            "name": "ContactNeedsDetails",
            "severity": "error",
            "human": "SHALL at least contain a contact's details or a reference to an organization",
            "xpath": "f:name or f:telecom or f:address or f:organization"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]"
          }
        ]
      },
      {
        "path": "Patient.contact.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship",
        "short": "The kind of relationship",
        "definition": "The nature of the relationship between the patient and the contact person.",
        "requirements": "Used to determine which contact person is the most relevant to approach, depending on circumstances.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "ContactRelationship",
          "isExtensible": true,
          "conformance": "preferred",
          "description": "The nature of the relationship between a patient and a contact person for that patient",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/patient-contact-relationship"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "NK1-7, NK1-3"
          },
          {
            "identity": "rim",
            "map": "code"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.coding",
        "short": "Code defined by a terminology system",
        "definition": "A reference to a code defined by a terminology system.",
        "comments": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the V3 Core Principles for more information.  Ordering of codings is undefined and SHALL not be used to infer meaning.",
        "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1-8, C*E.10-22"
          },
          {
            "identity": "rim",
            "map": "union(., ./translation)"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.coding.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.coding.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.coding.system",
        "short": "Identity of the terminology system",
        "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
        "comments": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.",
        "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.3"
          },
          {
            "identity": "rim",
            "map": "./codeSystem"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.coding.version",
        "short": "Version of the system - if relevant",
        "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
        "comments": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.7"
          },
          {
            "identity": "rim",
            "map": "./codeSystemVersion"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.coding.code",
        "short": "Symbol in syntax defined by the system",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
        "requirements": "Need to refer to a particular code in the system.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1"
          },
          {
            "identity": "rim",
            "map": "./code"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.coding.display",
        "short": "Representation defined by the system",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
        "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.2 - but note this is not well followed"
          },
          {
            "identity": "rim",
            "map": "CV.displayName"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.coding.primary",
        "short": "If this code was chosen directly by the user",
        "definition": "Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).",
        "comments": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations.",
        "requirements": "This has been identified as a clinical safety criterium - that this exact code was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "Sometimes implied by being first"
          },
          {
            "identity": "rim",
            "map": "CD.codingRationale"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.coding.valueSet",
        "short": "Set this coding was chosen from",
        "definition": "The set of possible coded values this coding was chosen from or constrained by.",
        "requirements": "The value set may influence the codes that the user can select. Also, referencing the value set directly makes it easier to share ad-hoc code systems used across healthcare.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/ValueSet"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.16 - .19"
          },
          {
            "identity": "rim",
            "map": "CD.valueSet / CD.valueSetVersion"
          }
        ]
      },
      {
        "path": "Patient.contact.relationship.text",
        "short": "Plain text representation of the concept",
        "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
        "comments": "Very often the text is the same as a displayName of one of the codings.",
        "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity": "rim",
            "map": "./originalText[mediaType/code=\"text/plain\"]/data"
          }
        ]
      },
      {
        "path": "Patient.contact.name",
        "short": "A name associated with the person",
        "definition": "A name associated with the person.",
        "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that person.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "HumanName"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "NK1-2"
          },
          {
            "identity": "rim",
            "map": "name"
          }
        ]
      },
      {
        "path": "Patient.contact.name.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.name.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.name.use",
        "short": "usual | official | temp | nickname | anonymous | old | maiden",
        "definition": "Identifies the purpose for this name.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old name etc for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old.",
        "requirements": "Allows the appropriate name for a particular context of use to be selected from among a set of names.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "binding": {
          "name": "NameUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "The use of a human name",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/name-use"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.7, but often indicated by which field contains the name"
          },
          {
            "identity": "rim",
            "map": "unique(./use)"
          },
          {
            "identity": "servd",
            "map": "./NamePurpose"
          }
        ]
      },
      {
        "path": "Patient.contact.name.text",
        "short": "Text representation of the full name",
        "definition": "A full text representation of the name.",
        "comments": "Can provide both a text representation and structured parts.",
        "requirements": "A renderable, unencoded form.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "implied by XPN.11"
          },
          {
            "identity": "rim",
            "map": "./formatted"
          }
        ]
      },
      {
        "path": "Patient.contact.name.family",
        "short": "Family name (often called 'Surname')",
        "definition": "The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.",
        "comments": "For family name, hyphenated names such as \"Smith-Jones\" are a single name, but names with spaces such as \"Smith Jones\" are broken into multiple parts.",
        "synonym": [
          "surname"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.1"
          },
          {
            "identity": "rim",
            "map": "./part[partType = FAM]"
          },
          {
            "identity": "servd",
            "map": "./FamilyName"
          }
        ]
      },
      {
        "path": "Patient.contact.name.given",
        "short": "Given names (not always 'first'). Includes middle names",
        "definition": "Given name.",
        "comments": "If only initials are recorded, they may be used in place of the full name.  Not called \"first name\" since given names do not always come first.",
        "synonym": [
          "first name",
          "middle name"
        ],
        "min": 0,
        "max": "2",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.2 + XPN.3"
          },
          {
            "identity": "rim",
            "map": "./part[partType = GIV]"
          },
          {
            "identity": "servd",
            "map": "./GivenNames"
          }
        ]
      },
      {
        "path": "Patient.contact.name.prefix",
        "short": "Parts that come before the name",
        "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.5"
          },
          {
            "identity": "rim",
            "map": "./part[partType = PFX]"
          },
          {
            "identity": "servd",
            "map": "./TitleCode"
          }
        ]
      },
      {
        "path": "Patient.contact.name.suffix",
        "short": "Parts that come after the name",
        "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN/4"
          },
          {
            "identity": "rim",
            "map": "./part[partType = SFX]"
          }
        ]
      },
      {
        "path": "Patient.contact.name.period",
        "short": "Time period when name was/is in use",
        "definition": "Indicates the period of time when this name was valid for the named person.",
        "requirements": "Allows names to be placed in historical context.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "XPN.13 + XPN.14"
          },
          {
            "identity": "rim",
            "map": "./usablePeriod[type=\"IVL<TS>\"]"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "Patient.contact.telecom",
        "short": "A contact detail for the person",
        "definition": "A contact detail for the person, e.g. a telephone number or an email address.",
        "comments": "Person may have multiple ways to be contacted with different uses or applicable periods. \rMay need to have options for contacting the person urgently, and also to help with identification.",
        "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
        "min": 0,
        "max": "3",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "NK1-5, NK1-6, NK1-40"
          },
          {
            "identity": "rim",
            "map": "telecom"
          }
        ]
      },
      {
        "path": "Patient.contact.telecom.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.telecom.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.telecom.system",
        "short": "phone | fax | email | url",
        "definition": "Telecommunications form for contact point - what communications system is required to make use of the contact.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "condition": [
          "cpt-2"
        ],
        "mustSupport": true,
        "binding": {
          "name": "ContactPointSystem",
          "isExtensible": false,
          "conformance": "required",
          "description": "Telecommunications form for contact point",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/contact-point-system"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XTN.3"
          },
          {
            "identity": "rim",
            "map": "./scheme"
          },
          {
            "identity": "servd",
            "map": "./ContactPointType"
          }
        ]
      },
      {
        "path": "Patient.contact.telecom.value",
        "short": "The actual contact point details",
        "definition": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).",
        "comments": "Additional out of band data such as extensions, or notes about use of the contact are sometimes included in the value.",
        "requirements": "Need to support legacy numbers that are not in a tightly controlled format.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "XTN.1 (or XTN.12)"
          },
          {
            "identity": "rim",
            "map": "./url"
          },
          {
            "identity": "servd",
            "map": "./Value"
          }
        ]
      },
      {
        "path": "Patient.contact.telecom.use",
        "short": "home | work | temp | old | mobile - purpose of this contact point",
        "definition": "Identifies the purpose for the contact point.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old contact etc for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old.",
        "requirements": "Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "binding": {
          "name": "ContactPointUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "Use of contact point",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/contact-point-use"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XTN.2 - but often indicated by field"
          },
          {
            "identity": "rim",
            "map": "unique(./use)"
          },
          {
            "identity": "servd",
            "map": "./ContactPointPurpose"
          }
        ]
      },
      {
        "path": "Patient.contact.telecom.period",
        "short": "Time period when the contact point was/is in use",
        "definition": "Time period when the contact point was/is in use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "./useablePeriod[type=\"IVL<TS>\"]"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "Patient.contact.address",
        "short": "Address for the contact person",
        "definition": "Address for the contact person.",
        "requirements": "Need to keep track where the contact person can be contacted per postal mail or visited.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Address"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "NK1-4"
          },
          {
            "identity": "rim",
            "map": "addr"
          }
        ]
      },
      {
        "path": "Patient.contact.address.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.address.extension",
        "short": "County/Parish FIPS codes",
        "definition": "County/Parish FIPS codes.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/us-core-county"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.address.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.address.extension.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/iso21090-SC-coding"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USFIPSCounty",
          "isExtensible": false,
          "conformance": "required",
          "description": "FIPS codes for US counties and county equivalent entities",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/fips-county"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.address.extension.extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.address.extension.extension.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.contact.address.extension.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.contact.address.extension.extension.value[x]",
        "short": "Value of extension",
        "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "*"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.contact.address.extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.contact.address.extension.value[x]",
        "short": "Value of extension",
        "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "*"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.contact.address.use",
        "short": "home | work | temp | old - purpose of this address",
        "definition": "The purpose of this address.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old address etc for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old.",
        "requirements": "Allows an appropriate address to be chosen from a list of many.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "exampleCode": "home",
        "mustSupport": true,
        "isModifier": true,
        "binding": {
          "name": "AddressUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "The use of an address",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/address-use"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XAD.7"
          },
          {
            "identity": "rim",
            "map": "unique(./use)"
          },
          {
            "identity": "servd",
            "map": "./AddressPurpose"
          }
        ]
      },
      {
        "path": "Patient.contact.address.text",
        "short": "Text representation of the address",
        "definition": "A full text representation of the address.",
        "comments": "Can provide both a text representation and parts.",
        "requirements": "A renderable, unencoded form.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "137 Nowhere Street, Erewhon 9132",
        "mapping": [
          {
            "identity": "v2",
            "map": "XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6"
          },
          {
            "identity": "rim",
            "map": "./formatted"
          }
        ]
      },
      {
        "path": "Patient.contact.address.line",
        "short": "Street name, number, direction & P.O. Box etc",
        "definition": "This component contains the house number, apartment number, street name, street direction, \nP.O. Box number, delivery hints, and similar address information.",
        "requirements": "home | work | temp | old - purpose of this address.",
        "min": 0,
        "max": "2",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "137 Nowhere Street",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "vcard",
            "map": "street address"
          },
          {
            "identity": "v2",
            "map": "XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = AL]"
          },
          {
            "identity": "servd",
            "map": "./StreetAddress (newline delimitted)"
          }
        ]
      },
      {
        "path": "Patient.contact.address.city",
        "short": "Name of city, town etc.",
        "definition": "The name of the city, town, village or other community or delivery center.",
        "synonym": [
          "Muncipality"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "Erewhon",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "vcard",
            "map": "locality"
          },
          {
            "identity": "v2",
            "map": "XAD.3"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = CTY]"
          },
          {
            "identity": "servd",
            "map": "./Jurisdiction"
          }
        ]
      },
      {
        "path": "Patient.contact.address.state",
        "short": "Sub-unit of country (abreviations ok)",
        "definition": "Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).",
        "synonym": [
          "Province",
          "Territory"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USPSState",
          "isExtensible": true,
          "conformance": "required",
          "description": "Two letter USPS alphabetic codes.",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/usps-state"
          }
        },
        "mapping": [
          {
            "identity": "vcard",
            "map": "region"
          },
          {
            "identity": "v2",
            "map": "XAD.4"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = STA]"
          },
          {
            "identity": "servd",
            "map": "./Region"
          }
        ]
      },
      {
        "path": "Patient.contact.address.postalCode",
        "short": "US Zip Codes",
        "definition": "US Zip Codes.",
        "synonym": [
          "Zip"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "9132",
        "constraint": [
          {
            "key": "inv-2",
            "name": "Regex for Zip",
            "severity": "error",
            "human": "(Zip or Postal Code) SHALL be formatted as 99999[-9999] for US Zip or ZIP +4 codes or as A9A9A9 for Canadian postal codes.",
            "xpath": "f:matches(issued,[0-9]{5}(-[0-9]{4}){0,1} )"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "vcard",
            "map": "postal code"
          },
          {
            "identity": "v2",
            "map": "XAD.5"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = ZIP]"
          },
          {
            "identity": "servd",
            "map": "./PostalIdentificationCode"
          }
        ]
      },
      {
        "path": "Patient.contact.address.country",
        "short": "ISO 3166 3 letter Country Code",
        "definition": "ISO 3166 3 letter Country Code.",
        "comments": "ISO 3166 3 letter codes can be used in place of a full country name.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USLabCountry",
          "isExtensible": true,
          "conformance": "required",
          "description": "ISO 3 letter codes",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/uslab-country-codes"
          }
        },
        "mapping": [
          {
            "identity": "vcard",
            "map": "country name"
          },
          {
            "identity": "v2",
            "map": "XAD.6"
          },
          {
            "identity": "rim",
            "map": "AD.part[parttype = CNT]"
          },
          {
            "identity": "servd",
            "map": "./Country"
          }
        ]
      },
      {
        "path": "Patient.contact.address.period",
        "short": "Time period when address was/is in use",
        "definition": "Time period when address was/is in use.",
        "requirements": "Allows addresses to be placed in historical context.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "examplePeriod": {
          "start": "2010-03-23",
          "end": "2010-07-01"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "XAD.12 / XAD.13 + XAD.14"
          },
          {
            "identity": "rim",
            "map": "./usablePeriod[type=\"IVL<TS>\"]"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "Patient.contact.gender",
        "short": "male | female | other | unknown",
        "definition": "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.",
        "requirements": "Needed to address the person correctly.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "name": "AdministrativeGender",
          "isExtensible": false,
          "conformance": "required",
          "description": "The gender of a person used for administrative purposes",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/administrative-gender"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "NK1-15"
          },
          {
            "identity": "rim",
            "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
          }
        ]
      },
      {
        "path": "Patient.contact.organization",
        "short": "Organization that is associated with the contact",
        "definition": "Organization on behalf of which the contact is acting or for which the contact is working.",
        "requirements": "For guardians or business related contacts, the organization is relevant.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Organization"
          }
        ],
        "condition": [
          "pat-1"
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41"
          },
          {
            "identity": "rim",
            "map": "scoper"
          }
        ]
      },
      {
        "path": "Patient.contact.period",
        "short": "The period during which this person or organization is valid to be contacted relating to this patient",
        "definition": "The period during which this person or organization is valid to be contacted relating to this patient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "path": "Patient.animal",
        "short": "If this patient is an animal (non-human)",
        "definition": "This element has a value if the patient is an animal.",
        "comments": "The animal element is labeled \"Is Modifier\" since patients may be non-human. Systems SHALL either handle patient details appropriately (e.g. inform users patient is not human) or reject non-human patient records.",
        "requirements": "Many clinical systems are extended to care for animal patients as well as human.",
        "min": 0,
        "max": "1",
        "isModifier": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "player[classCode=ANM]"
          }
        ]
      },
      {
        "path": "Patient.animal.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.animal.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.animal.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.animal.species",
        "short": "E.g. Dog, Cow",
        "definition": "Identifies the high level categorization of the kind of animal.",
        "comments": "If the patient is non-human, at least a species SHALL be specified.",
        "requirements": "Need to know what kind of animal.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "name": "AnimalSpecies",
          "isExtensible": true,
          "conformance": "example",
          "description": "The species of an animal",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/animal-species"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-35"
          },
          {
            "identity": "rim",
            "map": "code"
          }
        ]
      },
      {
        "path": "Patient.animal.breed",
        "short": "E.g. Poodle, Angus",
        "definition": "Identifies the detailed categorization of the kind of animal.",
        "requirements": "May need to know the specific kind within the species.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "name": "AnimalBreed",
          "isExtensible": true,
          "conformance": "example",
          "description": "The breed of an animal",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/animal-breeds"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-37"
          },
          {
            "identity": "rim",
            "map": "playedRole[classCode=GEN]/scoper[classCode=ANM, determinerCode=KIND]/code"
          }
        ]
      },
      {
        "path": "Patient.animal.genderStatus",
        "short": "E.g. Neutered, Intact",
        "definition": "Indicates the current state of the animal's reproductive organs.",
        "requirements": "Gender status can affect housing and animal behavior.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "name": "AnimalGenderStatus",
          "isExtensible": true,
          "conformance": "example",
          "description": "The state of the animal's reproductive organs",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/animal-genderstatus"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "genderStatusCode"
          }
        ]
      },
      {
        "path": "Patient.communication",
        "short": "Languages which may be used to communicate with the patient about his or her health",
        "definition": "Languages which may be used to communicate with the patient about his or her health.",
        "comments": "If no language is specified, this *implies* that the default local language is spoken.\rFor animals, language is not a relevant field, and should be absent from the instance.",
        "requirements": "If a patient does not speak the local language, interpreters may be required, so languages spoken is an important things to keep track of both for patient and other persons of interest.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "Language",
          "isExtensible": false,
          "conformance": "required",
          "description": "A human language",
          "referenceUri": "http://tools.ietf.org/html/bcp47"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "LAN-2"
          },
          {
            "identity": "rim",
            "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"
          }
        ]
      },
      {
        "path": "Patient.careProvider",
        "short": "Patient's nominated care provider",
        "definition": "Patient's nominated care provider.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Organization"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Practitioner"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "subjectOf.CareEvent.performer.AssignedEntity"
          }
        ]
      },
      {
        "path": "Patient.managingOrganization",
        "short": "Organization that is the custodian of the patient record",
        "definition": "Organization that is the custodian of the patient record.",
        "requirements": "Need to know who recognizes this patient record, manages and updates it.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Organization"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "scoper"
          }
        ]
      },
      {
        "path": "Patient.link",
        "short": "Link to another patient resource that concerns the same actual person",
        "definition": "Link to another patient resource that concerns the same actual person.",
        "comments": "There is no assumption that linked patient records have mutual links.",
        "requirements": "There are multiple usecases: * Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and * Distribution of patient information across multiple servers.",
        "min": 0,
        "max": "*",
        "isModifier": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "outboundLink"
          }
        ]
      },
      {
        "path": "Patient.link.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.link.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Patient.link.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "synonym": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Patient.link.other",
        "short": "The other patient resource that the link refers to",
        "definition": "The other patient resource that the link refers to.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Patient"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3, MRG-1"
          },
          {
            "identity": "rim",
            "map": "id"
          }
        ]
      },
      {
        "path": "Patient.link.type",
        "short": "replace | refer | seealso - type of link",
        "definition": "The type of link between this patient resource and another patient resource.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "name": "LinkType",
          "isExtensible": false,
          "conformance": "required",
          "description": "The type of link between this patient resource and another patient resource.",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/link-type"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "typeCode"
          }
        ]
      },
      {
        "path": "Patient.active",
        "short": "Whether this patient's record is in active use",
        "definition": "Whether this patient record is in active use.",
        "comments": "Default is true. If a record is inactive, and linked to an active record, then future patient/person/record updates should occur on the other patient.",
        "requirements": "Need to be able to mark a patient record as not to be used because it was created in error.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": true,
        "isModifier": true,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "statusCode"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "Patient",
        "name": "USLabPHPatient",
        "short": "Patient with expanded contact information",
        "definition": "Subject of lab test.",
        "synonym": [
          "Subject"
        ],
        "min": 1,
        "max": "1"
      },
      {
        "path": "Patient.text",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.text.status",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "generated",
        "mustSupport": true
      },
      {
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "path": "Patient.extension",
        "name": "race",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/us-core-race"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "Patient.extension.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.extension.coding.code",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.extension",
        "name": "ethnicity",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/us-core-ethnicity"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "Patient.extension.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.extension.coding.code",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.identifier",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "Patient.identifier.use",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.identifier.system",
        "short": "Organization or System URI",
        "definition": "URI of Organization or system that assigned the patient ID.  This may be the same as the Placer URI.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.identifier.value",
        "short": "Patient Identifier String",
        "definition": "Patient Identifier String.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.name",
        "min": 1,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "Patient.name.use",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USLabPHNameUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "The name types for US Laboratory reporting to Public Health",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/patient-uslabph-nameuse"
          }
        }
      },
      {
        "path": "Patient.name.family",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.name.given",
        "min": 0,
        "max": "2",
        "mustSupport": true
      },
      {
        "path": "Patient.name.prefix",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.name.suffix",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            "use"
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "path": "Patient.telecom",
        "name": "USLabHomePhone",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "Patient.telecom.system",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.telecom.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.telecom.use",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "home",
        "mustSupport": true
      },
      {
        "path": "Patient.telecom",
        "name": "USLabWorkPhone",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "Patient.telecom.system",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.telecom.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.telecom.use",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "work",
        "mustSupport": true
      },
      {
        "path": "Patient.gender",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.birthDate",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.deceased[x]",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.address",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "Patient.address.extension",
        "short": "County/Parish FIPS codes",
        "definition": "County/Parish FIPS codes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/us-core-county"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "Patient.address.extension.extension",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/iso21090-SC-coding"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USFIPSCounty",
          "isExtensible": false,
          "conformance": "required",
          "description": "FIPS codes for US counties and county equivalent entities",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/fips-county"
          }
        }
      },
      {
        "path": "Patient.address.extension.extension.system",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.address.extension.extension.code",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.address.use",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.address.line",
        "min": 0,
        "max": "2",
        "mustSupport": true
      },
      {
        "path": "Patient.address.city",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.address.state",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "name": "USPSState",
          "isExtensible": true,
          "conformance": "required",
          "description": "Two letter USPS alphabetic codes.",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/usps-state"
          }
        }
      },
      {
        "path": "Patient.address.postalCode",
        "short": "US Zip Codes",
        "definition": "US Zip Codes.",
        "min": 0,
        "max": "1",
        "condition": [
          "inv-1"
        ],
        "constraint": [
          {
            "key": "inv-1",
            "name": "Regex for Zip",
            "severity": "error",
            "human": "(Zip or Postal Code) SHALL be formatted as 99999[-9999] for US Zip or ZIP +4 codes or as A9A9A9 for Canadian postal codes.",
            "xpath": "f:matches(issued,[0-9]{5}(-[0-9]{4}){0,1} )"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "Patient.address.country",
        "short": "ISO 3166 3 letter Country Code",
        "definition": "ISO 3166 3 letter Country Code.",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "name": "USLabCountry",
          "isExtensible": true,
          "conformance": "required",
          "description": "ISO 3 letter codes",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/uslab-country-codes"
          }
        }
      },
      {
        "path": "Patient.contact",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.relationship",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.relationship.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.relationship.coding.code",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.name",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.name.family",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.name.given",
        "min": 0,
        "max": "2",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.name.suffix",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.telecom",
        "min": 0,
        "max": "3",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.telecom.system",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.telecom.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.address",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.address.extension",
        "short": "County/Parish FIPS codes",
        "definition": "County/Parish FIPS codes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/us-core-county"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "Patient.contact.address.extension.extension",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/ExtensionDefinition/iso21090-SC-coding"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USFIPSCounty",
          "isExtensible": false,
          "conformance": "required",
          "description": "FIPS codes for US counties and county equivalent entities",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/fips-county"
          }
        }
      },
      {
        "path": "Patient.contact.address.extension.extension.system",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.address.extension.extension.code",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.address.use",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.address.line",
        "min": 0,
        "max": "2",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.address.city",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "Patient.contact.address.state",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "name": "USPSState",
          "isExtensible": true,
          "conformance": "required",
          "description": "Two letter USPS alphabetic codes.",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/usps-state"
          }
        }
      },
      {
        "path": "Patient.contact.address.postalCode",
        "short": "US Zip Codes",
        "definition": "US Zip Codes.",
        "min": 0,
        "max": "1",
        "condition": [
          "inv-2"
        ],
        "constraint": [
          {
            "key": "inv-2",
            "name": "Regex for Zip",
            "severity": "error",
            "human": "(Zip or Postal Code) SHALL be formatted as 99999[-9999] for US Zip or ZIP +4 codes or as A9A9A9 for Canadian postal codes.",
            "xpath": "f:matches(issued,[0-9]{5}(-[0-9]{4}){0,1} )"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "Patient.contact.address.country",
        "short": "ISO 3166 3 letter Country Code",
        "definition": "ISO 3166 3 letter Country Code.",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "name": "USLabCountry",
          "isExtensible": true,
          "conformance": "required",
          "description": "ISO 3 letter codes",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/uslab-country-codes"
          }
        }
      }
    ]
  }
}