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

No files matched your search

+42 -42
View File
@@ -6,46 +6,46 @@ import (
)
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"`
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"`
}
+66 -48
View File
@@ -6,60 +6,78 @@ import (
)
type Encounter struct {
ResourceType string `json:"resourceType,omitempty" bson:"resourceType,omitempty"`
ID primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
Identifier []_struct.Identifier `json:"identifier,omitempty" bson:"identifier,omitempty"`
Status string `json:"status,omitempty" bson:"status,omitempty"`
Class _struct.CodeableConcept `json:"class,omitempty" bson:"class,omitempty"`
Type []_struct.CodeableConcept `json:"type,omitempty" bson:"type,omitempty"`
ServiceType _struct.CodeableConcept `json:"serviceType,omitempty" bson:"serviceType,omitempty"`
Priority _struct.CodeableConcept `json:"priority,omitempty" bson:"priority,omitempty"`
Subject _struct.Reference `json:"subject,omitempty" bson:"subject,omitempty"`
EpisodeOfCare []_struct.Reference `json:"episodeOfCare,omitempty" bson:"episodeOfCare,omitempty"`
BasedOn []_struct.Reference `json:"basedOn,omitempty" bson:"basedOn,omitempty"`
Participant []EncounterParticipant `json:"participant,omitempty" bson:"participant,omitempty"`
Appointment []_struct.Reference `json:"appointment,omitempty" bson:"appointment,omitempty"`
Period _struct.Period `json:"period,omitempty" bson:"period,omitempty"`
Length _struct.Quantity `json:"length,omitempty" bson:"length,omitempty"`
ReasonCode []_struct.CodeableConcept `json:"reasonCode,omitempty" bson:"reasonCode,omitempty"`
Diagnosis []EncounterDiagnosis `json:"diagnosis,omitempty" bson:"diagnosis,omitempty"`
Account []_struct.Reference `json:"account,omitempty" bson:"account,omitempty"`
Hospitalization Hospitalization `json:"hospitalization,omitempty" bson:"hospitalization,omitempty"`
Location []EncounterLocation `json:"location,omitempty" bson:"location,omitempty"`
ServiceProvider _struct.Reference `json:"serviceProvider,omitempty" bson:"serviceProvider,omitempty"`
PartOf _struct.Reference `json:"partOf,omitempty" bson:"partOf,omitempty"`
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"`
Class []_struct.CodeableConcept `json:"class" bson:"class"`
Priority _struct.CodeableConcept `json:"priority" bson:"priority"`
Type []_struct.CodeableConcept `json:"type" bson:"type"`
ServiceType []_struct.Value `json:"serviceType" bson:"serviceType"`
Subject _struct.Reference `json:"subject" bson:"subject"`
SubjectStatus _struct.CodeableConcept `json:"subjectStatus" bson:"subjectStatus"`
EpisodeOfCare []_struct.Reference `json:"episodeOfCare" bson:"episodeOfCare"`
BaseOn []_struct.Reference `json:"baseOn" bson:"baseOn"`
CareTeam []_struct.Reference `json:"careTeam" bson:"careTeam"`
PartOf _struct.Reference `json:"partOf" bson:"partOf"`
ServiceProvider _struct.Reference `json:"serviceProvider" bson:"serviceProvider"`
Participant []Participant `json:"participant" bson:"participant"`
Appointment []_struct.Reference `json:"appointment" bson:"appointment"`
VirtualServiceDetail []_struct.VirtualServiceEncounter `json:"virtualServiceDetail" bson:"virtualServiceDetail"`
ActualPeriod _struct.Period `json:"actualPeriod" bson:"actualPeriod"`
PlannedStartDate string `json:"plannedStartDate" bson:"plannedStartDate"`
PlannedEndDate string `json:"plannedEndDate" bson:"plannedEndDate"`
Length Length `json:"length" bson:"length"`
Reason []_struct.Reasonencounter `json:"reason" bson:"reason"`
Diagnosis []_struct.Diagnosis `json:"diagnosis" bson:"diagnosis"`
Account []_struct.Reference `json:"account" bson:"account"`
DietPreference []_struct.CodeableConcept `json:"dietPreference" bson:"dietPreference"`
SpecialArrangement []_struct.CodeableConcept `json:"specialArrangement" bson:"specialArrangement"`
SpecialCourtesy []_struct.CodeableConcept `json:"specialCourtesy" bson:"specialCourtesy"`
Admission Admission `json:"admission" bson:"admission"`
Location []Location `json:"location" bson:"location"`
CreatedAt string `json:"createdAt" bson:"createdAt"`
UpdatedAt string `json:"updatedAt" bson:"updatedAt"`
Extension []_struct.Extension `json:"extension" bson:"extension"`
}
// EncounterParticipant mendefinisikan orang yang terlibat dalam pertemuan
type EncounterParticipant struct {
Type []_struct.CodeableConcept `json:"type,omitempty" bson:"type,omitempty"`
Period _struct.Period `json:"period,omitempty" bson:"period,omitempty"`
Individual _struct.Reference `json:"individual,omitempty" bson:"individual,omitempty"`
// Struktur untuk Duration dalam Length
type Duration struct {
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 string `json:"userSelected" bson:"userSelected"`
Value float64 `json:"value" bson:"value"`
Unit string `json:"unit" bson:"unit"`
}
// EncounterDiagnosis mendefinisikan diagnosis yang terkait dengan pertemuan
type EncounterDiagnosis struct {
Condition _struct.Reference `json:"condition,omitempty" bson:"condition,omitempty"`
Use _struct.CodeableConcept `json:"use,omitempty" bson:"use,omitempty"`
Rank int `json:"rank,omitempty" bson:"rank,omitempty"`
// Struktur untuk Length
type Length struct {
Duration Duration `json:"duration" bson:"duration"`
}
// Hospitalization mendefinisikan detail tentang rawat inap yang terkait dengan pertemuan
type Hospitalization struct {
PreAdmissionIdentifier _struct.Identifier `json:"preAdmissionIdentifier,omitempty" bson:"preAdmissionIdentifier,omitempty"`
AdmitSource _struct.CodeableConcept `json:"admitSource,omitempty" bson:"admitSource,omitempty"`
ReAdmission _struct.CodeableConcept `json:"reAdmission,omitempty" bson:"reAdmission,omitempty"`
DietPreference []_struct.CodeableConcept `json:"dietPreference,omitempty" bson:"dietPreference,omitempty"`
SpecialCourtesy []_struct.CodeableConcept `json:"specialCourtesy,omitempty" bson:"specialCourtesy,omitempty"`
SpecialArrangement []_struct.CodeableConcept `json:"specialArrangement,omitempty" bson:"specialArrangement,omitempty"`
Destination _struct.Reference `json:"destination,omitempty" bson:"destination,omitempty"`
DischargeDisposition _struct.CodeableConcept `json:"dischargeDisposition,omitempty" bson:"dischargeDisposition,omitempty"`
// Struktur untuk Participant
type Participant struct {
Type []_struct.CodeableConcept `json:"type" bson:"type"`
Period _struct.Period `json:"period" bson:"period"`
Actor _struct.Reference `json:"actor" bson:"actor"`
}
// EncounterLocation mendefinisikan lokasi di mana pertemuan terjadi
type EncounterLocation struct {
Location _struct.Reference `json:"location,omitempty" bson:"location,omitempty"`
Status string `json:"status,omitempty" bson:"status,omitempty"`
PhysicalType _struct.CodeableConcept `json:"physicalType,omitempty" bson:"physicalType,omitempty"`
Period _struct.Period `json:"period,omitempty" bson:"period,omitempty"`
// Struktur untuk Location
type Location struct {
Location _struct.Reference `json:"location" bson:"location"`
Status string `json:"status" bson:"status"`
Form _struct.CodeableConcept `json:"form" bson:"form"`
Period _struct.Period `json:"period" bson:"period"`
}
// Struktur untuk Admission
type Admission struct {
PreAdmissionIdentifier _struct.Identifier `json:"preAdmissionIdentifier" bson:"preAdmissionIdentifier"`
Origin _struct.Reference `json:"origin" bson:"origin"`
AdmitSource _struct.CodeableConcept `json:"admitSource" bson:"admitSource"`
ReadmitSource _struct.CodeableConcept `json:"readmitSource" bson:"readmitSource"`
Destination _struct.Reference `json:"destination" bson:"destination"`
DischargeDisposition _struct.CodeableConcept `json:"dischargeDisposition" bson:"dischargeDisposition"`
}
+18 -18
View File
@@ -6,22 +6,22 @@ import (
)
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" `
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Status string `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.Diagnosisepisode `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" `
}
@@ -135,3 +135,27 @@ type Tribe struct {
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Icdmongo 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"`
Comment string `bson:"comment" json:"comment"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Smfmongo 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"`
}
+1 -1
View File
@@ -1,6 +1,6 @@
package simrs
type Icd10 struct {
type Icd struct {
IDIcd string `gorm:"column:id_idicd" json:"id_icd"`
NamaIcd string `gorm:"column:nm_icd" json:"nama_icd"`
DesJenisPenyakit string `gorm:"column:des_deskripsijenispenyakit" json:"des_jenis_penyakit"`
+3 -2
View File
@@ -3,14 +3,15 @@ package simrs
type Practitionerdoktersimrs struct {
IDDokter string `gorm:"column:id_kddokter" json:"kd_dokter"`
KDPoly string `gorm:"column:id_kdpoly" json:"kdpoly"`
NIP string `gorm:"column:id_kodedpjp" json:"kodedpjp"`
KodeDpjp string `gorm:"column:id_kodedpjp" json:"kodedpjp"`
NIP string `gorm:"column:id_nip" json:"nip"`
Aktif string `gorm:"column:st_aktif" json:"aktif"`
NamaDokter string `gorm:"column:nm_namadokter" json:"nama_dokter"`
NomorHP string `gorm:"column:te_nomorhp" json:"nomor_hp"`
Email string `gorm:"column:te_email" json:"email"`
QuSIP string `gorm:"column:qu_sip" json:"qu_sip"`
QuSPK string `gorm:"column:qu_spk" json:"qu_spk"`
SMF string `gorm:"column:EX_smf" json:"smf"`
SMF string `gorm:"column:ex_smf" json:"smf"`
Kategori string `gorm:"column:ex_kategori" json:"kategori"`
}
+8
View File
@@ -0,0 +1,8 @@
package simrs
type Smfsimrs struct {
IDsmf string `gorm:"column:id_idsmf" json:"id_smf"`
Kodesmf string `gorm:"column:id_kodesmf" json:"kodesmf"`
Namasmf string `gorm:"column:nm_namasmf" json:"namasmf"`
Stsmf string `gorm:"column:st_smf" json:"stsmf"`
}
+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"`