{
  "resourceType": "StructureDefinition",
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Patient-administration",
  "version": "4.0.0",
  "name": "PatientAdministration",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "acCDR-HL7v2-mapping",
      "name": "acCDR HL7v2  mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient",
        "mustSupport": true
      },
      {
        "id": "Patient.id",
        "path": "Patient.id",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.3",
            "comment": "patient identifier"
          }
        ]
      },
      {
        "id": "Patient.identifier:IdentifierOntarioHCN",
        "path": "Patient.identifier",
        "sliceName": "IdentifierOntarioHCN",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:IdentifierOntarioHCN.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.3.4/PID.3.5",
            "comment": "Assigning Authority and Identifier Type Code"
          }
        ]
      },
      {
        "id": "Patient.identifier:IdentifierOntarioHCN.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.3.1",
            "comment": "identifier"
          }
        ]
      },
      {
        "id": "Patient.identifier:IdentifierMRN",
        "path": "Patient.identifier",
        "sliceName": "IdentifierMRN",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:IdentifierMRN.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.3.4/PID.3.5",
            "comment": "Assigning Authority and Identifier Type Code"
          }
        ]
      },
      {
        "id": "Patient.identifier:IdentifierMRN.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.3.1",
            "comment": "identifier"
          }
        ]
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.5",
            "comment": "patient name"
          }
        ]
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.5.1.1",
            "comment": "surname"
          }
        ]
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "max": "2",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.5.2/PID.5.3",
            "comment": "given and middle names"
          }
        ]
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "max": "1",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.13",
            "comment": "phone number"
          }
        ]
      },
      {
        "id": "Patient.telecom.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "phone",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.13.3"
          }
        ]
      },
      {
        "id": "Patient.telecom.value",
        "path": "Patient.telecom.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.13.1 or PID.13.5/PID.13.6/PID.13.7/PID.13.8",
            "comment": "phone number"
          }
        ]
      },
      {
        "id": "Patient.telecom.use",
        "path": "Patient.telecom.use",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.13.2"
          }
        ]
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.8",
            "comment": "administrative sex"
          }
        ]
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.7",
            "comment": "date/time of birth"
          }
        ]
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "max": "1",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.11"
          }
        ]
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.11.7"
          }
        ]
      },
      {
        "id": "Patient.address.type",
        "path": "Patient.address.type",
        "mustSupport": true
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "max": "2",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.11.1"
          }
        ]
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.11.3"
          }
        ]
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.11.4"
          }
        ]
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.11.5"
          }
        ]
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "PID.11.6"
          }
        ]
      }
    ]
  }
}