### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Appointment.json
### ----------------------------------------------------
### -- Chunk 8 of 8
identity" : "workflow",
        "map" : "Request.performer, Request.subject"
      },
      {
        "identity" : "v2",
        "map" : "PID, AIP, AIG, AIL"
      },
      {
        "identity" : "rim",
        "map" : "performer | reusableDevice | subject | location"
      },
      {
        "identity" : "ical",
        "map" : "ATTENDEE component to be created"
      }]
    },
    {
      "id" : "Appointment.participant.type",
      "path" : "Appointment.participant.type",
      "short" : "Role of participant in the appointment",
      "definition" : "Role of participant in the appointment.",
      "comment" : "The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.\r\rIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\r\rThis value SHALL be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ParticipantType"
        }],
        "strength" : "extensible",
        "description" : "Role of participant in encounter.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-participant-type"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "AIP-4, AIG-4"
      },
      {
        "identity" : "rim",
        "map" : "(performer | reusableDevice | subject | location).@typeCode"
      },
      {
        "identity" : "ical",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Appointment.participant.actor",
      "path" : "Appointment.participant.actor",
      "short" : "Person, Location/HealthcareService or Device",
      "definition" : "A Person, Location/HealthcareService or Device that is participating in the appointment.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/HealthcareService",
        "http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "v2",
        "map" : "PID-3-Patient ID List | AIL-3 | AIG-3 | AIP-3"
      },
      {
        "identity" : "rim",
        "map" : "performer.person | reusableDevice.manufacturedDevice | subject.patient | location.serviceDeliveryLocation"
      },
      {
        "identity" : "ical",
        "map" : "ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource) where the participant type is not \"information-only\""
      }]
    },
    {
      "id" : "Appointment.participant.required",
      "path" : "Appointment.participant.required",
      "short" : "required | optional | information-only",
      "definition" : "Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ParticipantRequired"
        }],
        "strength" : "required",
        "description" : "Is the Participant required to attend the appointment.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/participantrequired|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "(performer | reusableDevice | subject | location).@performInd"
      },
      {
        "identity" : "ical",
        "map" : "ROLE=REQ-PARTICIPANT (roleparam)"
      }]
    },
    {
      "id" : "Appointment.participant.status",
      "path" : "Appointment.participant.status",
      "short" : "accepted | declined | tentative | needs-action",
      "definition" : "Participation status of the actor.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ParticipationStatus"
        }],
        "strength" : "required",
        "description" : "The Participation status of an appointment.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/participationstatus|4.0.0"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "AIP-12, AIG-14"
      },
      {
        "identity" : "rim",
        "map" : "(performer | reusableDevice | subject | location).statusCode"
      },
      {
        "identity" : "ical",
        "map" : "ATTENDEE;CN=\"John Doe\";RSVP=TRUE:mailto:john@doe.com (rsvpparam | partstatparam)"
      }]
    },
    {
      "id" : "Appointment.participant.period",
      "path" : "Appointment.participant.period",
      "short" : "Participation period of the actor",
      "definition" : "Participation period of the actor.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Appointment.requestedPeriod",
      "path" : "Appointment.requestedPeriod",
      "short" : "Potential date/time interval(s) requested to allocate the appointment within",
      "definition" : "A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.\n\nThe duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system.",
      "comment" : "This does not introduce a capacity for recurring appointments.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Period"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.occurrence[x]"
      },
      {
        "identity" : "v2",
        "map" : "ARQ-11"
      },
      {
        "identity" : "rim",
        "map" : ".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')]"
      }]
    }]
  }
}


