{
    "resourceType": "StructureDefinition",
    "id": "MyAppointment",
    "meta": {
        "lastUpdated": "2022-01-10T18:30:05.834+00:00"
    },
    "extension":  [
        {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
            "valueString": "Base.Workflow"
        },
        {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
            "valueCode": "patient"
        }
    ],
    "url": "https://example.org/fhir/StructureDefinition/MyAppointment",
    "name": "MyAppointment",
    "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.identifier",
                "path": "Appointment.identifier",
                "slicing": {
                    "discriminator":  [
                        {
                            "type": "value",
                            "path": "system"
                        }
                    ],
                    "rules": "open",
                    "description": "Slice"
                },
                "min": 1
            },
            {
                "id": "Appointment.identifier:PLAC",
                "path": "Appointment.identifier",
                "sliceName": "PLAC",
                "min": 1,
                "max": "1"
            },
            {
                "id": "Appointment.identifier:PLAC.type.coding.code",
                "path": "Appointment.identifier.type.coding.code",
                "patternCode": "FILL"
            },
            {
                "id": "Appointment.identifier:PLAC.type.coding.display",
                "path": "Appointment.identifier.type.coding.display",
                "patternString": "Placer identifier"
            },
            {
                "id": "Appointment.identifier:PLAC.system",
                "path": "Appointment.identifier.system",
                "min": 1,
                "patternUri": "http://terminology.hl7.org/CodeSystem/v2-0203"
            },
            {
                "id": "Appointment.identifier:PLAC.value",
                "path": "Appointment.identifier.value",
                "min": 1
            },
            {
                "id": "Appointment.status",
                "path": "Appointment.status",
                "binding": {
                    "strength": "required",
                    "valueSet": "https://example.org/StructureDefinition/Atos"
                }
            },
            {
                "id": "Appointment.cancelationReason",
                "path": "Appointment.cancelationReason",
                "binding": {
                    "strength": "required",
                    "valueSet": "http://hl7.org/fhir/request-status"
                }
            },
            {
                "id": "Appointment.serviceType",
                "path": "Appointment.serviceType",
                "binding": {
                    "strength": "required",
                    "valueSet": "http://hl7.org/fhir/request-priority"
                }
            },
            {
                "id": "Appointment.start",
                "path": "Appointment.start",
                "mustSupport": true
            },
            {
                "id": "Appointment.created",
                "path": "Appointment.created",
                "mustSupport": true
            },
            {
                "id": "Appointment.basedOn",
                "path": "Appointment.basedOn",
                "min": 1,
                "max": "1"
            },
            {
                "id": "Appointment.participant.type",
                "path": "Appointment.participant.type",
                "binding": {
                    "strength": "required",
                    "valueSet": "https://example.org/StructureDefinition/ICD"
                }
            },
            {
                "id": "Appointment.participant.actor",
                "path": "Appointment.participant.actor",
                "type":  [
                    {
                        "code": "Reference",
                        "targetProfile":  [
                            "http://hl7.org/fhir/StructureDefinition/Patient",
                            "http://hl7.org/fhir/StructureDefinition/Practitioner"
                        ]
                    }
                ]
            }
        ]
    }
}
{
    "resourceType": "ValueSet",
    "status": "draft",
    "name": "AppointmentStatus",
    "id": "AppointmentStatus",
    "title": "AppointmentStatus",
    "version": "1.0",
    "url": "https://example.org/StructureDefinition/Atos"
}
{
    "resourceType": "ValueSet",
    "status": "draft",
    "name": "AppointmentCancelationReason",
    "id": "AppoinmentCancelationReason",
    "title": "AppoinmentCancelationReason",
    "version": "1.0",
    "url": "http://hl7.org/fhir/request-status"
}
{
    "resourceType": "ValueSet",
    "status": "draft",
    "name": "ParticipantType",
    "id": "ParticipantType",
    "title": "ParticipantType",
    "version": "1.0",
    "url": "https://example.org/StructureDefinition/ICD"
}
{
    "resourceType": "ValueSet",
    "status": "draft",
    "name": "ServiceType",
    "id": "ServiceType",
    "title": "ServiceType",
    "version": "1.0",
    "url": "http://hl7.org/fhir/request-priority"
}
Copyright © 2015-2022 Firely

