lengkap belum account

This commit is contained in:
2025-05-15 13:45:45 +07:00
parent 1fb1caaf19
commit fd30463082
28 changed files with 1571 additions and 639 deletions
+143 -90
View File
@@ -5,26 +5,26 @@ type StatusHistrory struct {
Period Period `json:"period" ,bson:"period"`
}
type Identifier struct {
Use string `json:"use,omitempty" bson:"use"`
Type CodeableConcept `json:"type,omitempty" bson:"type"`
System string `json:"system,omitempty" bson:"system"`
Value string `json:"value,omitempty" bson:"value"`
Period Period `json:"period,omitempty" bson:"period"`
Assigner Reference `json:"assigner,omitempty" bson:"assigner"`
Coding Coding `json:"coding,omitempty" bson:"coding,omitempty"`
Use string `json:"use" bson:"use"`
Type CodeableConcept `json:"type" bson:"type"`
System string `json:"system" bson:"system"`
Value string `json:"value" bson:"value"`
Period Period `json:"period" bson:"period"`
Assigner Reference `json:"assigner" bson:"assigner"`
Coding Coding `json:"coding" bson:"coding"`
}
type CodeableConcept struct {
Coding []Coding `json:"coding" bson:"coding"`
Text string `json:"text,omitempty" bson:"text"`
Text string `json:"text" bson:"text"`
}
type Coding struct {
System string `json:"system,omitempty" bson:"system"`
Version string `json:"version,omitempty" bson:"version"`
Code string `json:"code,omitempty" bson:"code"`
Display string `json:"display,omitempty" bson:"display"`
UserSelected bool `json:"userSelected,omitempty" bson:"userSelected"`
System string `json:"system" bson:"system"`
Version string `json:"version" bson:"version"`
Code string `json:"code" bson:"code"`
Display string `json:"display" bson:"display"`
UserSelected bool `json:"userSelected" bson:"userSelected"`
}
type Period struct {
@@ -33,52 +33,52 @@ type Period struct {
}
type Reference struct {
Reference string `json:"reference,omitempty" bson:"reference"`
Display string `json:"display,omitempty" bson:"display"`
Reference string `json:"reference" bson:"reference"`
Display string `json:"display" bson:"display"`
}
type HumanName struct {
Use string `json:"use,omitempty" bson:"use"`
Text string `json:"text,omitempty" bson:"text"`
Family string `json:"family,omitempty" bson:"family"`
Given []string `json:"given,omitempty" bson:"given"`
Prefix []string `json:"prefix,omitempty" bson:"prefix"`
Suffix []string `json:"suffix,omitempty" bson:"suffix"`
Period Period `json:"period,omitempty" bson:"period"`
Use string `json:"use" bson:"use"`
Text string `json:"text" bson:"text"`
Family string `json:"family" bson:"family"`
Given []string `json:"given" bson:"given"`
Prefix []string `json:"prefix" bson:"prefix"`
Suffix []string `json:"suffix" bson:"suffix"`
Period Period `json:"period" bson:"period"`
}
type ContactPoint struct {
System string `bson:"system" json:"system"`
Value string `bson:"value" json:"value"`
Use string `bson:"use" json:"use"`
Rank int `bson:"rank" json:"rank"`
Rank string `bson:"rank" json:"rank"`
Period Period `bson:"period" json:"period"`
}
type Address struct {
Use string `json:"use,omitempty" bson:"use"`
Type string `json:"type,omitempty" bson:"type"`
Text string `json:"text,omitempty" bson:"text"`
Line []string `json:"line,omitempty" bson:"line"`
Village string `json:"village,omitempty" bson:"village"`
District string `json:"district,omitempty" bson:"district"`
City string `json:"city,omitempty" bson:"city"`
State string `json:"state,omitempty" bson:"state"`
PostalCode string `json:"postalCode,omitempty" bson:"postalCode"`
Country string `json:"country,omitempty" bson:"country"`
Period Period `json:"period,omitempty" bson:"period"`
Extension []Extension `json:"extension,omitempty" bson:"extension"`
Use string `json:"use" bson:"use"`
Type string `json:"type" bson:"type"`
Text string `json:"text" bson:"text"`
Line []string `json:"line" bson:"line"`
Village string `json:"village" bson:"village"`
District string `json:"district" bson:"district"`
City string `json:"city" bson:"city"`
State string `json:"state" bson:"state"`
PostalCode string `json:"postalCode" bson:"postalCode"`
Country string `json:"country" bson:"country"`
Period Period `json:"period" bson:"period"`
Extension []Extension `json:"extension" bson:"extension"`
}
type Extension struct {
URL string `json:"url,omitempty" bson:"url`
Extension []ExtensionDetail `json:"extension,omitempty" bson:"extension"`
URL string `json:"url" bson:"url"`
Extension []ExtensionDetail `json:"extension" bson:"extension"`
}
type ExtensionDetail struct {
URL string `json:"url,omitempty" bson:"url,omitempty"`
ValueDisplay string `json:"valueDisplay,omitempty" bson:"valueDisplay"`
ValueCode string `json:"valueCode,omitempty" bson:"valueCode"`
URL string `json:"url" bson:"url"`
ValueDisplay string `json:"valueDisplay" bson:"valueDisplay"`
ValueCode string `json:"valueCode" bson:"valueCode"`
}
type Photo struct {
@@ -98,42 +98,36 @@ type Photo struct {
}
type Contact struct {
Relationship []CodeableConcept `json:"relationship,omitempty" bson:"relationship"`
Name HumanName `json:"name,omitempty" bson:"name"`
Telecom []ContactPoint `json:"telecom,omitempty" bson:"telecom"`
Address Address `json:"address,omitempty" bson:"address"`
Gender string `json:"gender,omitempty" bson:"gender"`
Organization Reference `json:"organization,omitempty" bson:"organization"`
Period Period `json:"period,omitempty" bson:"period"`
Relationship []CodeableConcept `json:"relationship" bson:"relationship"`
Name HumanName `json:"name" bson:"name"`
Telecom []ContactPoint `json:"telecom" bson:"telecom"`
Address Address `json:"address" bson:"address"`
Gender string `json:"gender" bson:"gender"`
Organization Reference `json:"organization" bson:"organization"`
Period Period `json:"period" bson:"period"`
}
type Communication struct {
Language CodeableConcept `json:"language,omitempty" bson:"language"`
Text string `json:"text,omitempty" bson:"text"`
Language CodeableConcept `json:"language" bson:"language"`
}
type Link struct {
Other Reference `json:"other,omitempty" bson:"other"`
Type string `json:"type,omitempty" bson:"type"`
Other Reference `json:"other" bson:"other"`
Type string `json:"type" bson:"type"`
}
type LinkTarget struct {
Target Reference `json:"target,omitempty" bson:"target,omitempty"`
Type string `json:"type,omitempty" bson:"type,omitempty"`
Target Reference `json:"target" bson:"target,omitempty"`
Type string `json:"type" bson:"type,omitempty"`
}
type ExtendedContactDetail struct {
Purpose Purpose `json:"purpose" bson:"purpose"`
Name []HumanName `json:"name,omitempty" bson:"name"`
Telecom []ContactPoint `json:"telecom,omitempty" bson:"telecom"`
Address []Address `json:"address,omitempty" bson:"address"`
Organization Reference `json:"organization,omitempty" bson:"organization"`
Period Period `json:"period,omitempty" bson:"period"`
}
type Purpose struct {
Purpose CodeableConcept `json:"purpose" bson:"purpose"`
Coding []Coding `json:"coding" bson:"coding"`
Purpose CodeableConcept `json:"purpose" bson:"purpose"`
Name []HumanName `json:"name" bson:"name"`
Telecom []ContactPoint `json:"telecom" bson:"telecom"`
Address []Address `json:"address" bson:"address"`
Organization Reference `json:"organization" bson:"organization"`
Period Period `json:"period" bson:"period"`
}
type Reason struct {
@@ -142,6 +136,12 @@ type Reason struct {
Reference Reference `json:"reference" bson:"reference"`
}
type Reasonencounter struct {
Use []CodeableConcept `json:"use" bson:"use"`
Value []Value `json:"value" bson:"value"`
Reference Reference `json:"reference" bson:"reference"`
}
type Value struct {
Concept CodeableConcept `json:"concept" bson:"concept"`
Reference Reference `json:"reference" bson:"reference"`
@@ -151,24 +151,29 @@ type Diagnosis struct {
Condition []Value `json:"condition" bson:"condition"`
Use []CodeableConcept `json:"use" bson:"use"`
}
type Diagnosisepisode struct {
Condition []Value `json:"condition" bson:"condition"`
Use CodeableConcept `json:"use" bson:"use"`
}
type Quantity struct {
Value float64 `json:"value,omitempty" bson:"value,omitempty"`
Comparator string `json:"comparator,omitempty" bson:"comparator,omitempty"`
Unit string `json:"unit,omitempty" bson:"unit,omitempty"`
System string `json:"system,omitempty" bson:"system,omitempty"`
Code string `json:"code,omitempty" bson:"code,omitempty"`
Value float64 `json:"value" bson:"value"`
Comparator string `json:"comparator" bson:"comparator"`
Unit string `json:"unit" bson:"unit"`
System string `json:"system" bson:"system"`
Code string `json:"code" bson:"code"`
}
type Qualification struct {
Identifier []Identifier `json:"identifier,omitempty" bson:"identifier,omitempty"`
Code CodeableConcept `json:"code,omitempty" bson:"code,omitempty"`
Period Period `json:"period,omitempty" bson:"period,omitempty"`
Issuer Reference `json:"issuer,omitempty" bson:"issuer,omitempty"`
Identifier []Identifier `json:"identifier" bson:"identifier"`
Code CodeableConcept `json:"code" bson:"code"`
Period Period `json:"period" bson:"period"`
Issuer Reference `json:"issuer" bson:"issuer"`
}
type Code struct {
Code []CodeableConcept `json:"code" bson:"code"`
Comment string `json:"comment,omitempty" bson:"comment,omitempty"`
Comment string `json:"comment" bson:"comment"`
}
type Position struct {
Longitude float64 `json:"longitude,omitempty" bson:"longitude,omitempty"`
@@ -194,16 +199,63 @@ type AvailabilityNotAvailable struct {
}
type VirtualService struct {
ChannelType Coding `json:"channelType,omitempty" bson:"channelType,omitempty"`
AddressUrl string `json:"addressUrl,omitempty" bson:"addressUrl,omitempty"`
AddressString string `json:"addressString,omitempty" bson:"addressString,omitempty"`
AddressContactPoint ContactPoint `json:"addressContactPoint,omitempty" bson:"addressContactPoint,omitempty"`
AddressExtendedContact ExtendedContactDetail `json:"addressExtendedContact,omitempty" bson:"addressExtendedContact,omitempty"`
AdditionalInfo []string `json:"additionalInfo,omitempty" bson:"additionalInfo,omitempty"`
MaxParticipants int `json:"maxParticipants,omitempty" bson:"maxParticipants,omitempty"`
SessionKey string `json:"sessionKey,omitempty" bson:"sessionKey,omitempty"`
ChannelType Coding `json:"channelType" bson:"channelType"`
AddressUrl string `json:"addressUrl" bson:"addressUrl"`
AddressString string `json:"addressString" bson:"addressString"`
AddressContactPoint ContactPoint `json:"addressContactPoint" bson:"addressContactPoint"`
AddressExtendedContact ExtendedContactDetail `json:"addressExtendedContact" bson:"addressExtendedContact"`
AdditionalInfo []string `json:"additionalInfo" bson:"additionalInfo"`
MaxParticipants int `json:"maxParticipants" bson:"maxParticipants"`
SessionKey string `json:"sessionKey" bson:"sessionKey"`
}
type VirtualServiceappoinmet struct {
ChannelType Coding `json:"channelType" bson:"channelType"`
Address Addressappoint `json:"address" bson:"address"`
AdditionalInfo []string `json:"additionalInfo" bson:"additionalInfo"`
MaxParticipants int `json:"maxParticipants" bson:"maxParticipants"`
SessionKey string `json:"sessionKey" bson:"sessionKey"`
}
type Addressappoint struct {
AddressUrl string `json:"addressUrl" bson:"addressUrl"`
AddressString string `json:"addressString" bson:"addressString"`
AddressContactPoint ContactPoint `json:"addressContactPoint" bson:"addressContactPoint"`
AddressExtendedContactDetail ExtendedContactDetailappoint `json:"addressExtendedContactDetail" bson:"addressExtendedContactDetail"`
}
type ExtendedContactDetailappoint struct {
Purpose CodeableConcept `json:"purpose" bson:"purpose"`
Name []HumanName `json:"name" bson:"name"`
Telecom []ContactPoint `json:"telecom" bson:"telecom"`
Address []Address `json:"address" bson:"address"`
Organization Reference `json:"organization" bson:"organization"`
Period Period `json:"period" bson:"period"`
}
type VirtualServiceEncounter struct {
ChannelType Coding `json:"channelType" bson:"channelType"`
Address AddressEncounter `json:"address" bson:"address"`
AdditionalInfo []string `json:"additionalInfo" bson:"additionalInfo"`
MaxParticipants int `json:"maxParticipants" bson:"maxParticipants"`
SessionKey string `json:"sessionKey" bson:"sessionKey"`
}
type AddressEncounter struct {
AddressUrl string `json:"addressUrl" bson:"addressUrl"`
AddressString string `json:"addressString" bson:"addressString"`
AddressContactPoint ContactPoint `json:"addressContactPoint" bson:"addressContactPoint"`
AddressExtendedContactDetail ExtendedContactDetailEncounter `json:"addressExtendedContactDetail" bson:"addressExtendedContactDetail"`
}
type ExtendedContactDetailEncounter struct {
Purpose CodeableConcept `json:"purpose" bson:"purpose"`
Name []HumanName `json:"name" bson:"name"`
Telecom []ContactPoint `json:"telecom" bson:"telecom"`
Address Address `json:"address" bson:"address"` // Single address, not array
Organization Reference `json:"organization" bson:"organization"`
Period Period `json:"period" bson:"period"`
}
type Payload struct {
Type CodeableConcept `json:"type,omitempty" bson:"type,omitempty"`
Mimetype []string `json:"mimetype,omitempty" bson:"mimetype,omitempty"`
@@ -242,17 +294,18 @@ type RecurrenceTemple struct {
}
type WeeklyTemple struct {
Monday bool `json:"monday" bson:"monday"`
Tuesday bool `json:"tuesday" bson:"tuesday"`
Wednesday bool `json:"wednesday" bson:"wednesday"`
Thursday bool `json:"thursday" bson:"thursday"`
Friday bool `json:"friday" bson:"friday"`
Saturday bool `json:"saturday" bson:"saturday"`
Sunday bool `json:"sunday" bson:"sunday"`
Monday bool `json:"monday" bson:"monday"`
Tuesday bool `json:"tuesday" bson:"tuesday"`
Wednesday bool `json:"wednesday" bson:"wednesday"`
Thursday bool `json:"thursday" bson:"thursday"`
Friday bool `json:"friday" bson:"friday"`
Saturday bool `json:"saturday" bson:"saturday"`
Sunday bool `json:"sunday" bson:"sunday"`
WeekInterval string `json:"weekInterval" bson:"weekInterval"`
}
type MonthlyTemple struct {
DayOfmonth bool `json:"dayOfmonth" bson:"dayOfmonth"`
DayOfmonth string `json:"dayOfMonth" bson:"dayOfMonth"`
NthWeekOfMonth Coding `json:"nthWeekOfMonth" bson:"nthWeekOfMonth"`
DayOfWeek Coding `json:"dayOfWeek" bson:"dayOfWeek"`
MonthInterval int `json:"monthInterval" bson:"monthInterval"`