Documentation
¶
Index ¶
- type Base
- type Exam
- type ExamStatus
- type HL7Repo
- func (h *HL7Repo) GetProcedures(ctx context.Context, cursorID int32) ([]byte, error)
- func (h *HL7Repo) SaveORM(ctx context.Context, orm *Order) error
- func (h *HL7Repo) SaveORU(ctx context.Context, oru *Observation) error
- func (h *HL7Repo) UpdateProcedures(ctx context.Context, data []byte) (requested, updated int, err error)
- type MRN
- type Message
- type Observation
- type Order
- type Patient
- type Physician
- type Procedure
- type Report
- type Site
- type Visit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exam ¶
type Exam struct {
Base
Accession string
Priority string
Procedure Procedure
CurrentStatus ExamStatus
Provider Physician
Site Site
Scheduled time.Time
Begin time.Time
End time.Time
Cancelled time.Time
}
func DBtoExam ¶
func DBtoExam(exam database.GetExamBySendingAppAccessionRow) Exam
type ExamStatus ¶ added in v0.6.0
type ExamStatus string
const ( ExamScheduled ExamStatus = "SC" ExamInProgress ExamStatus = "IP" ExamComplete ExamStatus = "CM" ExamCancelled ExamStatus = "CA" )
func NewExamStatus ¶ added in v0.6.0
func NewExamStatus(s string) ExamStatus
func (ExamStatus) String ¶ added in v0.6.0
func (o ExamStatus) String() string
type HL7Repo ¶ added in v0.6.3
func (*HL7Repo) GetProcedures ¶ added in v0.6.11
type Observation ¶ added in v0.6.3
type Patient ¶
type Patient struct {
Base
Name objects.Name
DOB time.Time
Sex string
// TODO: encrypt SSN
SSN objects.SSN
HomePhone objects.PhoneNumber
WorkPhone objects.PhoneNumber
CellPhone objects.PhoneNumber
}
func DBtoPatient ¶
type Physician ¶
type Physician struct {
Base
Name objects.Name
AppCode string
NPI string
Specialty objects.Specialty
}
func DBtoPhysician ¶
type Report ¶
type Report struct {
Base
Radiologist Physician
Body string
Impression string
Status objects.ReportStatus
DictationStart time.Time
DictationEnd time.Time
SubmittedDT time.Time
}
func DBtoReport ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.