52 lines
4.2 KiB
Go
52 lines
4.2 KiB
Go
package appointment
|
|
|
|
import (
|
|
_struct "api-poliklinik/pkg/models/struct"
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type Appointment struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType"`
|
|
ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`
|
|
Identifier []_struct.Identifier `json:"identifier" bson:"identifier"`
|
|
Status string `json:"status" bson:"status"`
|
|
CancellationReason _struct.CodeableConcept `json:"cancellationReason" bson:"cancellationReason"`
|
|
Class []_struct.CodeableConcept `json:"class" bson:"class"`
|
|
ServiceCategory []_struct.CodeableConcept `json:"serviceCategory" bson:"serviceCategory"`
|
|
ServiceType []_struct.Value `json:"serviceType" bson:"serviceType"`
|
|
Specialty []_struct.CodeableConcept `json:"specialty" bson:"specialty"`
|
|
AppointmentType _struct.Coding `json:"appointmentType" bson:"appointmentType"`
|
|
Reason []_struct.Value `json:"reason" bson:"reason"`
|
|
Priority _struct.CodeableConcept `json:"priority" bson:"priority"`
|
|
Description string `json:"description" bson:"description"`
|
|
Replaces []_struct.Reference `json:"replaces" bson:"replaces"`
|
|
VirtualServiceDetail []_struct.VirtualServiceappoinmet `json:"virtualServiceDetail" bson:"virtualServiceDetail"`
|
|
SupportingInformation []_struct.Reference `json:"supportingInformation" bson:"supportingInformation"`
|
|
PreviousAppointment _struct.Reference `json:"previousAppointment" bson:"previousAppointment"`
|
|
OriginatingAppointment _struct.Reference `json:"originatingAppointment" bson:"originatingAppointment"`
|
|
Start string `json:"start" bson:"start"`
|
|
End string `json:"end" bson:"end"`
|
|
MinutesDuration int `json:"minutesDuration" bson:"minutesDuration"`
|
|
RequestedPeriod []_struct.Period `json:"requestedPeriod" bson:"requestedPeriod"`
|
|
Slot []_struct.Reference `json:"slot" bson:"slot"`
|
|
Account []_struct.Reference `json:"account" bson:"account"`
|
|
Created string `json:"created" bson:"created"`
|
|
CancellationDate string `json:"cancellationDate" bson:"cancellationDate"`
|
|
Note []_struct.Note `json:"note" bson:"note"`
|
|
PatientInstruction []_struct.Concept `json:"patientInstruction" bson:"patientInstruction"`
|
|
BasedOn []_struct.Reference `json:"basedOn" bson:"basedOn"`
|
|
Subject _struct.Reference `json:"subject" bson:"subject"`
|
|
Participant []_struct.Participant `json:"participant" bson:"participant"`
|
|
Recurrenceld string `json:"recurrenceld" bson:"recurrenceld"`
|
|
OccurrenceChanged bool `json:"occurrenceChanged" bson:"occurrenceChanged"`
|
|
RecurrenceTemple []_struct.RecurrenceTemple `json:"recurrenceTemple" bson:"recurrenceTemple"`
|
|
WeeklyTemple _struct.WeeklyTemple `json:"weeklyTemple" bson:"weeklyTemple"`
|
|
MonthlyTemple _struct.MonthlyTemple `json:"monthlyTemple" bson:"monthlyTemple"`
|
|
YearlyTemple _struct.YearlyTemple `json:"yearlyTemple" bson:"yearlyTemple"`
|
|
ExcludingDate []string `json:"excludingDate" bson:"excludingDate"`
|
|
ExcludingRecurrenceld []string `json:"excludingRecurrenceld" bson:"excludingRecurrenceld"`
|
|
CreatedAt string `json:"createdAt" bson:"createdAt"`
|
|
UpdatedAt string `json:"updatedAt" bson:"updatedAt"`
|
|
Extension []_struct.Extension `json:"extension" bson:"extension"`
|
|
}
|