Segment AIP in FHIR

How segment AIP (Appointment Information - Personnel Resource) becomes FHIR R4 resources, from the HL7 Version 2 to FHIR guide.

HL7 v2 definition
Definition of AIP in HL7 v2 2.8
Maps
Appointment
Used in messages
SIU_S12

To Appointment6 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
AIP-3Personnel Resource Id
XCNparticipant.actor[1]Reference(Practitioner)
AIP-4Resource Type
CWEparticipant.type[1]CodeableConcept
Value https://www.hl7.org/fhir/valueset-encounter-participant-type.html
AIP-6Start Date/Time
DTMparticipant.period.start
AIP-7Start Date/Time Offset
NMparticipant.period.start
If IF AIP-6 NOT VALUEDValue /.start + AIP-7 according to AIP-8 units/
AIP-9Duration
NMparticipant.period.end
If IF AIP-6 IS VALUEDValue Appointment.participant.period.start + AIP-9
AIP-12Filler Status Code
CWEparticipant.status[1]