{
  "resourceType": "StructureDefinition",
  "id": "IHiSAppointment",
  "meta": {
    "lastUpdated": "2020-09-07T14:56:11.912+00:00"
  },
  "url": "http://ihis.com.sg/fhir/StructureDefinition/IHiSAppointment",
  "name": "IHiSAppointment",
  "status": "draft",
  "date": "2020-09-07T14:55:32.4108887+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "ical",
      "uri": "http://ietf.org/rfc/2445",
      "name": "iCalendar"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Appointment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.extension",
        "path": "Appointment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.extension:IHiSCaseNumber",
        "path": "Appointment.extension",
        "sliceName": "IHiSCaseNumber",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://example.org/fhir/StructureDefinition/CaseNumber"
            ]
          }
        ]
      },
      {
        "id": "Appointment.serviceCategory",
        "path": "Appointment.serviceCategory",
        "max": "1"
      },
      {
        "id": "Appointment.serviceCategory.coding.userSelected",
        "path": "Appointment.serviceCategory.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Appointment.serviceType",
        "path": "Appointment.serviceType",
        "max": "1"
      },
      {
        "id": "Appointment.serviceType.coding.userSelected",
        "path": "Appointment.serviceType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Appointment.specialty",
        "path": "Appointment.specialty",
        "max": "1"
      },
      {
        "id": "Appointment.appointmentType.coding",
        "path": "Appointment.appointmentType.coding",
        "max": "1"
      },
      {
        "id": "Appointment.reasonCode.coding.userSelected",
        "path": "Appointment.reasonCode.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Appointment.priority",
        "path": "Appointment.priority",
        "max": "0"
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        },
        "definition": "List of participants involved in the appointment.\r\nPatient, Practitioner, Service Facility (Location), and Polyclinic under which service facility exist - must be provided",
        "min": 4,
        "max": "4"
      }
    ]
  }
}