{
  "resourceType": "StructureDefinition",
  "id": "mirjams-course-patient-2",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Individuals"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "http://mirjams.examples.org/StructureDefinition/mirjams-course-patient-2",
  "version": "0.1.0",
  "name": "MirjamsCoursePatient2",
  "title": "Mirjam's Course Patient Profile",
  "status": "active",
  "description": "Patient profile for the \"Extensions\" exercise from Mirjam's Data Modeling course, where an extension is added on top of the constraints created in a previous exercise",
  "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://mirjams.examples.org/StructureDefinition/mirjams-course-patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient",
        "definition": "This is the profile for Patient that results from completing the third exercise of the Profiling training course."
      },
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:birthplace",
        "path": "Patient.extension",
        "sliceName": "birthplace",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-birthPlace"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:birthplace.value[x]",
        "path": "Patient.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:birthplace.value[x]:valueAddress",
        "path": "Patient.extension.value[x]",
        "sliceName": "valueAddress",
        "min": 1
      },
      {
        "id": "Patient.extension:birthplace.value[x]:valueAddress.city",
        "path": "Patient.extension.value[x].city",
        "min": 1
      },
      {
        "id": "Patient.extension:occupation",
        "path": "Patient.extension",
        "sliceName": "occupation",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://mirjams.examples.org/StructureDefinition/patient-occupation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier:officialIdentifier",
        "path": "Patient.identifier",
        "sliceName": "officialIdentifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:officialIdentifier.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "https://mirjams.namespace/official"
      },
      {
        "id": "Patient.identifier:officialIdentifier.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:hospitalIdentifier",
        "path": "Patient.identifier",
        "sliceName": "hospitalIdentifier",
        "max": "1"
      },
      {
        "id": "Patient.identifier:hospitalIdentifier.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "https://mirjams.namespace/hospital"
      },
      {
        "id": "Patient.identifier:hospitalIdentifier.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "https://mirjams.example.org/fhir/StructureDefinition/MirjamsAddress"
            ]
          }
        ]
      }
    ]
  }
}