{
  "resourceType": "StructureDefinition",
  "id": "patient-ca-core",
  "url": "http://fhir.infoway-inforoute.ca/ca-core/StructureDefinition/patient-ca-core",
  "name": "PatientCACore",
  "title": "Patient (CA-Core)",
  "status": "draft",
  "experimental": false,
  "description": "This profile applies constraints to the Patient resource for CA Core.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.communication.extension:CommunicationBarrier",
        "path": "Patient.communication.extension:CommunicationBarrier",
        "min": 0.0,
        "max": "*",
        "mustSupport": true,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient",
        "path": "Patient",
        "min": 0.0,
        "max": "*",
        "mustSupport": false
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Address"
          }
        ]
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1.0,
        "max": "1",
        "mustSupport": true,
        "type": [
          {
            "code": "date"
          }
        ]
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Patient.communication.preferred",
        "path": "Patient.communication.preferred",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Patient.contact.address",
        "path": "Patient.contact.address",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "Address"
          }
        ]
      },
      {
        "id": "Patient.contact.gender",
        "path": "Patient.contact.gender",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "Patient.contact.name",
        "path": "Patient.contact.name",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "HumanName"
          }
        ]
      },
      {
        "id": "Patient.contact.period",
        "path": "Patient.contact.period",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Patient.contact.relationship",
        "path": "Patient.contact.relationship",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "extensible"
        }
      },
      {
        "id": "Patient.contact.telecom",
        "path": "Patient.contact.telecom",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "ContactPoint"
          }
        ]
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Patient.extension:genderIdentity",
        "path": "Patient.extension:genderIdentity",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 0.0,
        "max": "1",
        "mustSupport": true,
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 0.0,
        "max": "*",
        "mustSupport": true,
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "type"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier.extension:HCNVersionCodeerVersionCode",
        "path": "Patient.identifier.extension:HCNVersionCodeerVersionCode",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient.identifier.extension:ReasonForNoHCN",
        "path": "Patient.identifier.extension:ReasonForNoHCN",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient.identifier:HCN.extension:versionCode",
        "path": "Patient.identifier:HCN.extension:versionCode",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient.identifier:MRN",
        "path": "Patient.identifier:MRN",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Patient.identifier:MRN.assigner(Organization)",
        "path": "Patient.identifier:MRN.assigner(Organization)",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "Patient.identifier:MRN.period",
        "path": "Patient.identifier:MRN.period",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Patient.identifier:MRN.system",
        "path": "Patient.identifier:MRN.system",
        "min": 1.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "uri"
          }
        ]
      },
      {
        "id": "Patient.identifier:MRN.type",
        "path": "Patient.identifier:MRN.type",
        "min": 1.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "extensible"
        }
      },
      {
        "id": "Patient.identifier:MRN.use",
        "path": "Patient.identifier:MRN.use",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "Patient.identifier:MRN.value",
        "path": "Patient.identifier:MRN.value",
        "min": 1.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Patient.link.type",
        "path": "Patient.link.type",
        "min": 1.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "extensible"
        }
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1.0,
        "max": "*",
        "mustSupport": true,
        "type": [
          {
            "code": "HumanName"
          }
        ]
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Attachment"
          }
        ]
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "ContactPoint"
          }
        ]
      },
      {
        "id": "Patient.text",
        "path": "Patient.text",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "Narrative"
          }
        ]
      },
      {
        "id": "Patient.address.extension:no-fixed-address",
        "path": "Patient.address.extension:no-fixed-address",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient.address.extension:preferred",
        "path": "Patient.address.extension:preferred",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient.extension:indigenous-identity",
        "path": "Patient.extension:indigenous-identity",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient.extension:individual-pronouns",
        "path": "Patient.extension:individual-pronouns",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient.extension:racialized-group",
        "path": "Patient.extension:racialized-group",
        "min": 0.0,
        "max": "*",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Patient.deceased[x]:deceasedDateTime",
        "path": "Patient.deceased[x]:deceasedDateTime",
        "min": 0.0,
        "max": "1",
        "mustSupport": false,
        "type": [
          {
            "code": "Extension"
          }
        ]
      }
    ]
  }
}