simulator
Simulator Upload
Changed onHandles the simulator upload workflow for eICR refinement.
Steps:
- Obtain the simulator eICR ZIP file (either uploaded by user or from local sample in refiner/assets/demo/mon-mothma-covid-influenza.zip).
- Read and validate the XML files (eICR and RR) from the ZIP (XMLFiles object).
- Call the service layer (simulator) to orchestrate the refinement workflow.
- For each unique reportable condition code found in the RR (and having a configuration), build a refined XML document and collect metadata. The code used is the actual code from the RR that triggered the match, not a canonical or database code.
- Package all refined and original files into a ZIP.
- Upload the ZIP to S3 and get a download URL.
- Construct and return the response model for the frontend, including per-condition refinement results and a link to the ZIP of outputs.
Any exceptions during file processing or workflow execution are caught and mapped to HTTP errors.
post/api/v1/simulator/upload
Request
- The document declares no server URL.
- Auth: none declared
Response
Successful Response
Changes
- info
endpoint added
- info