baru master

This commit is contained in:
2025-05-11 22:15:40 +07:00
parent 4d3cc4b7d9
commit dc0b822440
18 changed files with 1758 additions and 87 deletions
@@ -0,0 +1,27 @@
package episodeofcare
import (
_struct "api-poliklinik/pkg/models/struct"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type EpisodeOfCare struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Status bool `json:"status" bson:"status"`
StatusHistory []_struct.StatusHistrory `bson:"statusHistory,omitempty" json:"statusHistory" `
Type []_struct.CodeableConcept `bson:"type,omitempty" json:"type" `
Reason []_struct.Reason `bson:"reason,omitempty" json:"reason" `
Diagnosis []_struct.Diagnosis `bson:"diagnosis,omitempty" json:"diagnosis" `
Patient _struct.Reference `bson:"patient,omitempty" json:"patient" `
ManagingOrganization []_struct.Reference `bson:"managingOrganization,omitempty" json:"managingOrganization" `
Period []_struct.Period `bson:"period,omitempty" json:"period" `
ReferralRequest _struct.Reference `bson:"referralRequest,omitempty" json:"referralRequest" `
CareManager _struct.Reference `bson:"careManager,omitempty" json:"careManager" `
CareTeam _struct.Reference `bson:"careTea,omitempty" json:"careTea" `
Account _struct.Reference `bson:"account,omitempty" json:"account" `
CreatedAt string `bson:"createdAt,omitempty" json:"createdAt" `
UpdatedAt string `bson:"updatedAt,omitempty" json:"updatedAt" `
DeletedAt string `bson:"deletedAt,omitempty" json:"deletedAt" `
Extension []_struct.Extension `bson:"extension,omitempty" json:"extension" `
}
@@ -0,0 +1,35 @@
package healthcareservice
import (
_struct "api-poliklinik/pkg/models/struct"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type HealthcareService struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
ProvidedBy _struct.Reference `bson:"providedBy,omitempty" json:"providedBy,omitempty" `
OfferedIn []_struct.Reference `bson:"offeredIn,omitempty" json:"offeredIn,omitempty" `
Category []_struct.CodeableConcept `bson:"category,omitempty" json:"category,omitempty" `
Type []_struct.CodeableConcept `bson:"type,omitempty" json:"type,omitempty" `
Specialty []_struct.CodeableConcept `bson:"specialty,omitempty" json:"specialty,omitempty" `
Location []_struct.Reference `bson:"location,omitempty" json:"location,omitempty" `
Name string `bson:"name" json:"name"`
Comment string `bson:"comment,omitempty" json:"comment,omitempty" `
ExtraDetails string `bson:"extraDetails,omitempty" json:"extraDetails,omitempty" `
Photo []_struct.Photo `json:"photo" bson:"photo,omitempty" `
Contact []_struct.ExtendedContactDetail `json:"contact" bson:"contact,omitempty" `
CoverageArea []_struct.Reference `json:"coverageArea" bson:"coverageArea,omitempty" `
ServiceProvisionCode []_struct.CodeableConcept `json:"serviceProvisionCode" bson:"serviceProvisionCode,omitempty" `
Eligibility []_struct.Code `json:"eligibility" bson:"eligibility,omitempty" `
Program []_struct.Code `json:"program" bson:"program,omitempty" `
Communication []_struct.Code `json:"communication" bson:"communication,omitempty" `
ReferralMethod []_struct.Code `json:"referralMethod" bson:"referralMethod,omitempty" `
AppointmentRequired bool `json:"appointmentRequired" bson:"appointmentRequired,omitempty" `
Availibity []_struct.Availability `json:"availibity" bson:"availibity,omitempty" `
Endpoint []_struct.Reference `json:"endpoint" bson:"endpoint,omitempty" `
CreatedAt string `json:"createdAt" bson:"createdAt,omitempty" `
UpdatedAt string `json:"updatedAt" bson:"updatedAt,omitempty" `
DeletedAt string `json:"deletedAt" bson:"deletedAt,omitempty" `
Extension []_struct.Extension `json:"extension" bson:"extension,omitempty" `
}
@@ -24,6 +24,9 @@ type Patient struct {
Contact []_struct.Contact `json:"contact" bson:"contact,omitempty" `
Communication []_struct.Communication `json:"communication" bson:"communication,omitempty" `
Link []_struct.Link `json:"link" bson:"link,omitempty" `
CreatedAt string `json:"createdAt" bson:"createdAt" `
UpdatedAt string `json:"updatedAt" bson:"updatedAt" `
DeletedAt string `json:"deletedAt" bson:"deletedAt,omitempty" `
Extension []_struct.Extension `json:"extension" bson:"extension,omitempty" `
}
@@ -0,0 +1,53 @@
package masteraddress
import (
_struct "api-poliklinik/pkg/models/struct"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type State 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"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type City 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"`
State _struct.Reference `bson:"state" json:"state"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type District 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"`
City _struct.Reference `bson:"city" json:"city"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Village 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"`
District _struct.Reference `bson:"district" json:"district"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}