{
  "resourceType": "StructureDefinition",
  "id": "905ce7d5-d162-43fa-81d2-a27d18d62c23",
  "meta": {
    "versionId": "9",
    "lastUpdated": "2022-05-05T18:08:42.033978+00:00"
  },
  "url": "http://ehealth.bc.ca/fhir/StructureDefinition/Patient",
  "name": "Patient",
  "status": "draft",
  "date": "2022-03-07T22:50:42.599624+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.id",
        "path": "Patient.id",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "source-cznSub",
            "map": "(Patient ID)"
          }
        ]
      },
      {
        "id": "Patient.meta",
        "path": "Patient.meta",
        "min": 1
      },
      {
        "id": "Patient.meta.id",
        "path": "Patient.meta.id",
        "max": "0"
      },
      {
        "id": "Patient.meta.versionId",
        "path": "Patient.meta.versionId",
        "fixedId": "2022.01"
      },
      {
        "id": "Patient.meta.lastUpdated",
        "path": "Patient.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Patient.meta.source",
        "path": "Patient.meta.source",
        "max": "0"
      },
      {
        "id": "Patient.meta.profile",
        "path": "Patient.meta.profile",
        "comment": "Apply 'http://ehealth.bc.ca/fhir/StructureDefinition/Patient'",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.meta.security",
        "path": "Patient.meta.security",
        "max": "0"
      },
      {
        "id": "Patient.meta.tag",
        "path": "Patient.meta.tag",
        "max": "0"
      },
      {
        "id": "Patient.implicitRules",
        "path": "Patient.implicitRules",
        "max": "0"
      },
      {
        "id": "Patient.language",
        "path": "Patient.language",
        "max": "0"
      },
      {
        "id": "Patient.text",
        "path": "Patient.text",
        "max": "0"
      },
      {
        "id": "Patient.contained",
        "path": "Patient.contained",
        "max": "0"
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier.id",
        "path": "Patient.identifier.id",
        "max": "0"
      },
      {
        "id": "Patient.identifier.use",
        "path": "Patient.identifier.use",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.id",
        "path": "Patient.identifier.type.id",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.coding.id",
        "path": "Patient.identifier.type.coding.id",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "comment": "Apply \"http://terminology.hl7.org/CodeSystem/v2-0203\"",
        "min": 1
      },
      {
        "id": "Patient.identifier.type.coding.version",
        "path": "Patient.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "provincial-health-card",
            "map": "\"JHN\""
          }
        ]
      },
      {
        "id": "Patient.identifier.type.coding.userSelected",
        "path": "Patient.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.text",
        "path": "Patient.identifier.type.text",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "jhn-britishColumbia",
            "map": "\"British Columbia, Canada Personal Health Number\""
          }
        ]
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "comment": "Hardcode \"https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-patient-healthcare-id\"",
        "min": 1
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "comment": "(BC PHN)",
        "min": 1
      },
      {
        "id": "Patient.identifier.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "comment": "hardcode \"true\"",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "comment": "Maximum of 2 names",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name.id",
        "path": "Patient.name.id",
        "max": "0"
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "max": "0"
      },
      {
        "id": "Patient.name.text",
        "path": "Patient.name.text",
        "max": "0"
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "min": 1,
        "max": "2"
      },
      {
        "id": "Patient.name.prefix",
        "path": "Patient.name.prefix",
        "max": "0"
      },
      {
        "id": "Patient.name.suffix",
        "path": "Patient.name.suffix",
        "max": "0"
      },
      {
        "id": "Patient.name.period",
        "path": "Patient.name.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom.id",
        "path": "Patient.telecom.id",
        "max": "0"
      },
      {
        "id": "Patient.telecom.system",
        "path": "Patient.telecom.system",
        "short": "phone | email",
        "comment": "1st instance: phone, 2nd instance: email",
        "min": 1
      },
      {
        "id": "Patient.telecom.value",
        "path": "Patient.telecom.value",
        "comment": "Phone No. | Email Address (All format based on HL7 FHIR format e.g. 604-123-4567 | anyone@anywhere.ca)",
        "min": 1
      },
      {
        "id": "Patient.telecom.use",
        "path": "Patient.telecom.use",
        "short": "home | work | mobile - purpose of this contact point",
        "min": 1
      },
      {
        "id": "Patient.telecom.rank",
        "path": "Patient.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.telecom.period.id",
        "path": "Patient.telecom.period.id",
        "max": "0"
      },
      {
        "id": "Patient.telecom.period.end",
        "path": "Patient.telecom.period.end",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "comment": "“prefer not to answer” has to be translated to \"unknown\" in FHIR message"
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "comment": "Date Format: yyyy-mm-dd",
        "min": 1
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "max": "0"
      },
      {
        "id": "Patient.address.id",
        "path": "Patient.address.id",
        "max": "0"
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "short": "home | work | temp | old  - purpose of this address"
      },
      {
        "id": "Patient.address.type",
        "path": "Patient.address.type",
        "max": "0"
      },
      {
        "id": "Patient.address.text",
        "path": "Patient.address.text",
        "max": "0"
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "comment": "For international address:  Use \"line\".  For domestic address (North America): use \"line\" + \"_line\",  see sample FHIR for details."
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "comment": "Conditional mandatory: If any address field is provided, then city/state/postalCode must be provided."
      },
      {
        "id": "Patient.address.district",
        "path": "Patient.address.district",
        "max": "0"
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "comment": "Conditional mandatory: If any address field is provided, then city/state/postalCode must be provided."
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "comment": "Conditional mandatory: If any address field is provided, then city/state/postalCode must be provided."
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "comment": "Country Name"
      },
      {
        "id": "Patient.address.period",
        "path": "Patient.address.period",
        "max": "0"
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "max": "0"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "max": "0"
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}