{
    "resourceType": "StructureDefinition",
    "id": "MySchedule",
    "extension":  [
        {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
            "valueString": "Base.Workflow"
        },
        {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
            "valueCode": "business"
        }
    ],
    "url": "http://example.org/StructureDefinition/MySchedule",
    "version": "1.0",
    "name": "MySchedule",
    "status": "draft",
    "fhirVersion": "4.0.1",
    "mapping":  [
        {
            "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"
        }
    ],
    "kind": "resource",
    "abstract": false,
    "type": "Schedule",
    "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Schedule",
    "derivation": "constraint",
    "differential": {
        "element":  [
            {
                "id": "Schedule.id",
                "path": "Schedule.id",
                "definition": "This ID should match the schedule's database ID since it is used by subsequent lookups and references by Ocean. Do not use a human-readable schedule code or description here."
            },
            {
                "id": "Schedule.identifier.system",
                "path": "Schedule.identifier.system",
                "min": 1
            },
            {
                "id": "Schedule.identifier.value",
                "path": "Schedule.identifier.value",
                "min": 1
            },
            {
                "id": "Schedule.serviceType",
                "path": "Schedule.serviceType",
                "binding": {
                    "strength": "required",
                    "valueSet": "http://example.org/Servicio_Basico"
                }
            },
            {
                "id": "Schedule.actor",
                "path": "Schedule.actor",
                "type":  [
                    {
                        "code": "Reference",
                        "targetProfile":  [
                            "http://hl7.org/fhir/StructureDefinition/Practitioner"
                        ]
                    }
                ],
                "mustSupport": true
            },
            {
                "id": "Schedule.actor.display",
                "path": "Schedule.actor.display",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Schedule.planningHorizon.start",
                "path": "Schedule.planningHorizon.start",
                "patternDateTime": "2023-01-25T19:37:14+00:00"
            }
        ]
    }
}
{
    "resourceType": "ValueSet",
    "status": "draft",
    "name": "ServiceType",
    "id": "ServiceType",
    "title": "ServiceType",
    "version": "1.0",
    "url": "http://example.org/Servicio_Basico"
}