{
  "resourceType": "StructureDefinition",
  "id": "161d3ba9-ca88-42a6-a5d2-7b6bf3863e0e",
  "meta": {
    "lastUpdated": "2021-06-08T12:14:51.744+00:00"
  },
  "url": "https://fhir.mhn.asia/emr/StructureDefinition/DemoPatient",
  "name": "DemoPatient",
  "status": "draft",
  "date": "2021-06-08T05:55:17.8932202Z",
  "description": "gender is mandatory",
  "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:myExtension",
        "path": "Patient.extension",
        "sliceName": "myExtension",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.mhn.asia/emr/StructureDefinition/extension-MyExtension"
            ]
          }
        ]
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "https://fhir.mhn.asia/emr/StructureDefinition/MyHumanName"
            ]
          }
        ]
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      }
    ]
  }
}