{
  "resourceType": "StructureDefinition",
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" />"
  },
  "url": "http://ehealthontario.on.ca/fhir/StructureDefinition/Patient",
  "version": "1.0.0",
  "name": "CMSPatient",
  "status": "draft",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier.extension",
        "path": "Patient.identifier.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier.extension:HCNVersionCode",
        "path": "Patient.identifier.extension",
        "sliceName": "HCNVersionCode",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ext-id-health-card-version-code"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier.extension:data-absent-reason",
        "path": "Patient.identifier.extension",
        "sliceName": "data-absent-reason",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-onHCN",
        "path": "Patient.identifier",
        "sliceName": "identifier-onHCN",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-onHCN.type",
        "path": "Patient.identifier.type",
        "mustSupport": false
      },
      {
        "id": "Patient.identifier:identifier-onHCN.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-onHCN.type.coding.id",
        "path": "Patient.identifier.type.coding.id",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-onHCN.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-onHCN.type.coding.version",
        "path": "Patient.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-onHCN.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-onHCN.type.coding.userSelected",
        "path": "Patient.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-onHCN.type.text",
        "path": "Patient.identifier.type.text",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-onHCN.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-onHCN.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-onHCN.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-onHCN.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-OIID",
        "path": "Patient.identifier",
        "sliceName": "identifier-OIID",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-OIID.type",
        "path": "Patient.identifier.type",
        "mustSupport": false
      },
      {
        "id": "Patient.identifier:identifier-OIID.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-OIID.type.coding.id",
        "path": "Patient.identifier.type.coding.id",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-OIID.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-OIID.type.coding.version",
        "path": "Patient.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-OIID.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-OIID.type.coding.display",
        "path": "Patient.identifier.type.coding.display",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-OIID.type.coding.userSelected",
        "path": "Patient.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-OIID.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://ehealthontario.ca/fhir/NamingSystem/ca-on-panorama-immunization-id",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-OIID.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifier-OIID.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier:identifier-OIID.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "mustSupport": true
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "mustSupport": true
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "mustSupport": true
      },
      {
        "id": "Patient.address.type",
        "path": "Patient.address.type",
        "mustSupport": true
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "mustSupport": true
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "mustSupport": true
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "mustSupport": true
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "mustSupport": true
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "https://simplifier.net/ereferral-ontario/country-code"
        }
      }
    ]
  }
}