write an automatic transformer that transforms a bundle of FHIR resources into an openEHR instance
Given a bundle containing FHIR resources, the transformator shall produce the corresponding openEHR instance
As a first shot the bundle contains only those resources belonging to a single openEHR instance. How could the process look like if the bundle contains the data belonging to multiple openEHR instances. How are the resources inside the bundle grouped to packs, so that they can seperately be transformed into openEHR instances?
As a testcase for the process, use the hand written pair of (FHIR resources/template instance) from the paths \Archetype_2_StructureDef\src\main\resources\StructureDefs\instances\anamnese_short_example.xml \Archetype_2_StructureDef\src\main\resources\Templates\instances\anamnese_short_example.json