{
  "resourceType": "StructureDefinition",
  "id": "f68c0e19-c1e1-4a09-bb6a-9b071049522a",
  "meta": {
    "versionId": "9",
    "lastUpdated": "2022-05-05T19:46:06.005829+00:00"
  },
  "url": "http://ehealth.bc.ca/fhir/StructureDefinition/Patient",
  "name": "Patient_CAbaseline",
  "status": "draft",
  "date": "2022-03-07T23:14:21.7762567+00:00",
  "description": "Resource Patient is profiled based on Canadian Baseline",
  "fhirVersion": "4.0.1",
  "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-eForm",
            "map": "(Patient ID)"
          }
        ]
      },
      {
        "id": "Patient.meta",
        "path": "Patient.meta"
      },
      {
        "id": "Patient.meta.versionId",
        "path": "Patient.meta.versionId",
        "fixedId": "2022.01"
      },
      {
        "id": "Patient.meta.profile",
        "path": "Patient.meta.profile",
        "comment": "Apply \"http://ehealthbc.ca/fhir/StructureDefinition/Patient\"",
        "min": 1,
        "max": "1"
      },
      {
        "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.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.extension:patientEthnicity",
        "path": "Patient.extension",
        "sliceName": "patientEthnicity",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-ethnicity"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:birthSex",
        "path": "Patient.extension",
        "sliceName": "birthSex",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/ca/baseline/ValueSet/birthsex"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:birthSex.value[x].coding.system",
        "path": "Patient.extension.value[x].coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender"
      },
      {
        "id": "Patient.extension:birthSex.value[x].coding.version",
        "path": "Patient.extension.value[x].coding.version",
        "max": "0"
      },
      {
        "id": "Patient.extension:birthSex.value[x].coding.code",
        "path": "Patient.extension.value[x].coding.code",
        "min": 1
      },
      {
        "id": "Patient.extension:birthSex.value[x].coding.display",
        "path": "Patient.extension.value[x].coding.display",
        "min": 1
      },
      {
        "id": "Patient.extension:birthSex.value[x].coding.userSelected",
        "path": "Patient.extension.value[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.extension:birthSex.value[x].text",
        "path": "Patient.extension.value[x].text",
        "max": "0"
      },
      {
        "id": "Patient.extension:genderIdentity",
        "path": "Patient.extension",
        "sliceName": "genderIdentity",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-genderIdentity"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:genderPronoun",
        "path": "Patient.extension",
        "sliceName": "genderPronoun",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ehealthbc.ca/fhir/StructureDefinition/patient-genderPronoun"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "comment": "JSON Attribute:  panoramaID; phn",
        "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": "http://terminology.hl7.org/CodeSystem/v2-0203",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0203"
      },
      {
        "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\""
          },
          {
            "identity": "medical-record-number",
            "map": "\"MR\""
          },
          {
            "identity": "patient-internal-identifier",
            "map": "\"PI\""
          }
        ]
      },
      {
        "id": "Patient.identifier.type.coding.display",
        "path": "Patient.identifier.type.coding.display",
        "max": "0"
      },
      {
        "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\""
          },
          {
            "identity": "jhn-alberta",
            "map": "\"Alberta, Canada Personal Health Number\""
          },
          {
            "identity": "jhn-yukon",
            "map": "\"Yukon, Canada Personal Health Number\""
          }
        ]
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "comment": "See Mappings below for appropriate URLs",
        "min": 1,
        "mapping": [
          {
            "identity": "ppn",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-passport-number",
            "comment": "Canadian  Passport Number"
          },
          {
            "identity": "JPI-PR",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-permanent-resident-card-number",
            "comment": "Canada Permanent Resident Card Number"
          },
          {
            "identity": "JPI-RCMP",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-royal-mounted-police-health-id",
            "comment": "RCMP Health Card Number"
          },
          {
            "identity": "JPI-SIN",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-social-insurance-number",
            "comment": "Canada Social Insurance Number"
          },
          {
            "identity": "JPI-Indigenous",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-indigenous-northern-affairs-number",
            "comment": "Indigenous and Northern Affairs Canada Number"
          },
          {
            "identity": "JHN-BC",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-patient-healthcare-id",
            "comment": "British Columbia, Canada Personal Health Number"
          },
          {
            "identity": "JHN-AB",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-ab-patient-healthcare-id",
            "comment": "Alberta, Canada Unique Lifetime Identifier"
          },
          {
            "identity": "JHN-SK",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-sk-patient-healthcare-id",
            "comment": "Saskatechewan, Canada Personal Health Number"
          },
          {
            "identity": "JHN-MB",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-mb-patient-healthcare-id",
            "comment": "Manitoba , Canada Unique Lifetime Identifier"
          },
          {
            "identity": "JHN-ON",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn",
            "comment": "Ontario, Canada Personal Health Number"
          },
          {
            "identity": "JHN-QC",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-qc-patient-healthcare-id",
            "comment": "Quebec, Canada Personal Health Number"
          },
          {
            "identity": "JHN-NB",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-nb-patient-healthcare-id",
            "comment": "New Brunswick, Canada Personal Health Number"
          },
          {
            "identity": "JHN-NL",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-nl-patient-healthcare-id",
            "comment": "Newfoundland & Labrador, Canada Personal Health Number"
          },
          {
            "identity": "JHN-NS",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-ns-patient-healthcare-id",
            "comment": "Nova Scotia, Canada Personal Health Number"
          },
          {
            "identity": "JHN-PE",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-pe-patient-healthcare-id",
            "comment": "Prince Edward Island, Canada Personal Health Number"
          },
          {
            "identity": "JHN-NT",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-nt-patient-healthcare-id",
            "comment": "Northwest Territories, Canada Personal Health Number"
          },
          {
            "identity": "JHN-NU",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-nu-patient-healthcare-id",
            "comment": "Nunavut, Canada Personal Health Number"
          },
          {
            "identity": "JHN-YT",
            "map": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-yt-patient-healthcare-id",
            "comment": "Yukon, Canada Personal Health Number"
          }
        ]
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "comment": "Extract from IMMS eForm (patient.identifier.value)",
        "min": 1
      },
      {
        "id": "Patient.identifier.period.id",
        "path": "Patient.identifier.period.id",
        "max": "0"
      },
      {
        "id": "Patient.identifier.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "short": "True",
        "comment": "Hardcode as 'True'"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "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",
        "short": "Patient Family Name",
        "definition": "Patient Family Name",
        "comment": "Patient Family Name",
        "min": 1
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "short": "Patient Given Names",
        "definition": "Patient Given Names",
        "comment": "Patient Given Names",
        "min": 1
      },
      {
        "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",
        "comment": "Use 'phone|email'"
      },
      {
        "id": "Patient.telecom.value",
        "path": "Patient.telecom.value",
        "short": "Patient Phone Number or Email",
        "definition": "Patient Phone Number or Email",
        "comment": "Patient Phone Number | Email"
      },
      {
        "id": "Patient.telecom.use",
        "path": "Patient.telecom.use",
        "comment": "For eForms use \"home\" | \"work\" | \"temp\""
      },
      {
        "id": "Patient.telecom.rank",
        "path": "Patient.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.telecom.period.id",
        "path": "Patient.telecom.period.id",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "definition": "Patient Gender",
        "comment": "Patient Gender",
        "min": 1
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "short": "Patient Date of Birth",
        "definition": "Patient Date of Birth",
        "comment": "Patient Date of Birth",
        "min": 1
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "max": "0"
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "max": "1"
      },
      {
        "id": "Patient.address.id",
        "path": "Patient.address.id",
        "max": "0"
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "definition": "The purpose of this address: home | work",
        "comment": "For RoadSafetyBC form: home | work"
      },
      {
        "id": "Patient.address.type",
        "path": "Patient.address.type",
        "max": "0"
      },
      {
        "id": "Patient.address.text",
        "path": "Patient.address.text",
        "max": "0"
      },
      {
        "id": "Patient.address.district",
        "path": "Patient.address.district",
        "max": "0"
      },
      {
        "id": "Patient.address.period.id",
        "path": "Patient.address.period.id",
        "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"
      }
    ]
  }
}