UCLH-DHCT / emap

All core Emap functions (monorepo)
2 stars 0 forks source link

Identify and handle data types using code lookups #45

Open jeremyestein opened 1 month ago

jeremyestein commented 1 month ago

Epic: #29

As found in: https://github.com/UCLH-Scientific-Computing/ICU_HL7_Data_Extraction/tree/main/data/hl7_data_type_requirements

There are numerical codes that tell you what type of measurement is being supplied. These will need to be interpreted somewhere along the pipeline.

I think our general principle is that the data sources should be responsible for understanding the data and should turn the interchange message into something fully digested for the core proc to put in star.

Perhaps a simple CSV file in the code of the waveform-reader, that maps to a "source_id" + "description" in star? Any code not on the list will be ignored, and it would need a (usually) simple source code change to add a new one.

jeremyestein commented 3 weeks ago

It also is the easiest way we can determine the sampling rate, as the HL7 messages themselves don't say.