onaio / fhir-tooling

A command line utility to support FHIR Core content authoring
Other
1 stars 1 forks source link

Check folder structure when publishing binaries #195

Open Wambere opened 1 month ago

Wambere commented 1 month ago

When publishing binary resources, we extract the name of the file from the composition resource and try to find the file in the project folder. This search assumes that the project is already organized in the recommended structure.

This issue is to implement a check to confirm that the folder is actually in the expected structure before trying to find the file. If the project is not set up in the recommended structure, we can attempt to find the file in the main project folder, and if that does not work, simply show an error and skip the file

pld commented 1 month ago

Makes sense, I'd argue beyond assisting with uploading, make it easier to reuse and find information in project folders we want their structure to be consistent and a method to enforce that, which this is

pld commented 3 weeks ago

Noted by @ndegwamartin this is also a prereq to use translation tooling

ndegwamartin commented 3 weeks ago

Proposed project app config and fhir resource content structure

pld commented 3 weeks ago

Sounds like we're not using that structure, only requirement to verify is

/configs
/fhir_content

I don't know if translations require an structure beyond that, I guess I have to assume the main IG/composition is in /configs