Documentation
¶
Index ¶
- func GetReport(obx []ReportModel) entity.Report
- func ToEntities(exams []ExamModel) []entity.Exam
- type ADT
- type CE
- type CM_MSG
- type CM_NDL
- type CX
- type EI
- type EventModel
- type ExamModel
- type HD
- type InsuranceModel
- type MessageModel
- type PL
- type PatientModel
- type ReportModel
- type VisitModel
- type XAD
- type XCN
- type XPN
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReport ¶ added in v0.6.0
func GetReport(obx []ReportModel) entity.Report
func ToEntities ¶ added in v0.6.0
Types ¶
type ADT ¶
type ADT struct {
MSH MessageModel `hl7:"MSH"`
EVN EventModel `hl7:"EVN"`
PID PatientModel `hl7:"PID"`
PV1 VisitModel `hl7:"PV1"`
IN1 InsuranceModel `hl7:"IN1"`
}
type CE ¶
type CE struct {
Identifier string `hl7:"1"`
Text string `hl7:"2"`
CodingSystem string `hl7:"3"`
AltIdentifier string `hl7:"4"`
AltText string `hl7:"5"`
AltCodingSystem string `hl7:"6"`
}
Coded Element
type CX ¶
type CX struct {
ID string `hl7:"1"`
CheckDigit string `hl7:"2"`
CheckDigitScheme string `hl7:"3"`
AssigningAuthority string `hl7:"4"`
IdentifierTypeCode string `hl7:"5"`
}
Extended Composite ID
type EI ¶
type EI struct {
EntityIdentifier string `hl7:"1"`
NamespaceID string `hl7:"2"`
UniversalID string `hl7:"3"`
UniversalIDType string `hl7:"4"`
}
Entity Identifier
type EventModel ¶
type ExamModel ¶
type ExamModel struct {
FacilityCode string `hl7:"MSH.4"`
MRN CX `hl7:"PID.3"`
Accession string `hl7:"ORC.2"`
FillerOrderNo string `hl7:"ORC.3"`
OrderStatus string `hl7:"ORC.5"`
OrderDT string `hl7:"ORC.9"`
OrderingProvider XCN `hl7:"ORC.12"`
Service CE `hl7:"OBR.4"`
StatusDT string `hl7:"OBR.22"`
}
type HD ¶
type HD struct {
NamespaceID string `hl7:"1"`
UniversalID string `hl7:"2"`
UniversalIDType string `hl7:"3"`
}
Hierarchic Designator
type InsuranceModel ¶
type MessageModel ¶
type MessageModel struct {
FieldSeparator string `hl7:"MSH.1"`
EncodingChars string `hl7:"MSH.2"`
SendingApp string `hl7:"MSH.3"`
SendingFac string `hl7:"MSH.4"`
ReceivingApp string `hl7:"MSH.5"`
ReceivingFac string `hl7:"MSH.6"`
DateTime string `hl7:"MSH.7"`
Type CM_MSG `hl7:"MSH.9"`
ControlID string `hl7:"MSH.10"`
ProcessingID string `hl7:"MSH.11"`
Version string `hl7:"MSH.12"`
}
func (*MessageModel) ToEntity ¶
func (m *MessageModel) ToEntity() entity.Message
type PL ¶
type PL struct {
PointOfCare string `hl7:"1"`
Room string `hl7:"2"`
Bed string `hl7:"3"`
Facility string `hl7:"4"`
LocationStatus string `hl7:"5"`
PersonLocationType string `hl7:"6"`
Building string `hl7:"7"`
Floor string `hl7:"8"`
LocationDescription string `hl7:"9"`
}
Person Location
type PatientModel ¶
type PatientModel struct {
MRN CX `hl7:"PID.3"`
Name XPN `hl7:"PID.5"`
DOB string `hl7:"PID.7"`
Sex string `hl7:"PID.8"`
SSN string `hl7:"PID.19"`
}
func (*PatientModel) ToEntity ¶
func (p *PatientModel) ToEntity() entity.Patient
type ReportModel ¶
type VisitModel ¶
type VisitModel struct {
Facility string `hl7:"MSH.4"`
MRN CX `hl7:"PID.3"`
VisitNo string `hl7:"PV1.19"`
Class string `hl7:"PV1.2"`
AssignedLocation PL `hl7:"PV1.3"`
}
func (*VisitModel) ToEntity ¶
func (v *VisitModel) ToEntity() entity.Visit
type XAD ¶
type XAD struct {
StreetAddress string `hl7:"1"`
OtherDesignation string `hl7:"2"`
City string `hl7:"3"`
State string `hl7:"4"`
Zip string `hl7:"5"`
Country string `hl7:"6"`
}
Extended Address
Click to show internal directories.
Click to hide internal directories.