{ "opencollection": "1.0.0", "info": { "name": "DIBBs eCR Refiner app-notifications simulator API", "version": "1.0.0" }, "items": [ { "info": { "name": "simulator", "type": "folder" }, "items": [ { "info": { "name": "Discover Configurations", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v1/simulator/discover-configurations", "body": { "type": "multipart-form", "data": [] } }, "docs": "Detects reportable conditions found in `uploaded_file` and matches them with existing configurations.\n\nConfigurations are returned to the client.\n\nArgs:\n uploaded_file (UploadFile | None, optional): The eCR file package uploaded by the user.\n simulator_zip_path (Path, optional): The path to the demo zip file.\n user (DbUser, optional): The logged in user.\n db (AsyncDatabaseConnection, optional): The database connection.\n logger (Logger, optional): The app logger.\n\nReturns:\n Disc" }, { "info": { "name": "Simulator Upload", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v1/simulator/upload", "body": { "type": "multipart-form", "data": [] } }, "docs": "Handles the simulator upload workflow for eICR refinement.\n\nSteps:\n1. Obtain the simulator eICR ZIP file (either uploaded by user or from local sample in\n refiner/assets/demo/mon-mothma-covid-influenza.zip).\n2. Read and validate the XML files (eICR and RR) from the ZIP (XMLFiles object).\n3. Call the service layer (`simulator`) to orchestrate the refinement workflow.\n4. For each unique reportable condition code found in the RR (and having a configuration),\n build a refined XML document and " }, { "info": { "name": "Download Refined Ecr", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v1/simulator/download/:filename", "params": [ { "name": "filename", "value": "", "type": "path" } ] }, "docs": "Stream refined eCR zip from S3 by filename.\n\nThe client provides only the filename (e.g. `_refined_ecr.zip`). The\nserver constructs the S3 object key based on the authenticated user." } ] } ], "bundled": true }