pembaruhan baru

This commit is contained in:
2025-05-14 09:44:08 +07:00
parent dc0b822440
commit 1fb1caaf19
20 changed files with 1964 additions and 671 deletions
@@ -0,0 +1,51 @@
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"`
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"`
AppoinmentType _struct.CodeableConcept `json:"appoinmentType" bson:"appoinmentType"`
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.VirtualService `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"`
RecurrenceId int `json:"recurrenceId" bson:"recurrenceId"`
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"`
ExcludingRecurrenceId []int `json:"excludingRecurrenceId" bson:"excludingRecurrenceId"`
CreatedAt string `json:"createdAt" bson:"createdAt"`
UpdatedAt string `json:"updatedAt" bson:"updatedAt"`
Extension []_struct.Extension `json:"extension" bson:"extension"`
}
+25 -21
View File
@@ -6,25 +6,29 @@ import (
)
type Location struct {
ResourceType string `bson:"resourceType"`
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
Identifier []_struct.Identifier `bson:"identifier,omitempty" json:"identifier,omitempty"`
Status bool `bson:"status" json:"status"`
OperationaStatus _struct.Coding `bson:"operationalstatus,omitempty" json:"operational,omitempty"`
Name string `bson:"name" json:"name"`
Alias []string `bson:"alias,omitempty" json:"alias,omitempty"`
Description string `bson:"description,omitempty" json:"description,omitempty"`
Mode string `bson:"mode,omitempty" json:"mode,omitempty"`
Type []_struct.CodeableConcept `bson:"type,omitempty" json:"type,omitempty"`
Contact []_struct.ExtendedContactDetail `bson:"contact,omitempty" json:"contact,omitempty"`
Telecom []_struct.ContactPoint `bson:"telecom,omitempty" json:"telecom,omitempty"`
Address _struct.Address `bson:"address,omitempty" json:"address,omitempty"`
Form []_struct.CodeableConcept `bson:"form,omitempty" json:"form,omitempty"`
Position _struct.Position `bson:"position,omitempty" json:"position,omitempty"`
ManagingOrganization _struct.Reference `bson:"managingOrganization,omitempty" json:"managingOrganization,omitempty"`
PartOf _struct.Reference `bson:"partOf,omitempty" json:"partOf,omitempty"`
Characteristic []_struct.CodeableConcept `bson:"characteristic,omitempty" json:"characteristic,omitempty"`
HoursOfOperation []_struct.Availability `bson:"hoursOfOperation,omitempty" json:"hoursOfOperation,omitempty"`
VirtualService _struct.VirtualService `bson:"virtualService,omitempty" json:"virtualService,omitempty"`
Endpoint _struct.Reference `bson:"endpoint,omitempty" json:"endpoint,omitempty"`
ResourceType string `bson:"resourceType"`
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
Identifier []_struct.Identifier `bson:"identifier,omitempty" json:"identifier,omitempty"`
Status bool `bson:"status" json:"status"`
OperationalStatus _struct.Coding `bson:"operationalstatus" json:"operational,omitempty"`
Name string `bson:"name" json:"name"`
Alias []string `bson:"alias,omitempty" json:"alias,omitempty"`
Description string `bson:"description,omitempty" json:"description,omitempty"`
Mode string `bson:"mode,omitempty" json:"mode,omitempty"`
Type []_struct.CodeableConcept `bson:"type,omitempty" json:"type,omitempty"`
Contact _struct.ExtendedContactDetail `bson:"contact,omitempty" json:"contact,omitempty"`
Telecom []_struct.ContactPoint `bson:"telecom,omitempty" json:"telecom,omitempty"`
Address _struct.Address `bson:"address,omitempty" json:"address,omitempty"`
Form _struct.CodeableConcept `bson:"form,omitempty" json:"form,omitempty"`
Position _struct.Position `bson:"position,omitempty" json:"position,omitempty"`
ManagingOrganization _struct.Reference `bson:"managingOrganization,omitempty" json:"managingOrganization,omitempty"`
PartOf _struct.Reference `bson:"partOf,omitempty" json:"partOf,omitempty"`
Characteristic []_struct.CodeableConcept `bson:"characteristic,omitempty" json:"characteristic,omitempty"`
HoursOfOperation []_struct.Availability `bson:"hoursOfOperation,omitempty" json:"hoursOfOperation,omitempty"`
VirtualService []_struct.VirtualService `bson:"virtualService,omitempty" json:"virtualService,omitempty"`
Endpoint _struct.Reference `bson:"endpoint,omitempty" json:"endpoint,omitempty"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
DeletedAt string `bson:"deletedAt" json:"deletedAt"`
Extension []_struct.Extension `bson:"extension,omitempty" json:"extension,omitempty"`
}
@@ -51,3 +51,87 @@ type Village struct {
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Communication struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
Description string `bson:"description" json:"description"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Disability struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
Description string `bson:"description" json:"description"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Education struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
Description string `bson:"description" json:"description"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Job struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
Description string `bson:"description" json:"description"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type MartialStatus struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
Description string `bson:"description" json:"description"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Religion struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
Description string `bson:"description" json:"description"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Tribe struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
Description string `bson:"description" json:"description"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}