Documentation ¶
Index ¶
- Variables
- func CleanUpCoordinates(coordInterface interface{}) ([]interface{}, error)
- type Address
- type AddressFhireR4
- type Appointment
- type AssignerFhireR4
- type At
- type Attested
- type Birthdata
- type CommonName
- type CountryFullInfo
- type CountryFullInfoResponse
- type Courses
- type Display
- type DistrictFullInfo
- type Donor
- type EncounterUHC
- type ExtensionFhireR4
- type ExternalId
- type ExternalIdSub
- type ExternalIdentifier
- type Feature
- type Flag
- type GenderFhireR4_
- type Genderdata
- type Geojson
- type Geometry
- type HealthUserUHC
- type I18NRegion
- type IdentifierFhireR4
- type IdentityUHC
- type IdentityUHCResponse
- type IndividualUHC
- type IndividualUHCResponse
- type IndividualUHCWithIdentity
- type IndividualUHCWithIdentityResponse
- type LinkFhireR4
- type Locale
- type LocationUHC
- type LocationUHCResponse
- type ManagingOrganizationFhireR4
- type MapWebData
- type MedicalData
- type NameFhireR4
- type OfficialName
- type Organization
- type PatientFhireR4
- type Period
- type PeriodFhireR4
- type PersonFhireR4
- type PersonalData
- type Phlebotomy
- type PhotoFhireR4
- type Place
- type ProcedureUHC
- type PublicId
- type Response
- type StateFullInfo
- type Telecom
- type TelecomFhireR4
- type TextFhireR4
- type TextI18n
- type Token
- type TypeFhireR4
- type User
- type ValueCodeableConceptFhireR4
- type Verification
- type Verified
- type WorldDataUHC
- type WorldDataUHCResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyFeatures []Feature
Functions ¶
func CleanUpCoordinates ¶
func CleanUpCoordinates(coordInterface interface{}) ([]interface{}, error)
Types ¶
type Address ¶
type Address struct { Type string `json:"type,omitempty" bson:"type,omitempty"` Use string `json:"use,omitempty" bson:"use,omitempty"` Text string `json:"text,omitempty" bson:"text,omitempty"` Comment string `json:"comment,omitempty" bson:"comment,omitempty"` Line []interface{} `json:"line,omitempty" bson:"line,omitempty"` Census string `json:"census,omitempty" bson:"census,omitempty"` PostalCode string `json:"postal_code,omitempty" bson:"postal_code,omitempty"` City string `json:"city,omitempty" bson:"city,omitempty"` DistrictIso string `json:"district_iso,omitempty" bson:"district_iso,omitempty"` StateIso string `json:"state_iso,omitempty" bson:"state_iso,omitempty"` CountryIso string `json:"country_iso,omitempty" bson:"country_iso,omitempty"` Period Period `json:"period,omitempty" bson:"period,omitempty"` }
type AddressFhireR4 ¶
type Appointment ¶
type Appointment struct {
ID string `json:"id,omitempty" bson:"id,omitempty"`
}
type AssignerFhireR4 ¶
type AssignerFhireR4 struct {
Display string `bson:"display" json:"display"`
}
type CommonName ¶
type CommonName struct {
NickName string `json:"nick_name,omitempty" bson:"nick_name,omitempty"`
}
type CountryFullInfo ¶
type CountryFullInfo struct { Country Display `json:"country_display,omitempty" bson:"country_display,omitempty"` CountryIso string `json:"county_iso,omitempty" bson:"county_iso,omitempty"` States map[string]StateFullInfo `json:"states,omitempty" bson:"states,omitempty"` }
type CountryFullInfoResponse ¶
type CountryFullInfoResponse struct { Code int `json:"code,omitempty" bson:"code,omitempty"` Message string `json:"message,omitempty" bson:"message,omitempty"` Data CountryFullInfo `json:"data,omitempty" bson:"data,omitempty"` }
type Courses ¶
type Courses struct {
LocalID string `json:"localId,omitempty" bson:"performed,omitempty"`
}
type Display ¶
type Display struct { Localname string `json:"localname,omitempty" bson:"localname,omitempty"` I18NRegion map[string]I18NRegion `json:"i18n,omitempty" bson:"i18n,omitempty"` }
type DistrictFullInfo ¶
type EncounterUHC ¶
type EncounterUHC struct { ID string `json:"id,omitempty" bson:"id,omitempty"` Status string `json:"status,omitempty" bson:"status,omitempty"` Appointment string `json:"appointment,omitempty" bson:"appointment,omitempty"` Period string `json:"period,omitempty" bson:"period,omitempty"` Length string `json:"length,omitempty" bson:"length,omitempty"` Location string `json:"location,omitempty" bson:"location,omitempty"` }
type ExtensionFhireR4 ¶
type ExtensionFhireR4 struct { URL string `bson:"url" json:"url"` ValueCodeableConcept ValueCodeableConceptFhireR4 `bson:"valueCodeableConcept" json:"valueCodeableConcept"` }
type ExternalId ¶
type ExternalIdSub ¶
type ExternalIdentifier ¶
type Feature ¶
type Feature struct { Type string `json:"type" bson:"type"` Geometry Geometry `json:"geometry" bson:"geometry"` // Coordinate Reference System Objects are not currently supported Properties map[string]interface{} `json:"properties,omitempty" bson:"properties,omitempty"` // Coordinate Reference System Objects are not currently supported }
type GenderFhireR4_ ¶
type GenderFhireR4_ struct {
Extension []ExtensionFhireR4 `bson:"extension" json:"extension"`
}
type Genderdata ¶
type Geojson ¶
type Geojson struct { Type string `json:"type" bson:"type"` CRS map[string]interface{} `json:"crs,omitempty" bson:"crs,omitempty"` // Coordinate Reference System Objects are not currently supported Name string `json:"name" bson:"name"` Features []Feature `json:"features" bson:"features"` }
func GeojsonFromFile ¶
func (*Geojson) CleanUpFeatures ¶
func (geojson *Geojson) CleanUpFeatures()
func (*Geojson) PropertyNames ¶
type Geometry ¶
type Geometry struct { Type string `json:"type" bson:"type"` BoundingBox []float64 `json:"bbox,omitempty" bson:"bbox,omitempty"` Coordinates interface{} `json:"coordinates,omitempty" bson:"coordinates,omitempty"` CRS map[string]interface{} `json:"crs,omitempty" bson:"crs,omitempty"` // Coordinate Reference System Objects are not currently supported }
type HealthUserUHC ¶
type HealthUserUHC struct { ID string `json:"id,omitempty" bson:"id,omitempty"` IndividualId string `json:"individual_id,omitempty" bson:"individual_id,omitempty"` MedicalData MedicalData `json:"medical_data,omitempty" bson:"medical_data,omitempty"` Courses Courses `json:"courses,omitempty" bson:"courses,omitempty"` Donor Donor `json:"donor,omitempty" bson:"donor,omitempty"` }
type I18NRegion ¶
type I18NRegion struct {
Common string `json:"common,omitempty" bson:"common,omitempty"`
}
type IdentifierFhireR4 ¶
type IdentifierFhireR4 struct { Use string `bson:"use" json:"use"` Type TypeFhireR4 `bson:"type" json:"type"` System string `bson:"system" json:"system"` Value string `bson:"value" json:"value"` Period PeriodFhireR4 `bson:"period" json:"period"` Assigner AssignerFhireR4 `bson:"assigner" json:"assigner"` }
type IdentityUHC ¶
type IdentityUHC struct { ID string `json:"id,omitempty" bson:"id,omitempty"` IndividualID string `json:"individual_id,omitempty" bson:"individual_id,omitempty"` Type string `json:"type,omitempty" bson:"type,omitempty"` Period string `json:"period,omitempty" bson:"period,omitempty"` Related string `json:"related,omitempty" bson:"related,omitempty"` Country string `json:"country,omitempty" bson:"country,omitempty"` OfficialDocType string `json:"official_doctype,omitempty" bson:"official_doctype,omitempty"` OfficialDocNumber string `json:"official_doc_number,omitempty" bson:"official_doc_number,omitempty"` OfficialName OfficialName `json:"official_name,omitempty" bson:"official_name,omitempty"` BirthData Birthdata `json:"birth_data,omitempty" bson:"birth_data,omitempty"` GenderData Genderdata `json:"gender_data,omitempty" bson:"gender_data,omitempty"` OfficialAddress []Address `json:"official_address,omitempty" bson:"official_address,omitempty"` RelatedPerson []interface{} `json:"related_person,omitempty" bson:"related_person,omitempty"` Verified Verified `json:"verified,omitempty" bson:"verified,omitempty"` Temporal bool `json:"temporal,omitempty" bson:"temporal,omitempty"` }
type IdentityUHCResponse ¶
type IdentityUHCResponse struct { Code int Message string Data []IdentityUHC }
type IndividualUHC ¶
type IndividualUHC struct { Type int `json:"type,omitempty" bson:"type,omitempty"` Display string `json:"display,omitempty" bson:"display,omitempty"` ID string `json:"id,omitempty" bson:"id,omitempty"` PublicId []PublicId `json:"public_id,omitempty" bson:"public_id,omitempty"` IdentityIDs []string `json:"identity_ids,omitempty" bson:"identity_ids,omitempty"` Verification Verification `json:"verification,omitempty" bson:"verification,omitempty"` PersonalData PersonalData `json:"personal_data,omitempty" bson:"personal_data,omitempty"` EncounterIds []string `json:"encounter_ids,omitempty" bson:"encounter_ids,omitempty"` Profiles []interface{} `json:"profiles,omitempty" bson:"profiles,omitempty"` }
type IndividualUHCResponse ¶
type IndividualUHCResponse struct { Code int `json:"code,omitempty" bson:"code,omitempty"` Message string `json:"message,omitempty" bson:"message,omitempty"` Data []IndividualUHC `json:"data,omitempty" bson:"data,omitempty"` Count int64 `json:"count,omitempty" bson:"count,omitempty"` }
type IndividualUHCWithIdentity ¶
type IndividualUHCWithIdentity struct { Individual IndividualUHC `json:"individual,omitempty" bson:"individual,omitempty"` Identity []IdentityUHC `json:"identity,omitempty" bson:"identity,omitempty"` }
type IndividualUHCWithIdentityResponse ¶
type IndividualUHCWithIdentityResponse struct { Code int `json:"code,omitempty" bson:"code,omitempty"` Message string `json:"message,omitempty" bson:"message,omitempty"` Data []IndividualUHCWithIdentity `json:"data,omitempty" bson:"data,omitempty"` Count int64 `json:"count,omitempty" bson:"count,omitempty"` }
type LinkFhireR4 ¶
type LocationUHC ¶
type LocationUHC struct { ID string `json:"id,omitempty" bson:"id,omitempty"` Name TextI18n `json:"name,omitempty" bson:"name,omitempty"` Status string `json:"status,omitempty" bson:"status,omitempty"` Type []string `json:"type,omitempty" bson:"type,omitempty"` PhysicalType string `json:"pysical_type,omitempty" bson:"pysical_type,omitempty"` Telecom []Telecom `json:"telecom,omitempty" bson:"telecom,omitempty"` MapWebData MapWebData `json:"map_web_data,omitempty" bson:"map_web_data,omitempty"` TimeAvailability string `json:"time_availability,omitempty" bson:"time_availability,omitempty"` Address Address `json:"address,omitempty" bson:"address,omitempty"` PartOfID string `json:"part_of_id,omitempty" bson:"part_of_id,omitempty"` ManagingOrganizationID string `json:"managing_organization_id,omitempty" bson:"managing_organization_id,omitempty"` ExternalIdentifier []ExternalIdentifier `json:"external_identifier,omitempty" bson:"external_identifier,omitempty"` Geojson Geojson `json:"geojson,omitempty" bson:"geojson,omitempty"` }
type LocationUHCResponse ¶
type LocationUHCResponse struct { Code int `json:"code,omitempty" bson:"code,omitempty"` Message string `json:"message,omitempty" bson:"message,omitempty"` Data []LocationUHC `json:"data,omitempty" bson:"data,omitempty"` Count int64 `json:"count,omitempty" bson:"count,omitempty"` }
type MapWebData ¶
type MapWebData struct {
Url string `json:"url,omitempty" bson:"url,omitempty"`
}
type MedicalData ¶
type MedicalData struct {
ID string `json:"id,omitempty" bson:"id,omitempty"`
}
type NameFhireR4 ¶
type OfficialName ¶
type OfficialName struct { ID string `json:"id,omitempty" bson:"id,omitempty"` GivenName string `json:"given_name,omitempty" bson:"given_name,omitempty"` MiddleName string `json:"middle_name,omitempty" bson:"middle_name,omitempty"` Surname1 string `json:"surname1,omitempty" bson:"surname1,omitempty"` Surname2 string `json:"surname2,omitempty" bson:"surname2,omitempty"` NameOrder []string `json:"name_order,omitempty" bson:"name_order,omitempty"` }
type Organization ¶
type PatientFhireR4 ¶
type PatientFhireR4 struct { ResourceType string `bson:"resourceType" json:"resourceType"` ID string `bson:"id" json:"id"` Text TextFhireR4 `bson:"text" json:"text"` Identifier []IdentifierFhireR4 `bson:"identifier" json:"identifier"` Active bool `bson:"active" json:"active"` Name []NameFhireR4 `bson:"name" json:"name"` Gender string `bson:"gender" json:"gender"` Gender_ GenderFhireR4_ `bson:"_gender" json:"_gender"` Photo []PhotoFhireR4 `bson:"photo" json:"photo"` ManagingOrganization ManagingOrganizationFhireR4 `bson:"managingOrganization" json:"managingOrganization"` Link []LinkFhireR4 `bson:"link" json:"link"` }
type PeriodFhireR4 ¶
type PeriodFhireR4 struct {
Start string `bson:"start" json:"start"`
}
type PersonFhireR4 ¶
type PersonFhireR4 struct { ResourceType string `bson:"resourceType" json:"resourceType"` ID string `bson:"id" json:"id"` Text TextFhireR4 `bson:"text" json:"text"` Identifier []IdentifierFhireR4 `bson:"identifier" json:"identifier"` Name []NameFhireR4 `bson:"name" json:"name"` Telecom []TelecomFhireR4 `bson:"telecom" json:"telecom"` Gender string `bson:"gender" json:"gender"` BirthDate string `bson:"birthDate" json:"birthDate"` Address []AddressFhireR4 `bson:"address" json:"address"` Active bool `bson:"active" json:"active"` Link []LinkFhireR4 `bson:"link" json:"link"` }
type PersonalData ¶
type PersonalData struct { MainIdentityId string `json:"main_identity_id,omitempty" bson:"main_identity_id,omitempty"` Address []Address `json:"address,omitempty" bson:"address,omitempty"` CommonName CommonName `json:"common_name,omitempty" bson:"common_name,omitempty"` Telecom []Telecom `json:"telecom,omitempty" bson:"telecom,omitempty"` Photo string `json:"photo,omitempty" bson:"photo,omitempty"` Ethic string `json:"ethic,omitempty" bson:"ethic,omitempty"` Religion string `json:"religion,omitempty" bson:"religion,omitempty"` }
type Phlebotomy ¶
type PhotoFhireR4 ¶
type ProcedureUHC ¶
type ProcedureUHC struct { ID string `json:"id,omitempty" bson:"id,omitempty"` Performed string `json:"performed,omitempty" bson:"performed,omitempty"` Performer string `json:"performer,omitempty" bson:"performer,omitempty"` State string `json:"state,omitempty" bson:"state,omitempty"` Success string `json:"success,omitempty" bson:"success,omitempty"` Interruption string `json:"interruption,omitempty" bson:"interruption,omitempty"` Complication string `json:"complication,omitempty" bson:"complication,omitempty"` Adversereaction string `json:"adversereaction,omitempty" bson:"adversereaction,omitempty"` Note string `json:"note,omitempty" bson:"note,omitempty"` Outcome string `json:"outcome,omitempty" bson:"outcome,omitempty"` }
type StateFullInfo ¶
type StateFullInfo struct { StateDisplay Display `json:"state_display,omitempty" bson:"state_display,omitempty"` StateIso string `json:"state_iso,omitempty" bson:"state_iso,omitempty"` Districts map[string]DistrictFullInfo `json:"districts,omitempty" bson:"districts,omitempty"` }
type TelecomFhireR4 ¶
type TextFhireR4 ¶
type TypeFhireR4 ¶
type User ¶
type User struct { Username string `bson:"username" json:"username,omitempty"` Password string `bson:"password" json:"password,omitempty"` Token string `bson:"token" json:"token,omitempty"` ID string `json:"id,omitempty"` Email string `json:"email"` Role []string `json:"role"` }
a struct to rep user user
type Verification ¶
type Verification struct { Type string `json:"type,omitempty" bson:"type,omitempty"` Done bool `json:"done,omitempty" bson:"done,omitempty"` Result string `json:"result,omitempty" bson:"result,omitempty"` Attested Attested `json:"attested,omitempty" bson:"attested,omitempty"` At At `json:"at,omitempty" bson:"at,omitempty"` }
type WorldDataUHC ¶
type WorldDataUHC struct { ID string `json:"id" bson:"id"` ExternalIdentifier []ExternalId `json:"external_identifier" bson:"external_identifier"` Level string `json:"level" bson:"level"` LevelType string `json:"level_type" bson:"level_type"` Sub []ExternalIdSub `json:"sub" bson:"sub"` Root []ExternalId `json:"root" bson:"root"` Flag Flag `json:"flag" bson:"flag"` Locale Locale `json:"locale" bson:"locale"` Geojson Geojson `json:"geojson" bson:"geojson"` Display Display `json:"display" bson:"display"` }
type WorldDataUHCResponse ¶
type WorldDataUHCResponse struct { Code int `json:"code,omitempty" bson:"code,omitempty"` Message string `json:"message,omitempty" bson:"message,omitempty"` Data []WorldDataUHC `json:"data,omitempty" bson:"data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.