Open Nelly-Barret opened 3 weeks ago
After some thinking, it appears that there is no way to transform FHIR profiles to an MCD/MLD because (i) they need to be on a FHIR server to have access to the "original" resource types before applying the profiles, and (ii) FHIR is a standard, not a data model.
My current idea is to:
I think I need to go the other way around, i.e., generate the FHIR profiles from my Python classes. It seems that I can:
When building a relational database, we usually:
For now, whenever I want to change something (an attribute, a type, etc) in the data model, I have to update the model it in many places:
Therefore, it is very hard to maintain all those "data models" (drawings, classes, UML, etc) up-to-date in all places.
One first thing could be to extract/get the physical model from the database itself, e.g., with the PyCharm database view
Now, the thing is to understand how to easily go from one another for the logical model, the Python classes and the FHIR entities.
With such a "transformator(FHIR profiles) -> conceptual model", we could change something in the FHIR profiles and immedialtely get the logical+physical models and even maybe the Python classes.