Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMultiParser ¶
func NewMultiParser() cbcparser.CSVMultiParser
Types ¶
type HumanCBCResult ¶ added in v1.0.4
type HumanCBCResult struct { SampleID string `json:"sample_id"` Date string `json:"date"` Time string `json:"time"` PatientID string `json:"patient_id"` BirthDate string `json:"birth_date"` WBC cbcparser.CBCValue `json:"wbc"` LYM cbcparser.CBCValue `json:"lym"` MID cbcparser.CBCValue `json:"mid"` GRA cbcparser.CBCValue `json:"gra"` LYMPercent cbcparser.CBCValue `json:"lym_percent"` MIDPercent cbcparser.CBCValue `json:"mid_percent"` GRAPercent cbcparser.CBCValue `json:"gra_percent"` RBC cbcparser.CBCValue `json:"rbc"` HGB cbcparser.CBCValue `json:"hgb"` HCT cbcparser.CBCValue `json:"hct"` MCV cbcparser.CBCValue `json:"mcv"` MCH cbcparser.CBCValue `json:"mch"` MCHC cbcparser.CBCValue `json:"mchc"` RDWs cbcparser.CBCValue `json:"rdw_s"` RDWc cbcparser.CBCValue `json:"rdw_c"` PLT cbcparser.CBCValue `json:"plt"` PCT cbcparser.CBCValue `json:"pct"` MPV cbcparser.CBCValue `json:"mpv"` PDWs cbcparser.CBCValue `json:"pdw_s"` PDWc cbcparser.CBCValue `json:"pdw_c"` PLCC cbcparser.CBCValue `json:"plcc"` PLCR cbcparser.CBCValue `json:"plcr"` Type string `json:"type"` Warning string `json:"warning"` }
Structure to store data parsed from the text file exported by the HUMAN 30 CBC Machine.
func (HumanCBCResult) Parse ¶ added in v1.0.4
func (cbc HumanCBCResult) Parse(r io.Reader, normal_ranges *cbcparser.CBCNormalRange) (cbcparser.CBCWriter, error)
Parse reads from r and parses the data into an slice of a CBCWriter struct. The text file is expected to be in the tab-separated format. The first line of the file is expected to be the header.
The header is expected to be in the following format(with 52 columns):
Sample ID Date Time Patient ID Birth date WBC 10^9/l WBC flag LYM 10^9/l LYM flag MID 10^9/l MID flag GRA 10^9/l GRA flag LYM% % LYM% flag MID% % MID% flag GRA% % GRA% flag RBC 10^12/l RBC flag HGB g/dl HGB flag HCT % HCT flag MCV fl MCV flag MCH pg MCH flag MCHC g/dl MCHC flag RDWs fl RDWs flag RDWc % RDWc flag PLT 10^9/l PLT flag PCT % PCT flag MPV fl MPV flag PDWs fl PDWs flag PDWc % PDWc flag P-LCC 10^9/l P-LCC flag P-LCR % P-LCR flag Type Warning
type HumanCBCResultMulti ¶ added in v1.0.4
type HumanCBCResultMulti []HumanCBCResult
func (HumanCBCResultMulti) ParseMulti ¶ added in v1.0.4
func (HumanCBCResultMulti) ParseMulti(r io.Reader, normal_ranges *cbcparser.CBCNormalRange) (cbcparser.CBCMultiWriter, error)
MultiParse reads from r and parses the data into an slice of a CBCWriter struct.