Closed as not planned
Description
Description
Currently if the user doesn't use DataGenerator
, you end up with something like:
@hc.ehr(workflow="sign-note-inpatient")
def load_data_in_client(self) -> CcdData:
with open("/path/to/cda/data.xml", "r") as file:
xml_string = file.read()
return CcdData(cda_xml=xml_string)
It would be nice to abstract this away into a utility function so it will look something more like:
from healthchain.loaders.ccdloader import CcdLoader
@hc.ehr(workflow="sign-note-inpatient")
def load_data_in_client(self) -> CcdData:
cda_test_data = CcdLoader('path/to/directory/of/cda/xmls')
return cda_test_data
- some configs on the order to pick files (random, in order)
Context
just less faff innit
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done