1 - fetch schema from FHIR ex. Coding.schema()['properties']['code']['description'] - need function to clean schema() regex
2- add function to extract element_required for all destination keys required and add keys to "destination_key_required": []
3 - pull out FHIR hierarchy from enum_reference_types ex.
{'title': 'Part of larger study', 'description': 'A larger research study of which this particular study is a component or step.', 'element_property': True, 'enum_reference_types': ['ResearchStudy'], 'type': 'array', 'items': {'type': 'Reference'}}
4 - map node relation based on uppercase classes ex. Patient.Extension.valueInteger extension -> patient etc.
1 - fetch schema from FHIR ex.
Coding.schema()['properties']['code']['description']
- need function to clean schema() regex 2- add function to extract element_required for all destination keys required and add keys to"destination_key_required": []
3 - pull out FHIR hierarchy from enum_reference_types ex.{'title': 'Part of larger study', 'description': 'A larger research study of which this particular study is a component or step.', 'element_property': True, 'enum_reference_types': ['ResearchStudy'], 'type': 'array', 'items': {'type': 'Reference'}}
4 - map node relation based on uppercase classes ex.Patient.Extension.valueInteger
extension -> patient etc.