This commit is contained in:
2025-05-10 14:35:26 +07:00
parent 3e98501017
commit 4d3cc4b7d9
36 changed files with 3651 additions and 279 deletions

No files matched your search

+401
View File
@@ -0,0 +1,401 @@
package location
//
//
//// Membuat instance Location
//fhirLocation := &models.Location{
//ResourceType: "Location",
//ID: primitive.NewObjectID(),
//}
//
//// Identifier
//fhirLocation.Identifier = []_struct.Identifier{
//{
//Use: "official",
//Type: _struct.CodeableConcept{
//Coding: []_struct.Coding{
//{
//System: "",
//Version: "",
//Code: "",
//Display: "ID m_ruang SIMRS",
//UserSelected: true,
//},
//},
//Text: "ID m_ruang SIMRS",
//},
//System: "",
//Value: "227",
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//Assigner: _struct.Reference{
//Reference: "",
//Display: "",
//},
//},
//{
//Use: "official",
//Type: _struct.CodeableConcept{
//Coding: []_struct.Coding{
//{
//System: "",
//Version: "",
//Code: "",
//Display: "Kode Ruang",
//UserSelected: true,
//},
//},
//Text: "Kode Ruang",
//},
//System: "",
//Value: "KL-BDH",
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//Assigner: _struct.Reference{
//Reference: "",
//Display: "",
//},
//},
//}
//
//// Status
//fhirLocation.Status = "active"
//
//// OperationalStatus
//fhirLocation.OperationalStatus = _struct.Coding{
//System: "",
//Version: "",
//Code: "",
//Display: "",
//UserSelected: false,
//}
//
//// Name
//fhirLocation.Name = "Poliklinik Bedah TKV"
//
//// Alias
//fhirLocation.Alias = []string{"Poli Bedah TKV", "Klinik Bedah TKV", "Bedah TKV"}
//
//// Description
//fhirLocation.Description = "Lokasi layanan rawat jalan untuk pasien bedah TKV"
//
//// Mode
//fhirLocation.Mode = "instance"
//
//// Type
//fhirLocation.Type = []_struct.CodeableConcept{
//{
//Coding: []_struct.Coding{
//{
//System: "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
//Version: "",
//Code: "SU",
//Display: "Surgery clinic",
//UserSelected: false,
//},
//},
//Text: "Poliklinik Rawat Jalan",
//},
//{
//Coding: []_struct.Coding{
//{
//System: "",
//Version: "",
//Code: "IRJA",
//Display: "Instalasi Rawat Jalan",
//UserSelected: false,
//},
//},
//Text: "Instalasi Rawat Jalan",
//},
//{
//Coding: []_struct.Coding{
//{
//System: "",
//Version: "",
//Code: "SUBSISTEM",
//Display: "Rawat Jalan Reguler",
//UserSelected: false,
//},
//},
//Text: "Rawat Jalan Reguler",
//},
//}
//
//// Contact
//fhirLocation.Contact = []_struct.ExtendedContactDetail{
//{
//Purpose: _struct.CodeableConcept{
//Coding: []_struct.Coding{
//{
//System: "http://terminology.hl7.org/CodeSystem/contactentity-type",
//Code: "PATINF",
//Display: "Patient",
//},
//},
//},
//Telecom: []_struct.ContactPoint{
//{
//System: "pager",
//Value: "1243",
//Use: "work",
//Rank: 1,
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//},
//},
//Address: _struct.Address{
//Use: "work",
//Type: "both",
//Text: "Jl. Jaksa Agung Suprapto No.2, Klojen, Kec. Klojen, Kota Malang, Jawa Timur 65112",
//Line: []string{"Jl. Jaksa Agung Suprapto No.2"},
//Village: "Klojen",
//District: "Klojen",
//City: "Malang",
//State: "Jawa Timur",
//PostalCode: "65112",
//Country: "Indonesia",
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//Extension: []_struct.Extension{
//{
//URL: "",
//Extension: []_struct.ExtensionDetail{
//{
//URL: "state",
//ValueDisplay: "Jawa Timur",
//ValueCode: "35",
//},
//{
//URL: "city",
//ValueDisplay: "Malang",
//ValueCode: "3573",
//},
//{
//URL: "district",
//ValueDisplay: "Klojen",
//ValueCode: "3573030",
//},
//{
//URL: "village",
//ValueDisplay: "Klojen",
//ValueCode: "3573030008",
//},
//{
//URL: "rt",
//ValueDisplay: "",
//ValueCode: "",
//},
//{
//URL: "rw",
//ValueDisplay: "",
//ValueCode: "",
//},
//},
//},
//},
//},
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//},
//}
//
//// Address
//fhirLocation.Address = _struct.Address{
//Use: "work",
//Type: "both",
//Text: "Jl. Jaksa Agung Suprapto No.2, Klojen, Kec. Klojen, Kota Malang, Jawa Timur 65112",
//Line: []string{"Jl. Jaksa Agung Suprapto No.2"},
//Village: "Klojen",
//District: "Klojen",
//City: "Malang",
//State: "Jawa Timur",
//PostalCode: "65112",
//Country: "Indonesia",
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//}
//
//// Form
//fhirLocation.Form = []_struct.CodeableConcept{
//{
//Coding: []_struct.Coding{
//{
//System: "",
//Version: "",
//Code: "",
//Display: "",
//UserSelected: false,
//},
//},
//Text: "",
//},
//}
//
//// Position
//fhirLocation.Position = _struct.Position{
//Longitude: 112.630348,
//Latitude: -7.981894,
//Altitude: 440,
//}
//
//// ManagingOrganization
//fhirLocation.ManagingOrganization = _struct.Reference{
//Reference: "Organization/1",
//Display: "RSUD dr. Saiful Anwar Jatim Prov",
//}
//
//// PartOf
//fhirLocation.PartOf = _struct.Reference{
//Reference: "",
//Display: "",
//}
//
//// Characteristic
//fhirLocation.Characteristic = []_struct.CodeableConcept{
//{
//Coding: []_struct.Coding{
//{
//System: "",
//Version: "",
//Code: "",
//Display: "",
//UserSelected: false,
//},
//},
//Text: "",
//},
//}
//
//// HoursOfOperation
//fhirLocation.HoursOfOperation = []_struct.HoursOfOperation{
//{
//AvailableTime: []_struct.AvailableTime{
//{
//DaysOfWeek: []string{"mon", "tue", "wed", "thu", "fri"},
//AllDay: false,
//AvailableStartTime: "07:00",
//AvailableEndTime: "15:00",
//},
//},
//NotAvailableTime: []_struct.NotAvailableTime{
//{
//Description: "",
//During: _struct.During{
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//},
//},
//},
//},
//}
//
//// VirtualService
//fhirLocation.VirtualService = []_struct.VirtualService{
//{
//ChannelType: _struct.Coding{
//System: "",
//Version: "",
//Code: "",
//Display: "",
//UserSelected: false,
//},
//AddressUrl: "",
//AddressString: "",
//AddressContactPoint: _struct.ContactPoint{
//System: "",
//Value: "",
//Use: "",
//Rank: 0,
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//},
//AddressExtendedContactDetail: _struct.ExtendedContactDetail{
//Purpose: _struct.CodeableConcept{
//Coding: []_struct.Coding{
//{
//System: "",
//Code: "",
//Display: "",
//},
//},
//},
//Name: []_struct.HumanName{
//{
//Use: "",
//Text: "",
//Family: "",
//Given: []string{},
//Prefix: []string{},
//Suffix: []string{},
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//},
//},
//Telecom: []_struct.ContactPoint{
//{
//System: "",
//Value: "",
//Use: "",
//Rank: 0,
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//},
//},
//Address: _struct.Address{
//Use: "",
//Type: "",
//Text: "",
//Line: []string{},
//City: "",
//District: "",
//State: "",
//PostalCode: "",
//Country: "",
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//},
//Organization: _struct.Reference{
//Reference: "",
//Display: "",
//},
//Period: _struct.Period{
//Start: "",
//End: "",
//},
//},
//AdditionalInfo: []string{},
//MaxParticipants: 0,
//SessionKey: "",
//},
//}
//
//// Endpoint
//fhirLocation.Endpoint = []_struct.Reference{
//{
//Reference: "",
//Display: "",
//},
//}