{"openapi":"3.1.0","info":{"title":"Independent Acceptance Labs","description":"Synthetic fixtures only. Independent implementation; no client deployment claim. Bounded synthetic demonstrations with session-scoped 24-hour report retention. Public runtime: TypeScript Workers with D1. Python/FastAPI is the executable reference implementation. Native run hashes use canonical JSON numbers; 21 and 21.0 are equivalent.","version":"1.0"},"paths":{"/lab-api/data-quality/fixtures":{"get":{"summary":"Quality Fixture","operationId":"quality_fixture_lab_api_data_quality_fixtures_get","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineInput"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/data-quality/run":{"post":{"summary":"Quality Run","operationId":"quality_run_lab_api_data_quality_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/data-quality/regression/inject":{"post":{"summary":"Quality Inject","operationId":"quality_inject_lab_api_data_quality_regression_inject_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityReport"}}}}}}},"/lab-api/data-quality/regression/reset":{"post":{"summary":"Quality Reset","operationId":"quality_reset_lab_api_data_quality_regression_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityReport"}}}}}}},"/lab-api/data-quality/runs":{"get":{"summary":"Quality Runs","operationId":"quality_runs_lab_api_data_quality_runs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/QualityReport"},"type":"array","title":"Response Quality Runs Lab Api Data Quality Runs Get"}}}}}}},"/lab-api/data-quality/runs/{run_id}/failures":{"get":{"summary":"Quality Failures","operationId":"quality_failures_lab_api_data_quality_runs__run_id__failures_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/data-quality/runs/{run_id}/lineage/{record_id}":{"get":{"summary":"Quality Lineage","operationId":"quality_lineage_lab_api_data_quality_runs__run_id__lineage__record_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/data-quality/runs/{run_id}/comparison/{other_run_id}":{"get":{"summary":"Quality Comparison","operationId":"quality_comparison_lab_api_data_quality_runs__run_id__comparison__other_run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"other_run_id","in":"path","required":true,"schema":{"type":"string","title":"Other Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/operations-exceptions/fixtures":{"get":{"summary":"Operations Fixture","operationId":"operations_fixture_lab_api_operations_exceptions_fixtures_get","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsInput"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/operations-exceptions/run":{"post":{"summary":"Operations Run","operationId":"operations_run_lab_api_operations_exceptions_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/operations-exceptions/regression/inject":{"post":{"summary":"Operations Inject","operationId":"operations_inject_lab_api_operations_exceptions_regression_inject_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsReport"}}}}}}},"/lab-api/operations-exceptions/regression/reset":{"post":{"summary":"Operations Reset","operationId":"operations_reset_lab_api_operations_exceptions_regression_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsReport"}}}}}}},"/lab-api/operations-exceptions/runs/{run_id}/exceptions":{"get":{"summary":"Operations Exceptions","operationId":"operations_exceptions_lab_api_operations_exceptions_runs__run_id__exceptions_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/erp-sync/fixtures":{"get":{"summary":"Erp Fixture","operationId":"erp_fixture_lab_api_erp_sync_fixtures_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncInput"}}}}}}},"/lab-api/erp-sync/run":{"post":{"summary":"Erp Run","operationId":"erp_run_lab_api_erp_sync_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErpReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/erp-sync/regression/inject":{"post":{"summary":"Erp Inject","operationId":"erp_inject_lab_api_erp_sync_regression_inject_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErpReport"}}}}}}},"/lab-api/erp-sync/regression/reset":{"post":{"summary":"Erp Reset","operationId":"erp_reset_lab_api_erp_sync_regression_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErpReport"}}}}}}},"/lab-api/erp-sync/retry/{exception_id}":{"post":{"summary":"Erp Retry","operationId":"erp_retry_lab_api_erp_sync_retry__exception_id__post","parameters":[{"name":"exception_id","in":"path","required":true,"schema":{"type":"string","title":"Exception Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErpReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/erp-sync/runs/{run_id}/exceptions":{"get":{"summary":"Erp Exceptions","operationId":"erp_exceptions_lab_api_erp_sync_runs__run_id__exceptions_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/erp-sync/runs/{run_id}/reconciliation":{"get":{"summary":"Erp Reconciliation","operationId":"erp_reconciliation_lab_api_erp_sync_runs__run_id__reconciliation_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/health":{"get":{"summary":"Health","operationId":"health_lab_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/lab-api/healthcare-integration/fixtures":{"get":{"summary":"Healthcare Fixtures","operationId":"healthcare_fixtures_lab_api_healthcare_integration_fixtures_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthcareInput"}}}}}}},"/lab-api/healthcare-integration/validate":{"post":{"summary":"Healthcare Validate","operationId":"healthcare_validate_lab_api_healthcare_integration_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthcareRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthcareReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/healthcare-integration/scenarios/run":{"post":{"summary":"Healthcare Scenarios","operationId":"healthcare_scenarios_lab_api_healthcare_integration_scenarios_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthcareReport"}}}}}}},"/lab-api/healthcare-integration/regression/inject":{"post":{"summary":"Healthcare Inject","operationId":"healthcare_inject_lab_api_healthcare_integration_regression_inject_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthcareReport"}}}}}}},"/lab-api/healthcare-integration/regression/reset":{"post":{"summary":"Healthcare Reset","operationId":"healthcare_reset_lab_api_healthcare_integration_regression_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthcareReport"}}}}}}},"/lab-api/healthcare-integration/resources/{resource_type}/{resource_id}":{"get":{"summary":"Healthcare Resource","operationId":"healthcare_resource_lab_api_healthcare_integration_resources__resource_type___resource_id__get","parameters":[{"name":"resource_type","in":"path","required":true,"schema":{"type":"string","title":"Resource Type"}},{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Organization"},{"$ref":"#/components/schemas/Patient"},{"$ref":"#/components/schemas/Encounter"},{"$ref":"#/components/schemas/Observation"},{"$ref":"#/components/schemas/Appointment"},{"$ref":"#/components/schemas/ServiceRequest"}],"discriminator":{"propertyName":"resourceType","mapping":{"Organization":"#/components/schemas/Organization","Patient":"#/components/schemas/Patient","Encounter":"#/components/schemas/Encounter","Observation":"#/components/schemas/Observation","Appointment":"#/components/schemas/Appointment","ServiceRequest":"#/components/schemas/ServiceRequest"}},"title":"Response Healthcare Resource Lab Api Healthcare Integration Resources  Resource Type   Resource Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/workflow-access/fixtures":{"get":{"summary":"Workflow Fixture","operationId":"workflow_fixture_lab_api_workflow_access_fixtures_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessModel"}}}}}}},"/lab-api/workflow-access/evaluate":{"post":{"summary":"Workflow Evaluate","operationId":"workflow_evaluate_lab_api_workflow_access_evaluate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/workflow-access/scenarios/run":{"post":{"summary":"Workflow Run","operationId":"workflow_run_lab_api_workflow_access_scenarios_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowReport"}}}}}}},"/lab-api/{lab}/fixture":{"get":{"summary":"Fixture","operationId":"fixture_lab_api__lab__fixture_get","parameters":[{"name":"lab","in":"path","required":true,"schema":{"type":"string","title":"Lab"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/{lab}/validate":{"post":{"summary":"Validate","operationId":"validate_lab_api__lab__validate_post","parameters":[{"name":"lab","in":"path","required":true,"schema":{"type":"string","title":"Lab"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/{lab}/scenarios":{"get":{"summary":"Scenarios","operationId":"scenarios_lab_api__lab__scenarios_get","parameters":[{"name":"lab","in":"path","required":true,"schema":{"type":"string","title":"Lab"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/{lab}/scenarios/{scenario}":{"post":{"summary":"Run Scenario","operationId":"run_scenario_lab_api__lab__scenarios__scenario__post","parameters":[{"name":"lab","in":"path","required":true,"schema":{"type":"string","title":"Lab"}},{"name":"scenario","in":"path","required":true,"schema":{"type":"string","title":"Scenario"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/{lab}/runs/{run_id}":{"get":{"summary":"Get Run","operationId":"get_run_lab_api__lab__runs__run_id__get","parameters":[{"name":"lab","in":"path","required":true,"schema":{"type":"string","title":"Lab"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/{lab}/runs/{run_id}/discrepancies":{"get":{"summary":"Discrepancies","operationId":"discrepancies_lab_api__lab__runs__run_id__discrepancies_get","parameters":[{"name":"lab","in":"path","required":true,"schema":{"type":"string","title":"Lab"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-api/{lab}/runs/{run_id}/report":{"get":{"summary":"Export","operationId":"export_lab_api__lab__runs__run_id__report_get","parameters":[{"name":"lab","in":"path","required":true,"schema":{"type":"string","title":"Lab"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccessModel":{"properties":{"users":{"items":{"$ref":"#/components/schemas/User"},"type":"array","maxItems":100,"minItems":1,"title":"Users"},"roles":{"items":{"$ref":"#/components/schemas/Role"},"type":"array","maxItems":50,"minItems":1,"title":"Roles"},"groups":{"items":{"$ref":"#/components/schemas/Group"},"type":"array","maxItems":100,"title":"Groups"},"resources":{"items":{"$ref":"#/components/schemas/Resource"},"type":"array","maxItems":50,"minItems":1,"title":"Resources"},"cases":{"items":{"$ref":"#/components/schemas/Case"},"type":"array","maxItems":100,"minItems":1,"title":"Cases"}},"additionalProperties":false,"type":"object","required":["users","roles","groups","resources","cases"],"title":"AccessModel"},"AccessRequest":{"properties":{"id":{"type":"string","title":"Id"},"requester":{"type":"string","title":"Requester"},"state":{"type":"string","enum":["Draft","Submitted","Manager Review","Security Review","Approved","Provisioned","Closed","Rejected","Cancelled"],"title":"State"},"privileged":{"type":"boolean","title":"Privileged"},"approvals":{"items":{"$ref":"#/components/schemas/Approval"},"type":"array","title":"Approvals"}},"additionalProperties":false,"type":"object","required":["id","requester","state","privileged","approvals"],"title":"AccessRequest"},"Appointment":{"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9.-]{1,64}$","title":"Id"},"identifier":{"items":{"$ref":"#/components/schemas/Identifier"},"type":"array","maxItems":10,"minItems":1,"title":"Identifier"},"resourceType":{"type":"string","const":"Appointment","title":"Resourcetype"},"status":{"type":"string","title":"Status"},"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"participant":{"items":{"$ref":"#/components/schemas/Participant"},"type":"array","maxItems":10,"minItems":1,"title":"Participant"}},"additionalProperties":false,"type":"object","required":["id","identifier","resourceType","status","start","end","participant"],"title":"Appointment"},"Approval":{"properties":{"actor":{"type":"string","title":"Actor"},"role":{"type":"string","title":"Role"},"order":{"type":"integer","maximum":10,"minimum":1,"title":"Order"}},"additionalProperties":false,"type":"object","required":["actor","role","order"],"title":"Approval"},"Case":{"properties":{"scenario_id":{"type":"string","title":"Scenario Id"},"name":{"type":"string","title":"Name"},"user":{"type":"string","title":"User"},"resource":{"type":"string","title":"Resource"},"action":{"type":"string","title":"Action"},"request":{"anyOf":[{"$ref":"#/components/schemas/AccessRequest"},{"type":"null"}]},"target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target"},"expected":{"type":"string","enum":["ALLOW","DENY"],"title":"Expected"},"expected_rule":{"type":"string","title":"Expected Rule"},"severity":{"type":"string","enum":["high","warning"],"title":"Severity","default":"high"},"preconditions":{"type":"string","title":"Preconditions"}},"additionalProperties":false,"type":"object","required":["scenario_id","name","user","resource","action","expected","expected_rule","preconditions"],"title":"Case"},"Coding":{"properties":{"system":{"type":"string","title":"System"},"code":{"type":"string","title":"Code"}},"additionalProperties":false,"type":"object","required":["system","code"],"title":"Coding"},"Concept":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["text"],"title":"Concept"},"Encounter":{"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9.-]{1,64}$","title":"Id"},"identifier":{"items":{"$ref":"#/components/schemas/Identifier"},"type":"array","maxItems":10,"minItems":1,"title":"Identifier"},"resourceType":{"type":"string","const":"Encounter","title":"Resourcetype"},"status":{"type":"string","title":"Status"},"class":{"$ref":"#/components/schemas/Coding"},"subject":{"$ref":"#/components/schemas/Reference"},"serviceProvider":{"$ref":"#/components/schemas/Reference"}},"additionalProperties":false,"type":"object","required":["id","identifier","resourceType","status","class","subject","serviceProvider"],"title":"Encounter"},"ErpReport":{"properties":{"run_id":{"type":"string","title":"Run Id"},"source":{"type":"string","title":"Source"},"timestamp":{"type":"string","title":"Timestamp"},"input_sha256":{"type":"string","title":"Input Sha256"},"ruleset":{"type":"string","title":"Ruleset"},"scenario_count":{"type":"integer","title":"Scenario Count"},"passed_scenarios":{"type":"integer","title":"Passed Scenarios"},"failed_scenarios":{"type":"integer","title":"Failed Scenarios"},"discrepancy_count":{"type":"integer","title":"Discrepancy Count"},"checks_executed":{"type":"integer","title":"Checks Executed"},"passed":{"type":"integer","title":"Passed"},"failed":{"type":"integer","title":"Failed"},"warnings":{"type":"integer","title":"Warnings"},"overall_status":{"type":"string","title":"Overall Status"},"checks":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Checks"},"discrepancies":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Discrepancies"},"normalized":{"items":{},"type":"array","title":"Normalized"},"artifacts":{"additionalProperties":true,"type":"object","title":"Artifacts"},"reproduction":{"type":"string","title":"Reproduction"},"source_records":{"type":"integer","title":"Source Records"},"target_records":{"type":"integer","title":"Target Records"},"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"},"no_op":{"type":"integer","title":"No Op"},"rejected":{"type":"integer","title":"Rejected"},"retried":{"type":"integer","title":"Retried"},"exceptions":{"type":"integer","title":"Exceptions"},"reconciliation_differences":{"type":"integer","title":"Reconciliation Differences"}},"type":"object","required":["run_id","source","timestamp","input_sha256","ruleset","scenario_count","passed_scenarios","failed_scenarios","discrepancy_count","checks_executed","passed","failed","warnings","overall_status","checks","discrepancies","normalized","artifacts","reproduction","source_records","target_records","created","updated","no_op","rejected","retried","exceptions","reconciliation_differences"],"title":"ErpReport"},"ErpRequest":{"properties":{"data":{"$ref":"#/components/schemas/SyncInput"}},"additionalProperties":false,"type":"object","required":["data"],"title":"ErpRequest"},"ExportFile":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"table":{"type":"string","enum":["orders","customers","products","shipments","documents","invoices","quality","imports"],"title":"Table"},"format":{"type":"string","enum":["csv","json"],"title":"Format"},"content":{"type":"string","maxLength":800000,"title":"Content"}},"additionalProperties":false,"type":"object","required":["name","table","format","content"],"title":"ExportFile"},"Group":{"properties":{"id":{"type":"string","title":"Id"},"members":{"items":{"type":"string"},"type":"array","title":"Members"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"additionalProperties":false,"type":"object","required":["id","members","roles"],"title":"Group"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthcareInput":{"properties":{"resources":{"items":{"oneOf":[{"$ref":"#/components/schemas/Organization"},{"$ref":"#/components/schemas/Patient"},{"$ref":"#/components/schemas/Encounter"},{"$ref":"#/components/schemas/Observation"},{"$ref":"#/components/schemas/Appointment"},{"$ref":"#/components/schemas/ServiceRequest"}],"discriminator":{"propertyName":"resourceType","mapping":{"Appointment":"#/components/schemas/Appointment","Encounter":"#/components/schemas/Encounter","Observation":"#/components/schemas/Observation","Organization":"#/components/schemas/Organization","Patient":"#/components/schemas/Patient","ServiceRequest":"#/components/schemas/ServiceRequest"}}},"type":"array","maxItems":100,"minItems":1,"title":"Resources"},"scenarios":{"items":{"$ref":"#/components/schemas/Scenario"},"type":"array","maxItems":100,"minItems":1,"title":"Scenarios"}},"additionalProperties":false,"type":"object","required":["resources","scenarios"],"title":"HealthcareInput"},"HealthcareReport":{"properties":{"run_id":{"type":"string","title":"Run Id"},"source":{"type":"string","title":"Source"},"timestamp":{"type":"string","title":"Timestamp"},"input_sha256":{"type":"string","title":"Input Sha256"},"ruleset":{"type":"string","title":"Ruleset"},"scenario_count":{"type":"integer","title":"Scenario Count"},"passed_scenarios":{"type":"integer","title":"Passed Scenarios"},"failed_scenarios":{"type":"integer","title":"Failed Scenarios"},"discrepancy_count":{"type":"integer","title":"Discrepancy Count"},"checks_executed":{"type":"integer","title":"Checks Executed"},"passed":{"type":"integer","title":"Passed"},"failed":{"type":"integer","title":"Failed"},"warnings":{"type":"integer","title":"Warnings"},"overall_status":{"type":"string","title":"Overall Status"},"checks":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Checks"},"discrepancies":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Discrepancies"},"normalized":{"items":{},"type":"array","title":"Normalized"},"artifacts":{"additionalProperties":true,"type":"object","title":"Artifacts"},"reproduction":{"type":"string","title":"Reproduction"},"interfaces_tested":{"type":"integer","title":"Interfaces Tested"},"resources_processed":{"type":"integer","title":"Resources Processed"}},"type":"object","required":["run_id","source","timestamp","input_sha256","ruleset","scenario_count","passed_scenarios","failed_scenarios","discrepancy_count","checks_executed","passed","failed","warnings","overall_status","checks","discrepancies","normalized","artifacts","reproduction","interfaces_tested","resources_processed"],"title":"HealthcareReport"},"HealthcareRequest":{"properties":{"data":{"$ref":"#/components/schemas/HealthcareInput"}},"additionalProperties":false,"type":"object","required":["data"],"title":"HealthcareRequest"},"Identifier":{"properties":{"system":{"type":"string","minLength":1,"title":"System"},"value":{"type":"string","minLength":1,"title":"Value"}},"additionalProperties":false,"type":"object","required":["system","value"],"title":"Identifier"},"Observation":{"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9.-]{1,64}$","title":"Id"},"identifier":{"items":{"$ref":"#/components/schemas/Identifier"},"type":"array","maxItems":10,"minItems":1,"title":"Identifier"},"resourceType":{"type":"string","const":"Observation","title":"Resourcetype"},"status":{"type":"string","title":"Status"},"code":{"$ref":"#/components/schemas/Concept"},"subject":{"$ref":"#/components/schemas/Reference"},"encounter":{"$ref":"#/components/schemas/Reference"},"performer":{"items":{"$ref":"#/components/schemas/Reference"},"type":"array","maxItems":5,"minItems":1,"title":"Performer"},"effectiveDateTime":{"type":"string","title":"Effectivedatetime"},"valueString":{"type":"string","title":"Valuestring"}},"additionalProperties":false,"type":"object","required":["id","identifier","resourceType","status","code","subject","encounter","performer","effectiveDateTime","valueString"],"title":"Observation"},"OperationsInput":{"properties":{"files":{"items":{"$ref":"#/components/schemas/ExportFile"},"type":"array","maxItems":16,"minItems":1,"title":"Files"}},"additionalProperties":false,"type":"object","required":["files"],"title":"OperationsInput"},"OperationsReport":{"properties":{"run_id":{"type":"string","title":"Run Id"},"source":{"type":"string","title":"Source"},"timestamp":{"type":"string","title":"Timestamp"},"input_sha256":{"type":"string","title":"Input Sha256"},"ruleset":{"type":"string","title":"Ruleset"},"scenario_count":{"type":"integer","title":"Scenario Count"},"passed_scenarios":{"type":"integer","title":"Passed Scenarios"},"failed_scenarios":{"type":"integer","title":"Failed Scenarios"},"discrepancy_count":{"type":"integer","title":"Discrepancy Count"},"checks_executed":{"type":"integer","title":"Checks Executed"},"passed":{"type":"integer","title":"Passed"},"failed":{"type":"integer","title":"Failed"},"warnings":{"type":"integer","title":"Warnings"},"overall_status":{"type":"string","title":"Overall Status"},"checks":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Checks"},"discrepancies":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Discrepancies"},"normalized":{"items":{},"type":"array","title":"Normalized"},"artifacts":{"additionalProperties":true,"type":"object","title":"Artifacts"},"reproduction":{"type":"string","title":"Reproduction"},"records_checked":{"type":"integer","title":"Records Checked"},"controls_executed":{"type":"integer","title":"Controls Executed"},"exceptions_detected":{"type":"integer","title":"Exceptions Detected"},"high":{"type":"integer","title":"High"},"medium":{"type":"integer","title":"Medium"},"low":{"type":"integer","title":"Low"},"unresolved":{"type":"integer","title":"Unresolved"},"resolved":{"type":"integer","title":"Resolved"}},"type":"object","required":["run_id","source","timestamp","input_sha256","ruleset","scenario_count","passed_scenarios","failed_scenarios","discrepancy_count","checks_executed","passed","failed","warnings","overall_status","checks","discrepancies","normalized","artifacts","reproduction","records_checked","controls_executed","exceptions_detected","high","medium","low","unresolved","resolved"],"title":"OperationsReport"},"OperationsRequest":{"properties":{"data":{"$ref":"#/components/schemas/OperationsInput"}},"additionalProperties":false,"type":"object","required":["data"],"title":"OperationsRequest"},"Organization":{"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9.-]{1,64}$","title":"Id"},"identifier":{"items":{"$ref":"#/components/schemas/Identifier"},"type":"array","maxItems":10,"minItems":1,"title":"Identifier"},"resourceType":{"type":"string","const":"Organization","title":"Resourcetype"},"active":{"type":"boolean","title":"Active"},"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["id","identifier","resourceType","active","name"],"title":"Organization"},"Participant":{"properties":{"actor":{"$ref":"#/components/schemas/Reference"},"status":{"type":"string","title":"Status"}},"additionalProperties":false,"type":"object","required":["actor","status"],"title":"Participant"},"Patient":{"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9.-]{1,64}$","title":"Id"},"identifier":{"items":{"$ref":"#/components/schemas/Identifier"},"type":"array","maxItems":10,"minItems":1,"title":"Identifier"},"resourceType":{"type":"string","const":"Patient","title":"Resourcetype"},"active":{"type":"boolean","title":"Active"},"managingOrganization":{"$ref":"#/components/schemas/Reference"}},"additionalProperties":false,"type":"object","required":["id","identifier","resourceType","active","managingOrganization"],"title":"Patient"},"Permission":{"properties":{"resource":{"type":"string","title":"Resource"},"action":{"type":"string","title":"Action"}},"additionalProperties":false,"type":"object","required":["resource","action"],"title":"Permission"},"PipelineInput":{"properties":{"filename":{"type":"string","maxLength":100,"minLength":1,"title":"Filename"},"format":{"type":"string","enum":["csv","json"],"title":"Format"},"content":{"type":"string","maxLength":800000,"title":"Content"},"configuration":{"type":"string","enum":["baseline","controlled"],"title":"Configuration","default":"baseline"}},"additionalProperties":false,"type":"object","required":["filename","format","content"],"title":"PipelineInput"},"QualityReport":{"properties":{"run_id":{"type":"string","title":"Run Id"},"source":{"type":"string","title":"Source"},"timestamp":{"type":"string","title":"Timestamp"},"input_sha256":{"type":"string","title":"Input Sha256"},"ruleset":{"type":"string","title":"Ruleset"},"scenario_count":{"type":"integer","title":"Scenario Count"},"passed_scenarios":{"type":"integer","title":"Passed Scenarios"},"failed_scenarios":{"type":"integer","title":"Failed Scenarios"},"discrepancy_count":{"type":"integer","title":"Discrepancy Count"},"checks_executed":{"type":"integer","title":"Checks Executed"},"passed":{"type":"integer","title":"Passed"},"failed":{"type":"integer","title":"Failed"},"warnings":{"type":"integer","title":"Warnings"},"overall_status":{"type":"string","title":"Overall Status"},"checks":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Checks"},"discrepancies":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Discrepancies"},"normalized":{"items":{},"type":"array","title":"Normalized"},"artifacts":{"additionalProperties":true,"type":"object","title":"Artifacts"},"reproduction":{"type":"string","title":"Reproduction"},"records_received":{"type":"integer","title":"Records Received"},"records_processed":{"type":"integer","title":"Records Processed"},"accepted":{"type":"integer","title":"Accepted"},"rejected":{"type":"integer","title":"Rejected"},"quality_checks":{"type":"integer","title":"Quality Checks"},"quality_failures":{"type":"integer","title":"Quality Failures"},"transformation_failures":{"type":"integer","title":"Transformation Failures"},"controlled_regressions":{"type":"integer","title":"Controlled Regressions"}},"type":"object","required":["run_id","source","timestamp","input_sha256","ruleset","scenario_count","passed_scenarios","failed_scenarios","discrepancy_count","checks_executed","passed","failed","warnings","overall_status","checks","discrepancies","normalized","artifacts","reproduction","records_received","records_processed","accepted","rejected","quality_checks","quality_failures","transformation_failures","controlled_regressions"],"title":"QualityReport"},"QualityRequest":{"properties":{"data":{"$ref":"#/components/schemas/PipelineInput"}},"additionalProperties":false,"type":"object","required":["data"],"title":"QualityRequest"},"Reference":{"properties":{"reference":{"type":"string","minLength":1,"title":"Reference"}},"additionalProperties":false,"type":"object","required":["reference"],"title":"Reference"},"ReportCheck":{"properties":{"rule":{"type":"string","title":"Rule"},"record":{"type":"string","title":"Record"},"expected":{"type":"string","title":"Expected"},"actual":{"type":"string","title":"Actual"},"status":{"type":"string","title":"Status"},"severity":{"type":"string","title":"Severity"},"evidence":{"type":"string","title":"Evidence"},"action":{"type":"string","title":"Action"}},"type":"object","required":["rule","record","expected","actual","status","severity","evidence","action"],"title":"ReportCheck"},"Resource":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"Resource"},"RetryRequest":{"properties":{"run_id":{"type":"string","title":"Run Id"},"repair_mapping":{"type":"boolean","title":"Repair Mapping","default":false}},"additionalProperties":false,"type":"object","required":["run_id"],"title":"RetryRequest"},"Role":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"permissions":{"items":{"$ref":"#/components/schemas/Permission"},"type":"array","title":"Permissions"}},"additionalProperties":false,"type":"object","required":["id","name","permissions"],"title":"Role"},"Scenario":{"properties":{"scenario_id":{"type":"string","maxLength":80,"minLength":1,"title":"Scenario Id"},"name":{"type":"string","title":"Name"},"interface":{"type":"string","enum":["IF-Organization","IF-Patient","IF-Encounter","IF-Observation","IF-Appointment","IF-ServiceRequest"],"title":"Interface"},"input_json":{"type":"string","maxLength":100000,"title":"Input Json"},"preconditions":{"type":"string","title":"Preconditions"},"expected_decision":{"type":"string","enum":["ACCEPT","REJECT"],"title":"Expected Decision"},"expected_http":{"type":"integer","maximum":599,"minimum":100,"title":"Expected Http"},"expected_rules":{"items":{"type":"string"},"type":"array","title":"Expected Rules"},"simulated_http":{"anyOf":[{"type":"integer","maximum":599,"minimum":100},{"type":"null"}],"title":"Simulated Http"},"severity":{"type":"string","enum":["high","warning"],"title":"Severity","default":"high"}},"additionalProperties":false,"type":"object","required":["scenario_id","name","interface","input_json","preconditions","expected_decision","expected_http","expected_rules"],"title":"Scenario"},"ServiceRequest":{"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9.-]{1,64}$","title":"Id"},"identifier":{"items":{"$ref":"#/components/schemas/Identifier"},"type":"array","maxItems":10,"minItems":1,"title":"Identifier"},"resourceType":{"type":"string","const":"ServiceRequest","title":"Resourcetype"},"status":{"type":"string","title":"Status"},"intent":{"type":"string","const":"order","title":"Intent"},"code":{"$ref":"#/components/schemas/Concept"},"subject":{"$ref":"#/components/schemas/Reference"},"encounter":{"$ref":"#/components/schemas/Reference"},"requester":{"$ref":"#/components/schemas/Reference"},"authoredOn":{"type":"string","title":"Authoredon"}},"additionalProperties":false,"type":"object","required":["id","identifier","resourceType","status","intent","code","subject","encounter","requester","authoredOn"],"title":"ServiceRequest"},"SyncInput":{"properties":{"configuration":{"type":"string","enum":["baseline","controlled"],"title":"Configuration","default":"baseline"}},"additionalProperties":false,"type":"object","title":"SyncInput"},"User":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"name":{"type":"string","title":"Name"},"department":{"type":"string","title":"Department"},"status":{"type":"string","enum":["active","inactive"],"title":"Status"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"additionalProperties":false,"type":"object","required":["id","name","department","status","roles"],"title":"User"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValidationInput":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data"}},"additionalProperties":false,"type":"object","required":["data"],"title":"ValidationInput"},"WorkflowInput":{"properties":{"data":{"$ref":"#/components/schemas/AccessModel"}},"additionalProperties":false,"type":"object","required":["data"],"title":"WorkflowInput"},"WorkflowReport":{"properties":{"run_id":{"type":"string","title":"Run Id"},"source":{"type":"string","title":"Source"},"timestamp":{"type":"string","title":"Timestamp"},"input_sha256":{"type":"string","title":"Input Sha256"},"ruleset":{"type":"string","title":"Ruleset"},"scenario_count":{"type":"integer","title":"Scenario Count"},"passed_scenarios":{"type":"integer","title":"Passed Scenarios"},"failed_scenarios":{"type":"integer","title":"Failed Scenarios"},"discrepancy_count":{"type":"integer","title":"Discrepancy Count"},"checks_executed":{"type":"integer","title":"Checks Executed"},"passed":{"type":"integer","title":"Passed"},"failed":{"type":"integer","title":"Failed"},"warnings":{"type":"integer","title":"Warnings"},"overall_status":{"type":"string","title":"Overall Status"},"checks":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Checks"},"discrepancies":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Discrepancies"},"normalized":{"items":{},"type":"array","title":"Normalized"},"artifacts":{"additionalProperties":true,"type":"object","title":"Artifacts"},"reproduction":{"type":"string","title":"Reproduction"}},"type":"object","required":["run_id","source","timestamp","input_sha256","ruleset","scenario_count","passed_scenarios","failed_scenarios","discrepancy_count","checks_executed","passed","failed","warnings","overall_status","checks","discrepancies","normalized","artifacts","reproduction"],"title":"WorkflowReport"}}}}