{
  "resourceType": "StructureDefinition",
  "id": "a9ae3d75-92a0-4b18-bf94-e75e775fed1e",
  "meta": {
    "lastUpdated": "2019-05-06T17:09:23.2840993+00:00"
  },
  "url": "https://ehealthontario.ca/API/FHIR/StructureDefinition/ca-on-medications-profile-Patient-dispense",
  "name": "Patient-Dispense",
  "status": "draft",
  "date": "2019-05-06T17:09:23.0996074+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "short": "Patient Identifier Type",
        "min": 1,
        "fixedUri": "https://ehealthontario.ca/API/FHIR/NamingSystem/ca-on-patient-hcn",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "short": "Patient Identifier Number",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "fixedBoolean": true,
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "short": "Patient Last Name",
        "definition": "Family name (often called 'Surname'). 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.",
        "mustSupport": true
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "short": "Patient First Name",
        "definition": "Given names (not always 'first'). Includes middle names",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AdministrativeGender"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/STU3/valueset-administrative-gender.html"
          }
        }
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mustSupport": true
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "definition": "Link to another patient resource that concerns the same actual person, but sourced from Demographics Table.",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.link.other",
        "path": "Patient.link.other",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://ehealthontario.ca/API/FHIR/StructureDefinition/ca-on-medications-profile-Patient-demographic"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.link.other.reference",
        "path": "Patient.link.other.reference",
        "short": "A reference to a location at which the other resource is found.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.link.type",
        "path": "Patient.link.type",
        "fixedCode": "refer",
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "LinkType"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/STU3/ValueSet/link-type"
          }
        }
      }
    ]
  }
}