srdc / tofhir

Mapping toolset to migrate/transform existing datasets to HL7 FHIR
Apache License 2.0
8 stars 1 forks source link

Removal or alias change of a schema from a mapping #197

Closed camemre49 closed 1 day ago

camemre49 commented 1 month ago

When multiple schemas are added to a mapping and their source contexts are defined, removing a schema from the mapping does not automatically remove the associated source context in the job. This leads to conflicts between the remaining source contexts and schemas in the mapping. To resolve this, the related source context should be deleted from all jobs that include the mapping whenever a schema is removed from that mapping. A similar issue is encountered on schema alias change .

Possible scenarios:

camemre49 commented 1 month ago

According to the README file, the data source names of a job, source context names of a job, and schema aliases of mappings included in that job must be identical. However, since a job can have multiple mappings and a mapping can be included in multiple jobs, names must be maintained continuously. Some possible solutions: