{
  "resourceType": "StructureDefinition",
  "url": "https://digives.gov.lv/fhir/StructureDefinition/AppointmentInfo",
  "version": "0.1",
  "name": "AppointmentInfo",
  "title": "Pieraksta informācija",
  "status": "draft",
  "date": "2025-05-30",
  "publisher": "LDVC",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Appointment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.meta",
        "path": "Appointment.meta",
        "min": 1,
        "type": [
          {
            "code": "Meta",
            "profile": [
              "https://digives.gov.lv/fhir/StructureDefinition/MedicalMeta"
            ]
          }
        ]
      },
      {
        "id": "Appointment.cancellationReason.coding",
        "path": "Appointment.cancellationReason.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.cancellationReason.coding.system",
        "path": "Appointment.cancellationReason.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.913"
      },
      {
        "id": "Appointment.cancellationReason.coding.code",
        "path": "Appointment.cancellationReason.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.913"
        }
      },
      {
        "id": "Appointment.cancellationReason.coding.display",
        "path": "Appointment.cancellationReason.coding.display",
        "min": 1
      },
      {
        "id": "Appointment.supportingInformation.id",
        "path": "Appointment.supportingInformation.id",
        "min": 1,
        "fixedString": "providerInstitution"
      },
      {
        "id": "Appointment.supportingInformation.reference",
        "path": "Appointment.supportingInformation.reference",
        "min": 1
      },
      {
        "id": "Appointment.supportingInformation.type",
        "path": "Appointment.supportingInformation.type",
        "min": 1,
        "fixedUri": "Organization"
      },
      {
        "id": "Appointment.start",
        "path": "Appointment.start",
        "min": 1
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "min": 1
      },
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.basedOn.reference",
        "path": "Appointment.basedOn.reference",
        "min": 1
      },
      {
        "id": "Appointment.basedOn.type",
        "path": "Appointment.basedOn.type",
        "min": 1,
        "fixedUri": "ServiceRequest"
      },
      {
        "id": "Appointment.subject",
        "path": "Appointment.subject",
        "min": 1
      },
      {
        "id": "Appointment.subject.reference",
        "path": "Appointment.subject.reference",
        "min": 1
      },
      {
        "id": "Appointment.subject.type",
        "path": "Appointment.subject.type",
        "min": 1,
        "fixedUri": "Patient"
      },
      {
        "id": "Appointment.participant.actor",
        "path": "Appointment.participant.actor",
        "min": 1
      }
    ]
  }
}