Documentation ¶
Index ¶
Constants ¶
const LanguageCodingSystem = "urn:ietf:bcp:47"
LanguageCodingSystem is the FHIR language coding system
const LanguageCodingVersion = ""
LanguageCodingVersion is the FHIR language value
Variables ¶
var AllAddressType = []AddressType{ AddressTypeHome, AddressTypeWork, }
AllAddressType contains a slice of all addresses types
var AllCalendarView = []CalendarView{ CalendarViewDay, CalendarViewWeek, }
AllCalendarView is a list of calendar views
var AllContentType = []ContentType{ ContentTypePng, ContentTypeJpg, ContentTypePdf, }
AllContentType is a list of all acceptable content types
var AllFieldType = []FieldType{ FieldTypeBoolean, FieldTypeTimestamp, FieldTypeNumber, FieldTypeInteger, FieldTypeString, }
AllFieldType is a list of all field types, used to simulate/map to a GraphQL enum
var AllGender = []Gender{ GenderMale, GenderFemale, GenderOther, GenderUnknown, GenderNonBinary, GenderGenderQueer, GenderTransGender, GenderAgender, GenderBigender, GenderTwoSpirit, GenderPreferNotToSay, }
AllGender is a list of known genders
var AllIdentificationDocType = []IdentificationDocType{ IdentificationDocTypeNationalid, IdentificationDocTypePassport, IdentificationDocTypeMilitary, }
AllIdentificationDocType contains a slice of all IdentificationDocTypes
var AllLanguage = []Language{ LanguageEn, LanguageSw, }
AllLanguage is a list of all allowed languages
var AllOperation = []Operation{ OperationLessThan, OperationLessThanOrEqualTo, OperationEqual, OperationGreaterThan, OperationGreaterThanOrEqualTo, OperationIn, OperationContains, }
AllOperation is a list of all valid operations for filter parameters
var AllPractitionerSpecialty = []PractitionerSpecialty{ PractitionerSpecialtyUnspecified, PractitionerSpecialtyAnaesthesia, PractitionerSpecialtyCardiothoracicSurgery, PractitionerSpecialtyClinicalMedicalGenetics, PractitionerSpecialtyClincicalPathology, PractitionerSpecialtyGeneralPathology, PractitionerSpecialtyAnatomicPathology, PractitionerSpecialtyClinicalOncology, PractitionerSpecialtyDermatology, PractitionerSpecialtyEarNoseAndThroat, PractitionerSpecialtyEmergencyMedicine, PractitionerSpecialtyFamilyMedicine, PractitionerSpecialtyGeneralSurgery, PractitionerSpecialtyGeriatrics, PractitionerSpecialtyImmunology, PractitionerSpecialtyInfectiousDisease, PractitionerSpecialtyInternalMedicine, PractitionerSpecialtyMicrobiology, PractitionerSpecialtyNeurosurgery, PractitionerSpecialtyObstetricsAndGynaecology, PractitionerSpecialtyOccupationalMedicine, PractitionerSpecialtyOphthalmology, PractitionerSpecialtyOrthopaedicSurgery, PractitionerSpecialtyOncology, PractitionerSpecialtyOncologyRadiotherapy, PractitionerSpecialtyPaediatricsAndChildHealth, PractitionerSpecialtyPalliativeMedicine, PractitionerSpecialtyPlasticAndReconstructiveSurgery, PractitionerSpecialtyPsychiatry, PractitionerSpecialtyPublicHealth, PractitionerSpecialtyRadiology, PractitionerSpecialtyUrology, }
AllPractitionerSpecialty is the set of known practitioner specialties
var AllSenderID = []SenderID{ SenderIDSLADE360, SenderIDBewell, }
AllSenderID defines a list of the sender IDs
var AllSortOrder = []SortOrder{ SortOrderAsc, SortOrderDesc, }
AllSortOrder is a list of all valid sort orders
var LanguageNames = map[Language]string{ LanguageEn: "English", LanguageSw: "Swahili", }
LanguageNames is a map of language codes to language names
Functions ¶
This section is empty.
Types ¶
type AddressType ¶
type AddressType string
AddressType represents the types of addresses we have
const ( AddressTypeHome AddressType = "HOME" AddressTypeWork AddressType = "WORK" )
AddressTypeHome is an example of an address type
func (AddressType) IsValid ¶
func (e AddressType) IsValid() bool
IsValid checks if the address type is valid
func (AddressType) MarshalGQL ¶
func (e AddressType) MarshalGQL(w io.Writer)
MarshalGQL converts address type into a valid JSON string
func (AddressType) String ¶
func (e AddressType) String() string
func (*AddressType) UnmarshalGQL ¶
func (e *AddressType) UnmarshalGQL(v interface{}) error
UnmarshalGQL converts the input, if valid, into an address type value
type CalendarView ¶
type CalendarView string
CalendarView is used to determine what view of a calendar to render
const ( // CalendarViewDay ... CalendarViewDay CalendarView = "DAY" // CalendarViewWeek ... CalendarViewWeek CalendarView = "WEEK" )
calendar view constants
func (CalendarView) IsValid ¶
func (e CalendarView) IsValid() bool
IsValid returns true if a calendar view is valid
func (CalendarView) MarshalGQL ¶
func (e CalendarView) MarshalGQL(w io.Writer)
MarshalGQL writes the calendar view value to the supplied writer
func (*CalendarView) UnmarshalGQL ¶
func (e *CalendarView) UnmarshalGQL(v interface{}) error
UnmarshalGQL converts the input value into a calendar view
type ContentType ¶
type ContentType string
ContentType defines accepted content types
const ( ContentTypePng ContentType = "PNG" ContentTypeJpg ContentType = "JPG" ContentTypePdf ContentType = "PDF" )
Constants used to map to allowed MIME types
func (ContentType) IsValid ¶
func (e ContentType) IsValid() bool
IsValid ensures that the content type value is valid
func (ContentType) MarshalGQL ¶
func (e ContentType) MarshalGQL(w io.Writer)
MarshalGQL writes the value of this enum to the supplied writer
func (ContentType) String ¶
func (e ContentType) String() string
func (*ContentType) UnmarshalGQL ¶
func (e *ContentType) UnmarshalGQL(v interface{}) error
UnmarshalGQL turns the supplied value into a content type value
type FieldType ¶
type FieldType string
FieldType is used to represent the GraphQL enum that is used for filter parameters
const ( // FieldTypeBoolean represents a boolean filter parameter FieldTypeBoolean FieldType = "BOOLEAN" // FieldTypeTimestamp represents a timestamp filter parameter FieldTypeTimestamp FieldType = "TIMESTAMP" // FieldTypeNumber represents a numeric (decimal or float) filter parameter FieldTypeNumber FieldType = "NUMBER" // FieldTypeInteger represents an integer filter parameter FieldTypeInteger FieldType = "INTEGER" // FieldTypeString represents a string filter parameter FieldTypeString FieldType = "STRING" )
func (FieldType) MarshalGQL ¶
MarshalGQL serializes the enum value to the supplied writer
func (*FieldType) UnmarshalGQL ¶
UnmarshalGQL checks whether the supplied value is a valid gqlgen enum and returns an error if it is not
type Gender ¶
type Gender string
Gender is a code system for administrative gender.
See: https://www.hl7.org/fhir/valueset-administrative-gender.html
const ( GenderMale Gender = "male" GenderFemale Gender = "female" GenderOther Gender = "other" GenderUnknown Gender = "unknown" GenderNonBinary Gender = "nonbinary" GenderGenderQueer Gender = "genderqueer" GenderTransGender Gender = "transgender" GenderAgender Gender = "agender" GenderBigender Gender = "bigender" GenderTwoSpirit Gender = "twospirit" GenderPreferNotToSay Gender = "prefer_not_to_say" )
gender constants
func (Gender) MarshalGQL ¶
MarshalGQL writes the enum value to the supplied writer
func (Gender) ToAdvantageGender ¶ added in v0.0.6
ToAdvantageGender converts the `male` and `female` genders to `MALE` and `FEMALE` respectively. This is used in support of advantage wrapper service and also ensure consistency of known gender types in go services.
func (*Gender) UnmarshalGQL ¶
UnmarshalGQL translates from the supplied value to a valid enum value
type IdentificationDocType ¶
type IdentificationDocType string
IdentificationDocType defines the various supplier IdentificationDocTypes
const ( IdentificationDocTypeNationalid IdentificationDocType = "NATIONALID" IdentificationDocTypePassport IdentificationDocType = "PASSPORT" IdentificationDocTypeMilitary IdentificationDocType = "MILITARY" )
IdentificationDocTypeNationalid is an example of a IdentificationDocType
func (IdentificationDocType) IsValid ¶
func (e IdentificationDocType) IsValid() bool
IsValid checks if the IdentificationDocType is valid
func (IdentificationDocType) MarshalGQL ¶
func (e IdentificationDocType) MarshalGQL(w io.Writer)
MarshalGQL converts IdentificationDocType into a valid JSON string
func (IdentificationDocType) String ¶
func (e IdentificationDocType) String() string
func (*IdentificationDocType) UnmarshalGQL ¶
func (e *IdentificationDocType) UnmarshalGQL(v interface{}) error
UnmarshalGQL converts the input, if valid, into an IdentificationDocType value
type Language ¶
type Language string
Language defines allowed languages for uploads
Constants used to map to allowed languages
func (Language) MarshalGQL ¶
MarshalGQL writes the value of this enum to the supplied writer
func (*Language) UnmarshalGQL ¶
UnmarshalGQL translates the input to a language type value
type Operation ¶
type Operation string
Operation is used to map to a gqlgen (GraphQL) enum that defines filter/comparison operations
const ( // OperationLessThan represents < in a GraphQL enum OperationLessThan Operation = "LESS_THAN" // OperationLessThanOrEqualTo represents <= in a GraphQL enum OperationLessThanOrEqualTo Operation = "LESS_THAN_OR_EQUAL_TO" // OperationEqual represents = in a GraphQL enum OperationEqual Operation = "EQUAL" // OperationGreaterThan represents > in a GraphQL enum OperationGreaterThan Operation = "GREATER_THAN" // OperationGreaterThanOrEqualTo represents >= in a GraphQL enum OperationGreaterThanOrEqualTo Operation = "GREATER_THAN_OR_EQUAL_TO" // OperationIn represents "in" (for queries that supply a list of parameters) // in a GraphQL enum OperationIn Operation = "IN" // OperationContains represents "contains" (for queries that check that a fragment is contained) // in a field(s) in a GraphQL enum OperationContains Operation = "CONTAINS" )
func (Operation) MarshalGQL ¶
MarshalGQL writes the enum value to the supplied writer
func (*Operation) UnmarshalGQL ¶
UnmarshalGQL confirms that an enum value is valid and returns an error if it is not
type PractitionerSpecialty ¶
type PractitionerSpecialty string
PractitionerSpecialty is a list of recognised health worker specialties.
See: https://medicalboard.co.ke/resources_page/gazetted-specialties/
const ( PractitionerSpecialtyUnspecified PractitionerSpecialty = "UNSPECIFIED" PractitionerSpecialtyAnaesthesia PractitionerSpecialty = "ANAESTHESIA" PractitionerSpecialtyCardiothoracicSurgery PractitionerSpecialty = "CARDIOTHORACIC_SURGERY" PractitionerSpecialtyClinicalMedicalGenetics PractitionerSpecialty = "CLINICAL_MEDICAL_GENETICS" PractitionerSpecialtyClincicalPathology PractitionerSpecialty = "CLINCICAL_PATHOLOGY" PractitionerSpecialtyGeneralPathology PractitionerSpecialty = "GENERAL_PATHOLOGY" PractitionerSpecialtyAnatomicPathology PractitionerSpecialty = "ANATOMIC_PATHOLOGY" PractitionerSpecialtyClinicalOncology PractitionerSpecialty = "CLINICAL_ONCOLOGY" PractitionerSpecialtyDermatology PractitionerSpecialty = "DERMATOLOGY" PractitionerSpecialtyEarNoseAndThroat PractitionerSpecialty = "EAR_NOSE_AND_THROAT" PractitionerSpecialtyEmergencyMedicine PractitionerSpecialty = "EMERGENCY_MEDICINE" PractitionerSpecialtyFamilyMedicine PractitionerSpecialty = "FAMILY_MEDICINE" PractitionerSpecialtyGeneralSurgery PractitionerSpecialty = "GENERAL_SURGERY" PractitionerSpecialtyGeriatrics PractitionerSpecialty = "GERIATRICS" PractitionerSpecialtyImmunology PractitionerSpecialty = "IMMUNOLOGY" PractitionerSpecialtyInfectiousDisease PractitionerSpecialty = "INFECTIOUS_DISEASE" PractitionerSpecialtyInternalMedicine PractitionerSpecialty = "INTERNAL_MEDICINE" PractitionerSpecialtyMicrobiology PractitionerSpecialty = "MICROBIOLOGY" PractitionerSpecialtyNeurosurgery PractitionerSpecialty = "NEUROSURGERY" PractitionerSpecialtyObstetricsAndGynaecology PractitionerSpecialty = "OBSTETRICS_AND_GYNAECOLOGY" PractitionerSpecialtyOccupationalMedicine PractitionerSpecialty = "OCCUPATIONAL_MEDICINE" PractitionerSpecialtyOphthalmology PractitionerSpecialty = "OPGTHALMOLOGY" PractitionerSpecialtyOrthopaedicSurgery PractitionerSpecialty = "ORTHOPAEDIC_SURGERY" PractitionerSpecialtyOncology PractitionerSpecialty = "ONCOLOGY" PractitionerSpecialtyOncologyRadiotherapy PractitionerSpecialty = "ONCOLOGY_RADIOTHERAPY" PractitionerSpecialtyPaediatricsAndChildHealth PractitionerSpecialty = "PAEDIATRICS_AND_CHILD_HEALTH" PractitionerSpecialtyPalliativeMedicine PractitionerSpecialty = "PALLIATIVE_MEDICINE" PractitionerSpecialtyPlasticAndReconstructiveSurgery PractitionerSpecialty = "PLASTIC_AND_RECONSTRUCTIVE_SURGERY" PractitionerSpecialtyPsychiatry PractitionerSpecialty = "PSYCHIATRY" PractitionerSpecialtyPublicHealth PractitionerSpecialty = "PUBLIC_HEALTH" PractitionerSpecialtyRadiology PractitionerSpecialty = "RADIOLOGY" PractitionerSpecialtyUrology PractitionerSpecialty = "UROLOGY" )
list of known practitioner specialties
func (PractitionerSpecialty) IsValid ¶
func (e PractitionerSpecialty) IsValid() bool
IsValid returns True if the practitioner specialty is valid
func (PractitionerSpecialty) MarshalGQL ¶
func (e PractitionerSpecialty) MarshalGQL(w io.Writer)
MarshalGQL writes the practitioner specialty to the supplied writer
func (PractitionerSpecialty) String ¶
func (e PractitionerSpecialty) String() string
func (*PractitionerSpecialty) UnmarshalGQL ¶
func (e *PractitionerSpecialty) UnmarshalGQL(v interface{}) error
UnmarshalGQL converts the supplied value to a practitioner specialty
type SenderID ¶
type SenderID string
SenderID defines the various AT Sender IDs that we have and can use
SenderIDSLADE360 is an example of a sender ID
func (SenderID) MarshalGQL ¶
MarshalGQL converts SenderID into a valid JSON string
func (*SenderID) UnmarshalGQL ¶
UnmarshalGQL converts the input, if valid, into a Sender ID value
type SortOrder ¶
type SortOrder string
SortOrder is used to represent map sort directions to a GraphQl enum
func (SortOrder) MarshalGQL ¶
MarshalGQL writes the sort order to the supplied writer as a quoted string
func (*SortOrder) UnmarshalGQL ¶
UnmarshalGQL confirms that the supplied value is a valid sort order and returns an error if it is not