{
  "resourceType": "StructureDefinition",
  "url": "http://hl7india.org/fhir/StructureDefinition/Appointment",
  "name": "Appointment",
  "status": "draft",
  "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.reasonReference",
        "path": "Appointment.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7india.org/fhir/StructureDefinition/Condition",
              "http://hl7india.org/fhir/StructureDefinition/Procedure",
              "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
              "http://hl7india.org/fhir/StructureDefinition/Observation"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "source": "http://hl7.org/fhir/StructureDefinition/Appointment"
          }
        ]
      },
      {
        "id": "Appointment.supportingInformation",
        "path": "Appointment.supportingInformation",
        "constraint": [
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "source": "http://hl7.org/fhir/StructureDefinition/Appointment"
          }
        ]
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "constraint": [
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "source": "http://hl7.org/fhir/StructureDefinition/Appointment"
          }
        ]
      },
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7india.org/fhir/StructureDefinition/ServiceRequest"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "source": "http://hl7.org/fhir/StructureDefinition/Appointment"
          }
        ]
      },
      {
        "id": "Appointment.participant.actor",
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7india.org/fhir/StructureDefinition/Patient",
              "http://hl7india.org/fhir/StructureDefinition/Practitioner",
              "http://hl7india.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
              "http://hl7.org/fhir/StructureDefinition/Device",
              "http://hl7.org/fhir/StructureDefinition/HealthcareService",
              "http://hl7india.org/fhir/StructureDefinition/Location"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "source": "http://hl7.org/fhir/StructureDefinition/Appointment"
          }
        ]
      },
      {
        "id": "Appointment.participant.period",
        "path": "Appointment.participant.period",
        "constraint": [
          {
            "key": "per-1",
            "severity": "error",
            "human": "If present, start SHALL have a lower value than end",
            "source": "http://hl7.org/fhir/StructureDefinition/Appointment"
          }
        ]
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "constraint": [
          {
            "key": "per-1",
            "severity": "error",
            "human": "If present, start SHALL have a lower value than end",
            "source": "http://hl7.org/fhir/StructureDefinition/Appointment"
          }
        ]
      }
    ]
  }
}