{
  "resourceType": "StructureDefinition",
  "url": "http://www.ehelse.no/FHIR/StructureDefinition/EhelseAppointment",
  "name": "EhelseAppointment",
  "status": "draft",
  "experimental": true,
  "date": "2017-09-13T06:35:27.127+00:00",
  "description": "This profile defines the Appointment object used in the national project that shall enable the citizen to have his appointments in a calendar at the national health care protal.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Appointment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.appointmentType",
        "path": "Appointment.appointmentType",
        "definition": "The code set selected is the one that has most relevanse for the patient. The aim of this profile is to poulate the patient calendar.",
        "requirements": "The current code set is found to limited. The code set for Encounter.class is more suitable for our purpose.",
        "min": 1,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "appointment-type"
            }
          ],
          "strength": "required",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/v3-ActEncounterCode"
        }
      },
      {
        "id": "Appointment.description",
        "path": "Appointment.description",
        "min": 1
      },
      {
        "id": "Appointment.supportingInformation",
        "path": "Appointment.supportingInformation",
        "requirements": "In our profile the organization responsible for providing the health care sercvice must be given. As the partcipants are refferd and referrela can not be nested, we find no other pkcaeholder for the managing organizatio  than in the supporting information.",
        "min": 1
      },
      {
        "id": "Appointment.start",
        "path": "Appointment.start",
        "min": 1
      },
      {
        "id": "Appointment.end",
        "path": "Appointment.end",
        "min": 1
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "requirements": "In our profile there must be at least two participants: The paitient, and the location whetre the healthcare service is to be provided.",
        "min": 2
      },
      {
        "id": "Appointment.participant.actor",
        "path": "Appointment.participant.actor",
        "min": 1
      },
      {
        "id": "Appointment.participant.required",
        "path": "Appointment.participant.required",
        "min": 1
      }
    ]
  }
}