Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Medicaide uses a number if data structures to represent entities like patients, observations, results etc. These are specified below for reference. Interfaces like HL7 and GDT map data from external sources to these data structures and back. See subsequent chapters on specific interface services for details on these mapping processes.

Expand
titlePatient
Advanced code syntax highlighter
version2
{"code":"type PatientPtr struct {\n\tPID_intern     *int32               `json:\"patient_id\"`\n\tNames          *[]PatientnamePtr    `json:\"patientname\"`\n\tAlt_ids        *[]Patient_alt_idPtr `json:\"patient_alt_id\"`\n\tAddresses      *[]AddressPtr        `json:\"address\"`\n\tInsurance      *[]Insurance_infoPtr `json:\"insurance\"`\n\tPatient_id     *string              `hl7:\"PID.2.0\" json:\"\"`\n\tDob            *time.Time           `hl7:\"PID.7\" json:\"dob\"`\n\tGender         *string              `hl7:\"PID.8\" json:\"gender\"`\n\tRace           *string              `hl7:\"PID.10\" json:\"race\"`\n\tTelephone      *string              `hl7:\"PID.13.0\" json:\"telephone\"`\n\tEmail          *string              `hl7:\"PID.13.3\" json:\"email\"`\n\tLanguage       *string              `hl7:\"PID.15\" json:\"language\"`\n\tMarital_status *string              `hl7:\"PID.16\" json:\"marital_status\"`\n\tReligion       *string              `hl7:\"PID.17\" json:\"religion\"`\n\tLast_update    *time.Time           `json:\"last_update\"`\n\tCreated        *time.Time           `json:\"created\"`\n\tStatus         *int32               `json:\"status\"`\n\tPriority       *int32               `json:\"priority\"`\n}","theme":"coy","language":"go","showLineNumbers":true}
Expand
titlePatientname
Advanced code syntax highlighter
version2
{"code":"type PatientnamePtr struct {\n\tPatient_id          *int32\n\tName_type_code      *string `hl7:\"PID.5.6\"`\n\tSurname             *string `hl7:\"PID.5.0.0\"`\n\tSurname_prefix      *string `hl7:\"PID.5.0.1\"`\n\tGiven_name          *string `hl7:\"PID.5.1\"`\n\tFurther_given_names *string `hl7:\"PID.5.2\"`\n\tSuffix              *string `hl7:\"PID.5.3\"`\n\tPrefix              *string `hl7:\"PID.5.4\"`\n\tDegree              *string `hl7:\"PID.5.5\"`\n}","theme":"coy","language":"go","showLineNumbers":true}
Expand
titleAddress
Advanced code syntax highlighter
version2
{"code":"type AddressPtr struct {\n\tAddress_type   *string `hl7:\"PID.11.6\"`\n\tStreet_address *string `hl7:\"PID.11.0\"`\n\tCity           *string `hl7:\"PID.11.2\"`\n\tState          *string `hl7:\"PID.11.3\"`\n\tZip_code       *string `hl7:\"PID.11.4\"`\n\tCountry        *string `hl7:\"PID.11.5\"`\n}","theme":"coy","language":"go","showLineNumbers":true}
Expand
titleInsurance
Advanced code syntax highlighter
version2
{"code":"type Insurance_infoPtr struct {\n\tInsurance_company    *string `hl7:\"IN1.3.0\"`\n\tName_of_insured      *string `hl7:\"IN1.15\"`\n\tPolicy_number        *string `hl7:\"IN1.35\"`\n\tCompany_region       *string\n\tInsurance_company_id *string `hl7:\"IN1.2.0\"`\n\tInsurance_status     *string\n\tDmp_indicator        *string\n}","theme":"coy","language":"go","showLineNumbers":true}
Expand
titleAlt_id
Advanced code syntax highlighter
version2
{"code":"type Patient_alt_idPtr struct { // maybe use definition for PID.4 Alternate Patient ID - PID?\n\tOther_system *string\n\tAlt_id       *string\n}","theme":"coy","language":"go","showLineNumbers":true}