Documentation ¶
Overview ¶
Package gender contains the functionality to convert gender values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Convertor ¶
type Convertor struct {
// contains filtered or unexported fields
}
Convertor converts gender between pathway, HL7 and internal representations.
func NewConvertor ¶
NewConvertor returns a new gender Convertor based on the HL7 config.
func (Convertor) HL7ToFHIR ¶
func (gc Convertor) HL7ToFHIR(gender string) cpb.AdministrativeGenderCode_Value
HL7ToFHIR returns the FHIR representation for the given HL7 gender.
func (Convertor) HL7ToInternal ¶
HL7ToInternal returns the Internal representation for the given HL7 gender.
func (Convertor) InternalToHL7 ¶
InternalToHL7 returns the HL7 representation for the given Internal gender.
Click to show internal directories.
Click to hide internal directories.