{
  "resourceType": "StructureDefinition",
  "id": "44da4b1b-f9dc-4536-99f4-6e713e7a25f8",
  "meta": {
    "lastUpdated": "2021-06-11T03:58:11.149+00:00"
  },
  "url": "https://fhir.mhn.asia/emr/StructureDefinition/KkmPatient",
  "name": "KKmPatient",
  "status": "draft",
  "date": "2021-06-11T03:48:12.2353188+00:00",
  "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:nationality",
        "path": "Patient.extension",
        "sliceName": "nationality",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-nationality"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:myExtensionInPatient",
        "path": "Patient.extension",
        "sliceName": "myExtensionInPatient",
        "label": "opt ext label",
        "short": "opt ext desc",
        "definition": "opt ext def.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.mhn.asia/emr/StructureDefinition/extension-MyExtension"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-birthPlace"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:myPreferredPharmacy",
        "path": "Patient.extension",
        "sliceName": "myPreferredPharmacy",
        "short": "this is short desc",
        "definition": "this is def",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.mhn.asia/emr/StructureDefinition/PreferredPharmacy"
            ]
          }
        ]
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            },
            {
              "type": "value",
              "path": "use"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.telecom:mobile",
        "path": "Patient.telecom",
        "sliceName": "mobile",
        "min": 1,
        "max": "1",
        "patternContactPoint": {
          "system": "phone",
          "use": "mobile"
        }
      },
      {
        "id": "Patient.telecom:mobile.rank",
        "path": "Patient.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.telecom:mobile.period",
        "path": "Patient.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom:email",
        "path": "Patient.telecom",
        "sliceName": "email",
        "patternContactPoint": {
          "system": "email"
        }
      },
      {
        "id": "Patient.telecom:email.rank",
        "path": "Patient.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      }
    ]
  }
}