{
  "resourceType": "StructureDefinition",
  "id": "c197e601-ab53-47ee-bc66-c000ff52120c",
  "meta": {
    "lastUpdated": "2021-03-03T16:06:51.653+00:00"
  },
  "url": "http://philforestall.ca/fhir/StructureDefinition/HealthcareClient",
  "version": "0.1",
  "name": "HealthcareClient",
  "title": "Healthcare Client",
  "status": "draft",
  "date": "2021-03-03T15:52:17.2777435+00:00",
  "publisher": "PFH",
  "contact": [
    {
      "name": "Phil",
      "telecom": [
        {
          "system": "email",
          "value": "phil.forestall@healthontario.ca",
          "use": "work",
          "period": {
            "start": "2021-03-01",
            "end": "2021-12-31"
          }
        }
      ]
    }
  ],
  "description": "FHIR message for Phil Forestall Hospital application to acquire healthcare client data from client's primary health provider.",
  "purpose": "Supports messaging of healthcare client administrative data to hospital from patients' administrative data.",
  "copyright": "It's all mine, baby.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:patientBirthPlace",
        "path": "Patient.extension",
        "sliceName": "patientBirthPlace",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://philforestall.ca/fhir/StructureDefinition/patient-birthPlace"
            ]
          }
        ]
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "min": 1
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      }
    ]
  }
}