{"openapi":"3.1.0","info":{"title":"Sphere-EHR API","version":"0.1.0"},"paths":{"/medications":{"post":{"tags":["medications"],"summary":"Create a medication order (CPOE)","description":"Record a new medication order as a FHIR MedicationRequest (status=draft).\n\nONC § 170.315(a)(1): authorised clinicians/nurses may enter medication orders.\nAuthentication is enforced by the bearer-token dependency chain.","operationId":"create_order_medications_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedicationOrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedicationOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["medications"],"summary":"List medication orders for a patient","description":"Return all MedicationRequests for a given patient.\n\nONC § 170.315(a)(1): authorised users may access medication orders.","operationId":"list_orders_medications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","description":"FHIR Patient resource ID","title":"Patient Id"},"description":"FHIR Patient resource ID"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MedicationOrderResponse"},"title":"Response List Orders Medications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/medications/{order_id}":{"get":{"tags":["medications"],"summary":"Get a single medication order","description":"Retrieve a specific MedicationRequest by FHIR resource ID.","operationId":"get_order_medications__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedicationOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["medications"],"summary":"Edit a medication order","description":"Edit an existing medication order (allowed while status is draft).\n\nONC § 170.315(a)(1): authorised users may change medication orders.\nSigned (active) orders cannot be edited — inactivate then create a new order.","operationId":"update_order_medications__order_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedicationOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedicationOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/medications/{order_id}/sign":{"post":{"tags":["medications"],"summary":"Sign (activate) a medication order","description":"Electronically sign a draft medication order, transitioning it to active.\n\nONC § 170.315(a)(1): signing records the authoredOn timestamp and the\nordering provider, making the order actionable.  Only CLINICIANs may sign.\n\nONC § 170.315(a)(4): drug-drug and drug-allergy interaction checks run\nautomatically before the order is activated.  If actionable alerts exist\nand no *override_reason* is supplied, the endpoint returns HTTP 409 with\nthe list of alerts.  When *override_reason* is present each alert is\npersisted as a mitigated FHIR DetectedIssue with the reason attached.","operationId":"sign_order_medications__order_id__sign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__serving__medications__SignOrderRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedicationOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/medications/{order_id}/inactivate":{"post":{"tags":["medications"],"summary":"Inactivate a medication order","description":"Inactivate (stop) a medication order.\n\nONC § 170.315(a)(1): authorised users may inactivate orders.\nSets FHIR status to 'stopped'; the resource is retained for audit purposes.","operationId":"inactivate_order_medications__order_id__inactivate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedicationOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/labs/catalog":{"get":{"tags":["labs"],"summary":"Return the seeded LOINC lab test catalog","description":"Return the seeded LOINC top-2000 catalog, optionally filtered by search term.\n\nONC § 170.315(a)(2): authorised users may search the lab test catalog.","operationId":"get_catalog_labs_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Optional search term","default":"","title":"Q"},"description":"Optional search term"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LoincEntry"},"title":"Response Get Catalog Labs Catalog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/labs":{"post":{"tags":["labs"],"summary":"Create a laboratory order (CPOE)","description":"Record a new laboratory order as a FHIR ServiceRequest (status=draft).\n\nONC § 170.315(a)(2): authorised clinicians/nurses may enter lab orders.\nAuthentication is enforced by the bearer-token dependency chain.","operationId":"create_order_labs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabOrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["labs"],"summary":"List laboratory orders for a patient","description":"Return all ServiceRequests (category=laboratory) for a given patient.\n\nONC § 170.315(a)(2): authorised users may access laboratory orders.","operationId":"list_orders_labs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","description":"FHIR Patient resource ID","title":"Patient Id"},"description":"FHIR Patient resource ID"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LabOrderResponse"},"title":"Response List Orders Labs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/labs/{order_id}":{"get":{"tags":["labs"],"summary":"Get a single laboratory order","description":"Retrieve a specific ServiceRequest by FHIR resource ID.","operationId":"get_order_labs__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["labs"],"summary":"Edit a laboratory order","description":"Edit an existing laboratory order (allowed while status is draft).\n\nONC § 170.315(a)(2): authorised users may change laboratory orders.\nSigned (active) orders cannot be edited — cancel then create a new order.","operationId":"update_order_labs__order_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/labs/{order_id}/sign":{"post":{"tags":["labs"],"summary":"Sign (activate) a laboratory order","description":"Electronically sign a draft laboratory order, transitioning it to active.\n\nONC § 170.315(a)(2): signing records the authoredOn timestamp and the\nordering provider, making the order actionable.  Only CLINICIANs may sign.","operationId":"sign_order_labs__order_id__sign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/labs/{order_id}/cancel":{"post":{"tags":["labs"],"summary":"Cancel a laboratory order","description":"Cancel a laboratory order.\n\nONC § 170.315(a)(2): authorised users may cancel laboratory orders.\nSets FHIR status to 'revoked'; the resource is retained for audit purposes.","operationId":"cancel_order_labs__order_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging/catalog":{"get":{"tags":["imaging"],"summary":"Return the imaging procedure catalog","description":"Return the seeded imaging procedure catalog, optionally filtered by search term.\n\nONC § 170.315(a)(3): authorised users may search the imaging catalog.","operationId":"get_catalog_imaging_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Optional search term","default":"","title":"Q"},"description":"Optional search term"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ImagingCatalogEntry"},"title":"Response Get Catalog Imaging Catalog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging":{"post":{"tags":["imaging"],"summary":"Create a diagnostic imaging order (CPOE)","description":"Record a new imaging order as a FHIR ServiceRequest (status=draft).\n\nONC § 170.315(a)(3): authorised clinicians/nurses may enter imaging orders.\nAuthentication is enforced by the bearer-token dependency chain.","operationId":"create_order_imaging_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagingOrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagingOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["imaging"],"summary":"List diagnostic imaging orders for a patient","description":"Return all ServiceRequests (category=imaging) for a given patient.\n\nONC § 170.315(a)(3): authorised users may access imaging orders.","operationId":"list_orders_imaging_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","description":"FHIR Patient resource ID","title":"Patient Id"},"description":"FHIR Patient resource ID"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ImagingOrderResponse"},"title":"Response List Orders Imaging Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging/{order_id}":{"get":{"tags":["imaging"],"summary":"Get a single diagnostic imaging order","description":"Retrieve a specific ServiceRequest by FHIR resource ID.","operationId":"get_order_imaging__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagingOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["imaging"],"summary":"Edit a diagnostic imaging order","description":"Edit an existing imaging order (allowed while status is draft).\n\nONC § 170.315(a)(3): authorised users may change imaging orders.\nSigned (active) orders cannot be edited — cancel then create a new order.","operationId":"update_order_imaging__order_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagingOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagingOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging/{order_id}/sign":{"post":{"tags":["imaging"],"summary":"Sign (activate) a diagnostic imaging order","description":"Electronically sign a draft imaging order, transitioning it to active.\n\nONC § 170.315(a)(3): signing records the authoredOn timestamp and the\nordering provider, making the order actionable.  Only CLINICIANs may sign.","operationId":"sign_order_imaging__order_id__sign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagingOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging/{order_id}/cancel":{"post":{"tags":["imaging"],"summary":"Cancel a diagnostic imaging order","description":"Cancel a diagnostic imaging order.\n\nONC § 170.315(a)(3): authorised users may cancel imaging orders.\nSets FHIR status to 'revoked'; the resource is retained for audit purposes.","operationId":"cancel_order_imaging__order_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagingOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interactions/preferences":{"get":{"tags":["interactions"],"summary":"Get current user's interaction-alert severity threshold","description":"Return the authenticated user's alert severity threshold.\n\nONC § 170.315(a)(4): severity threshold is per-user configurable.","operationId":"get_preferences_interactions_preferences_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["interactions"],"summary":"Set current user's interaction-alert severity threshold","description":"Persist the caller's preferred alert severity threshold.\n\nONC § 170.315(a)(4): severity threshold adjustment must be user-tunable.","operationId":"update_preferences_interactions_preferences_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interactions/check":{"post":{"tags":["interactions"],"summary":"Check drug-drug and drug-allergy interactions for a proposed medication","description":"Run real-time interaction checks for a proposed medication against the\npatient's active medication list and recorded allergies.\n\nReturns all detected alerts; callers should surface alerts at or above\nthe user's configured severity threshold.  All alerts are returned so\nthe UI can show informational lower-severity alerts too.\n\nONC § 170.315(a)(4): real-time interaction checking at order entry.","operationId":"check_interactions_endpoint_interactions_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInteractionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInteractionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interactions/override":{"post":{"tags":["interactions"],"summary":"Override an interaction alert with a clinical reason (auditable)","description":"Record a clinician's decision to override an interaction alert.\n\nPersists a FHIR DetectedIssue resource (status=mitigated) with the\noverride reason attached as a mitigation note.  The reason is auditable\nper ONC § 170.315(d)(2) / (d)(10).\n\nONC § 170.315(a)(4): override requires reason text; reason is auditable.","operationId":"override_alert_interactions_override_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverrideResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders":{"get":{"tags":["orders"],"summary":"List all orders for a patient (medications + labs + imaging)","description":"Aggregate medication, lab, and imaging orders for a patient into a\nsingle list suitable for the Order Composer UI.\n\nONC § 170.315(a)(1-3): unified order view across all CPOE types.","operationId":"list_all_orders_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","description":"FHIR Patient resource ID","title":"Patient Id"},"description":"FHIR Patient resource ID"},{"name":"order_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by FHIR status (draft, active, completed, revoked, stopped, …)","title":"Order Status"},"description":"Filter by FHIR status (draft, active, completed, revoked, stopped, …)"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UnifiedOrder"},"title":"Response List All Orders Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/safety-check":{"post":{"tags":["orders"],"summary":"Run all safety checks for a proposed medication at order entry","description":"Run drug-drug interaction, drug-allergy, duplicate-therapy, and\ndose-range checks for a proposed medication before order entry.\n\nReturns all alerts; the UI surfaces alerts at or above the user's\nconfigured severity threshold as blocking.\n\nONC § 170.315(a)(4): real-time safety checks at order entry.","operationId":"safety_check_orders_safety_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSafetyCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSafetyCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/sign":{"post":{"tags":["orders"],"summary":"Sign an order with audit and FHIR Provenance emission","description":"Electronically sign any order type, transitioning it from draft → active.\n\nFor MedicationRequests: runs drug-drug and drug-allergy interaction checks.\nBlocking alerts require an override_reason to proceed.\n\nEmits a FHIR Provenance resource recording the signing clinician and time.\n\nONC § 170.315(a)(1-4): signing with safety-check integration.\nONC § 170.315(d)(2)/(d)(10): audit + provenance on every signing event.","operationId":"sign_order_orders_sign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__orders__SignOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/{resource_type}/{order_id}/history":{"get":{"tags":["orders"],"summary":"Get order status history via FHIR Provenance","description":"Return the status history of an order by querying Provenance resources\nthat target it.\n\nONC § 170.315(d)(2): complete audit trail for every order state change.","operationId":"get_order_history_orders__resource_type___order_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"resource_type","in":"path","required":true,"schema":{"type":"string","title":"Resource Type"}},{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notes":{"post":{"tags":["notes"],"summary":"Create Note","description":"Create a draft clinical note (ONC § 170.315(a)(10)).","operationId":"create_note_notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNoteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicalNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["notes"],"summary":"List Notes","description":"List clinical notes. Patients see only their own records.","operationId":"list_notes_notes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/NoteStatus"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClinicalNote"},"title":"Response List Notes Notes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notes/{note_id}":{"get":{"tags":["notes"],"summary":"Get Note","description":"Retrieve a single clinical note.","operationId":"get_note_notes__note_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicalNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["notes"],"summary":"Update Note","description":"Update a draft note. Returns 409 if the note has already been signed.","operationId":"update_note_notes__note_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicalNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notes/{note_id}/sign":{"post":{"tags":["notes"],"summary":"Sign Note","description":"Sign a note, making it immutable. Persists a FHIR DocumentReference.","operationId":"sign_note_notes__note_id__sign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicalNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notes/{note_id}/addendum":{"post":{"tags":["notes"],"summary":"Add Addendum","description":"Append an addendum to a signed note.\n\nThe original signed content is never modified.  The addendum is appended to\nthe addenda list and the FHIR DocumentReference is updated, creating a new\nversion in the HAPI _history chain per ONC § 170.315(d)(8).","operationId":"add_addendum_notes__note_id__addendum_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddendumRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicalNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/critical-results":{"post":{"tags":["critical-results"],"summary":"Create Critical Result","description":"Flag a new critical result requiring clinician acknowledgment.","operationId":"create_critical_result_critical_results_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCriticalResultRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriticalResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["critical-results"],"summary":"List Critical Results","description":"List critical results. Patients see only their own records.","operationId":"list_critical_results_critical_results_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CriticalResultStatus"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CriticalResult"},"title":"Response List Critical Results Critical Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/critical-results/{result_id}":{"get":{"tags":["critical-results"],"summary":"Get Critical Result","description":"Retrieve a single critical result.","operationId":"get_critical_result_critical_results__result_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"result_id","in":"path","required":true,"schema":{"type":"string","title":"Result Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriticalResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/critical-results/{result_id}/acknowledge":{"post":{"tags":["critical-results"],"summary":"Acknowledge Critical Result","description":"Acknowledge a critical result.\n\nAcknowledgment is required before the result can be closed.\nMultiple acknowledgments on the same result are idempotent (returns 200 each time).","operationId":"acknowledge_critical_result_critical_results__result_id__acknowledge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"result_id","in":"path","required":true,"schema":{"type":"string","title":"Result Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriticalResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/critical-results/{result_id}/close":{"post":{"tags":["critical-results"],"summary":"Close Critical Result","description":"Close a critical result.\n\nThe result MUST have been acknowledged first (status == ACKNOWLEDGED).\nAttempting to close a PENDING result returns 409 Conflict.","operationId":"close_critical_result_critical_results__result_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"result_id","in":"path","required":true,"schema":{"type":"string","title":"Result Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriticalResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents":{"get":{"tags":["agents"],"summary":"List Agent Definitions","description":"Return all registered agent definitions for this tenant.","operationId":"list_agent_definitions_agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentDefinitionResponse"},"title":"Response List Agent Definitions Agents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/chart-brief":{"post":{"tags":["agents"],"summary":"Generate Chart Brief","description":"AI-002: Generate a source-cited chart brief for the given patient.\n\nFetches FHIR resources, calls Claude, writes a Provenance resource, and\nstores the run in the review queue.  Every PHI access is audit-logged.","operationId":"generate_chart_brief_agents_chart_brief_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateBriefRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/runs":{"get":{"tags":["agents"],"summary":"List Agent Runs","description":"AI-003: List agent runs (optionally filtered by patient_id / status).","operationId":"list_agent_runs_agents_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentRunStatus"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentRunResponse"},"title":"Response List Agent Runs Agents Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/runs/{run_id}":{"get":{"tags":["agents"],"summary":"Get Agent Run","description":"Retrieve a single agent run by ID.","operationId":"get_agent_run_agents_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/runs/{run_id}/review":{"post":{"tags":["agents"],"summary":"Review Agent Run","description":"AI-003: Submit a clinician review decision on an agent run output.\n\nDecisions: accepted | edited | rejected | revision_requested | marked_unsafe.\nEach decision is audit-logged per ONC § 170.315(d)(2).","operationId":"review_agent_run_agents_runs__run_id__review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__agents__ReviewRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/runs/{run_id}/reviews":{"get":{"tags":["agents"],"summary":"List Reviews For Run","description":"List all review decisions for a given agent run.","operationId":"list_reviews_for_run_agents_runs__run_id__reviews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReviewResponse"},"title":"Response List Reviews For Run Agents Runs  Run Id  Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients":{"post":{"tags":["demographics"],"summary":"Create a patient demographic record","description":"Record a new Patient resource in the FHIR store (US Core Patient profile).\n\nONC § 170.315(a)(5): authorised clinicians/nurses/admins may register\npatient demographic data including SOGI, race, ethnicity, and language.","operationId":"create_patient_patients_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["demographics"],"summary":"Search patients by family name","description":"Search Patient resources by name.\n\nONC § 170.315(a)(5): authorised users may access patient demographic data.","operationId":"search_patients_patients_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"family","in":"query","required":false,"schema":{"type":"string","default":"","title":"Family"}},{"name":"given","in":"query","required":false,"schema":{"type":"string","default":"","title":"Given"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PatientResponse"},"title":"Response Search Patients Patients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}":{"get":{"tags":["demographics"],"summary":"Get a patient's demographic record","description":"Retrieve a specific Patient resource by FHIR resource ID.\n\nONC § 170.315(a)(5): authorised users may access patient demographics.","operationId":"get_patient_patients__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["demographics"],"summary":"Update a patient's demographic record","description":"Replace a Patient resource (full update).\n\nONC § 170.315(a)(5): authorised users may change patient demographic data.","operationId":"update_patient_patients__patient_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transitions/{patient_id}/generate":{"post":{"tags":["transitions"],"summary":"Generate a C-CDA document from FHIR data","description":"Generate a C-CDA R2.1 document (CCD, Referral Note, or Discharge Summary)\nfrom the patient's FHIR data and persist it as a FHIR DocumentReference.\n\nONC § 170.315(b)(1): authorised clinicians/nurses/admins may generate\ncare-transition documents.","operationId":"generate_document_transitions__patient_id__generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__transitions__GenerateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transitions/validate":{"post":{"tags":["transitions"],"summary":"Validate a C-CDA R2.1 document","description":"Validate a base64-encoded C-CDA R2.1 document against structural\nrequirements (required elements, template IDs, US Realm header).\n\nONC § 170.315(b)(1): validation supports both generate and receive flows.","operationId":"validate_document_transitions_validate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transitions/{patient_id}/send":{"post":{"tags":["transitions"],"summary":"Send a C-CDA document via Direct or XDR","description":"Transmit a previously generated C-CDA (identified by its DocumentReference ID)\nto a receiving provider via Direct (§ H1) or XDR/XDM (§ H2) transport.\n\nTransport implementations are stubbed for testability; production wiring\nrequires a DirectTrust-accredited HISP or IHE XDR endpoint.\n\nONC § 170.315(b)(1): authorised users may send care-transition documents.","operationId":"send_document_transitions__patient_id__send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__transitions__SendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__transitions__SendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transitions/receive":{"post":{"tags":["transitions"],"summary":"Receive and parse an inbound C-CDA document into FHIR resources","description":"Receive an inbound C-CDA R2.1 document (base64-encoded), validate it,\nparse it into FHIR R4 resources, and incorporate them into the FHIR store.\n\nThe parsed resources (Patient, MedicationStatement, AllergyIntolerance,\nCondition, DocumentReference) are created individually in the store.\n\nONC § 170.315(b)(1): authorised users may receive and incorporate care-\ntransition documents from external providers.","operationId":"receive_document_transitions_receive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transitions/documents/{document_reference_id}/view":{"get":{"tags":["transitions"],"summary":"Render a stored C-CDA for clinician inspection","description":"Return a parsed, human-readable view of a stored C-CDA.\n\nThe C-CDA is loaded from the DocumentReference attachment, its section\nnarratives are extracted, and the result is returned in a shape the\n/transitions/[doc_ref_id] UI can render directly without parsing XML\nclient-side.  ONC § 170.315(b)(1) — required for \"Visual Inspection of\nIncorporated Document\" proctor step.","operationId":"view_document_transitions_documents__document_reference_id__view_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_reference_id","in":"path","required":true,"schema":{"type":"string","title":"Document Reference Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transitions/{patient_id}/documents":{"get":{"tags":["transitions"],"summary":"List C-CDA documents for a patient","description":"List all C-CDA DocumentReferences stored for a patient.\n\nONC § 170.315(b)(1): authorised users may retrieve care-transition documents.","operationId":"list_documents_transitions__patient_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"doc_type","in":"query","required":false,"schema":{"type":"string","description":"Filter by doc type tag (ccd | referral | discharge)","default":"","title":"Doc Type"},"description":"Filter by doc type tag (ccd | referral | discharge)"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentSummary"},"title":"Response List Documents Transitions  Patient Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reconciliation/{patient_id}/diff":{"post":{"tags":["reconciliation"],"summary":"Compute reconciliation diff","description":"Compare incoming FHIR resources (from a received C-CDA or other source) against the patient's existing FHIR store records and return a structured side-by-side diff for clinician review.  ONC § 170.315(b)(2).","operationId":"compute_diff_reconciliation__patient_id__diff_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reconciliation/{patient_id}/apply":{"post":{"tags":["reconciliation"],"summary":"Apply reconciliation decisions","description":"Persist the clinician's reconciliation decisions (accept / keep / merge / reject) to the FHIR store.  Every decision is recorded in the audit log.  ONC § 170.315(b)(2).","operationId":"apply_decisions_reconciliation__patient_id__apply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reconciliation/{patient_id}/import-ccda":{"post":{"tags":["reconciliation"],"summary":"INT-005 — Import C-CDA and compute reconciliation diff","description":"Parse a base64-encoded C-CDA R2.1 document into FHIR resources, compare them against the patient's existing records, and return a structured diff for clinician attestation.  Submit decisions to POST /{patient_id}/apply.  ONC § 170.315(b)(2) — Clinical Information Reconciliation.","operationId":"import_ccda_reconciliation__patient_id__import_ccda_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CcdaImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CcdaImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eprescribing/{patient_id}/new-rx":{"post":{"tags":["eprescribing"],"summary":"Send a new prescription (NewRx) to a pharmacy via NCPDP SCRIPT","description":"Transmit a new prescription (NCPDP SCRIPT NewRx) to the specified pharmacy.\n\nThe prescribing clinician must hold the CLINICIAN or ADMIN role.  If a\n``medication_request_id`` is supplied, the drug details are drawn from the\nexisting FHIR MedicationRequest; otherwise ``drug_info`` must be provided.\n\nEPCS (controlled substances, DEA schedule CII-CV) is not supported in v1\nand will return HTTP 501.\n\nONC § 170.315(b)(3)","operationId":"send_new_rx_eprescribing__patient_id__new_rx_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__eprescribing__NewRxRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewRxResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eprescribing/{patient_id}/cancel":{"post":{"tags":["eprescribing"],"summary":"Cancel an existing prescription (CancelRx) via NCPDP SCRIPT","description":"Transmit a CancelRx message to withdraw a previously sent prescription.\n\nONC § 170.315(b)(3)","operationId":"cancel_rx_eprescribing__patient_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRxRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRxResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eprescribing/renewal-response":{"post":{"tags":["eprescribing"],"summary":"Respond to a pharmacy's RxRenewalRequest","description":"Approve or deny a pharmacy's RxRenewalRequest.\n\nONC § 170.315(b)(3)","operationId":"send_renewal_response_eprescribing_renewal_response_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RxRenewalResponseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RxRenewalResponseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eprescribing/change-response":{"post":{"tags":["eprescribing"],"summary":"Respond to a pharmacy's RxChangeRequest","description":"Approve or deny a pharmacy's RxChangeRequest (e.g. generic substitution).\n\nONC § 170.315(b)(3)","operationId":"send_change_response_eprescribing_change_response_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RxChangeResponseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RxChangeResponseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eprescribing/receive/renewal-request":{"post":{"tags":["eprescribing"],"summary":"Receive an inbound RxRenewalRequest from a pharmacy","description":"Accept and persist an inbound RxRenewalRequest from a pharmacy.\n\nThe message is stored as a FHIR Task with status=requested so that a\nclinician can review and respond via POST /renewal-response.\n\nONC § 170.315(b)(3)","operationId":"receive_renewal_request_eprescribing_receive_renewal_request_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RxRenewalRequestBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eprescribing/receive/change-request":{"post":{"tags":["eprescribing"],"summary":"Receive an inbound RxChangeRequest from a pharmacy","description":"Accept and persist an inbound RxChangeRequest from a pharmacy.\n\nONC § 170.315(b)(3)","operationId":"receive_change_request_eprescribing_receive_change_request_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RxChangeRequestBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eprescribing/receive/rx-fill":{"post":{"tags":["eprescribing"],"summary":"Receive an inbound RxFill notification from a pharmacy","description":"Accept and persist an inbound RxFill notification from a pharmacy.\n\nThe fill event is stored as a FHIR Task (status=completed) and also\ncreates a FHIR MedicationDispense resource recording the dispense.\n\nONC § 170.315(b)(3)","operationId":"receive_rx_fill_eprescribing_receive_rx_fill_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RxFillBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eprescribing/{patient_id}/transmissions":{"get":{"tags":["eprescribing"],"summary":"List e-prescribing transmissions for a patient","description":"Return all NCPDP SCRIPT transmissions (FHIR Tasks) for a patient.\n\nONC § 170.315(b)(3), ONC § 170.315(d)(2)","operationId":"list_transmissions_eprescribing__patient_id__transmissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"message_type","in":"query","required":false,"schema":{"type":"string","description":"Filter by message type (e.g. NewRx, RxFill)","default":"","title":"Message Type"},"description":"Filter by message type (e.g. NewRx, RxFill)"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TransmissionSummary"},"title":"Response List Transmissions Eprescribing  Patient Id  Transmissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit/events":{"get":{"tags":["audit"],"summary":"Query audit events (ONC § 170.315(d)(2))","description":"Return metadata about the audit log query surface.\n\nThe canonical audit store is the BigQuery view\n``sphereehr_audit_logs.onc_d02_audit_events``.  This endpoint records\nthe access event (AUDIT_LOG_ACCESS) per ONC § 170.315(d)(2) and returns\nquery instructions; direct BQ access is required for large result sets.\n\nRequires ADMIN role.","operationId":"query_audit_events_audit_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by event_type","title":"Event Type"},"description":"Filter by event_type"},{"name":"uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by subject UID","title":"Uid"},"description":"Filter by subject UID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Query Audit Events Audit Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit/config-status":{"get":{"tags":["audit"],"summary":"Audit configuration status (ONC § 170.315(d)(10))","description":"Return the current audit logging configuration status.\n\nONC § 170.315(d)(10) requires that every action on a patient's EHI is\nauditable and that audit cannot be disabled by a non-admin user.\n\nThis endpoint:\n- Records an AUDIT_LOG_ACCESS event (so audit-log-access is itself audited).\n- Returns the infrastructure-level audit controls that are in place.\n\nDisabling any of the controls listed below requires ``roles/logging.configWriter``\nat the *organisation* level — standard project admins do not hold this role.\n\nRequires ADMIN role.","operationId":"audit_config_status_audit_config_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Audit Config Status Audit Config Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit/reports/events":{"get":{"tags":["audit-reports"],"summary":"Query audit report (ONC § 170.315(d)(3))","description":"Return a filterable audit report query and metadata.\n\nAudit events are stored in BigQuery; this endpoint records the access\n(AUDIT_LOG_ACCESS per ONC § 170.315(d)(2)/(d)(3)) and returns the\nparameterised BigQuery SQL that retrieves matching events.\n\nRequires ADMIN or AUDITOR role.","operationId":"query_audit_report_audit_reports_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by subject UID","title":"User Uid"},"description":"Filter by subject UID"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive start date (YYYY-MM-DD)","title":"Date From"},"description":"Inclusive start date (YYYY-MM-DD)"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive end date (YYYY-MM-DD)","title":"Date To"},"description":"Inclusive end date (YYYY-MM-DD)"},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by event type constant","title":"Event Type"},"description":"Filter by event type constant"},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by patient resource_id","title":"Patient Id"},"description":"Filter by patient resource_id"},{"name":"source_ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by originating client IP","title":"Source Ip"},"description":"Filter by originating client IP"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Query Audit Report Audit Reports Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit/reports/export":{"get":{"tags":["audit-reports"],"summary":"Export audit report as CSV or PDF (ONC § 170.315(d)(3))","description":"Export the audit report as CSV or PDF.\n\nRecords AUDIT_LOG_ACCESS before generating the export.\nReturns a downloadable file attachment.\n\nRequires ADMIN or AUDITOR role.","operationId":"export_audit_report_audit_reports_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(csv|pdf)$","description":"Export format: csv or pdf","default":"csv","title":"Format"},"description":"Export format: csv or pdf"},{"name":"user_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Uid"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"source_ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mfa/status":{"get":{"tags":["mfa"],"summary":"List enrolled MFA factors for the current user (ONC § 170.315(d)(13))","description":"Return the MFA factors enrolled for the authenticated user.\n\nTOTP and SMS factors are managed by Firebase; the count returned here\ncomes from the Firebase ID-token claims.  WebAuthn credentials and\nrecovery-code presence are tracked by this application layer.","operationId":"mfa_status_mfa_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mfa Status Mfa Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mfa/recovery-codes/generate":{"post":{"tags":["mfa"],"summary":"Generate recovery codes for the current user (ONC § 170.315(d)(13))","description":"Generate a new set of recovery codes, invalidating any existing ones.\n\nCodes are stored as SHA-256 hashes.  The plaintext codes are returned\n**once** and must be saved by the user.  This action is audited.\n\nRequires a fully MFA-authenticated session.  Any role may generate codes.","operationId":"generate_recovery_codes_mfa_recovery_codes_generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Generate Recovery Codes Mfa Recovery Codes Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mfa/recovery/use":{"post":{"tags":["mfa"],"summary":"Authenticate using a recovery code (ONC § 170.315(d)(13))","description":"Consume a one-time recovery code and return a short-lived bypass token.\n\nThis endpoint does NOT require an existing MFA session — it is the\nfallback when the user cannot access their second factor.  The bypass\ntoken must be included in the subsequent POST /auth/session call to\ncreate a full session.\n\nEvery use (success or failure) is audited per ONC § 170.315(d)(13).","operationId":"use_recovery_code_mfa_recovery_use_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Use Recovery Code Mfa Recovery Use Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mfa/webauthn/register/begin":{"post":{"tags":["mfa"],"summary":"Begin WebAuthn hardware-key registration (ONC § 170.315(d)(13))","description":"Return a WebAuthn registration challenge for the browser to sign.\n\nThe browser passes the response to POST /mfa/webauthn/register/complete.\nRequires a verified first-factor session so users can bootstrap MFA.","operationId":"webauthn_register_begin_mfa_webauthn_register_begin_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Webauthn Register Begin Mfa Webauthn Register Begin Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mfa/webauthn/register/complete":{"post":{"tags":["mfa"],"summary":"Complete WebAuthn hardware-key registration (ONC § 170.315(d)(13))","description":"Verify a WebAuthn registration response and store the credential.","operationId":"webauthn_register_complete_mfa_webauthn_register_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnRegisterCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Webauthn Register Complete Mfa Webauthn Register Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mfa/webauthn/authenticate/begin":{"post":{"tags":["mfa"],"summary":"Begin WebAuthn authentication challenge (ONC § 170.315(d)(13))","description":"Return a WebAuthn authentication challenge.\n\nCalled after the user has supplied their password (first factor).  This\nendpoint does NOT require an existing MFA session so it can serve as the\nsecond-factor gate.","operationId":"webauthn_authenticate_begin_mfa_webauthn_authenticate_begin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnAuthBeginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Webauthn Authenticate Begin Mfa Webauthn Authenticate Begin Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mfa/webauthn/authenticate/complete":{"post":{"tags":["mfa"],"summary":"Complete WebAuthn authentication (ONC § 170.315(d)(13))","description":"Verify a WebAuthn authentication response.\n\nOn success, returns a short-lived bypass_token that can be included in\nPOST /auth/session to create a full session without requiring the\nFirebase `sign_in_second_factor` claim.  This satisfies the MFA\nrequirement at the application layer.","operationId":"webauthn_authenticate_complete_mfa_webauthn_authenticate_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnAuthCompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Webauthn Authenticate Complete Mfa Webauthn Authenticate Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/smart-configuration":{"get":{"tags":["smart-auth"],"summary":"Smart Configuration","description":"Return SMART App Launch Framework v2.2.0 server metadata.\n\nRequired by ONC § 170.315(g)(7) and § 170.315(g)(9). Inferno's discovery\ntest group asserts every field below; the per-resource scopes_supported\nentries must mirror the resource types in /metadata.","operationId":"smart_configuration__well_known_smart_configuration_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Smart Configuration  Well Known Smart Configuration Get"}}}}}}},"/fhir/r4/.well-known/smart-configuration":{"get":{"tags":["smart-auth"],"summary":"Smart Configuration","description":"Return SMART App Launch Framework v2.2.0 server metadata.\n\nRequired by ONC § 170.315(g)(7) and § 170.315(g)(9). Inferno's discovery\ntest group asserts every field below; the per-resource scopes_supported\nentries must mirror the resource types in /metadata.","operationId":"smart_configuration_fhir_r4__well_known_smart_configuration_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Smart Configuration Fhir R4  Well Known Smart Configuration Get"}}}}}}},"/.well-known/openid-configuration":{"get":{"tags":["smart-auth"],"summary":"Openid Configuration","description":"OpenID Connect Discovery 1.0 metadata.\n\nSibling document to /.well-known/smart-configuration — Inferno (g)(10)\ntests 1.11.02-1.11.06 (and equivalents in scenarios 2/3) fetch this\nendpoint to verify id_token issuance plumbing. Field set follows\nhttps://openid.net/specs/openid-connect-discovery-1_0.html §3.","operationId":"openid_configuration__well_known_openid_configuration_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Openid Configuration  Well Known Openid Configuration Get"}}}}}}},"/.well-known/jwks.json":{"get":{"tags":["smart-auth"],"summary":"Server Jwks","description":"Server JWKS endpoint advertised in /.well-known/smart-configuration.\n\nPublishes the public RSA signing key used for OpenID Connect id_tokens.\nAccess tokens themselves remain opaque (verified via introspection),\nbut Inferno's SMART tests fetch this endpoint to verify id_token\nsignatures when ``openid`` scope is exercised.","operationId":"server_jwks__well_known_jwks_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/apps":{"post":{"tags":["smart-auth"],"summary":"Register App","description":"Register a new SMART on FHIR client application (admin only).\n\nIssues a ``client_id``; public clients must use PKCE.","operationId":"register_app_oauth_apps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartClientCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["smart-auth"],"summary":"List Apps","description":"List all registered SMART clients (admin only).","operationId":"list_apps_oauth_apps_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmartClientResponse"},"title":"Response List Apps Oauth Apps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/apps/{client_id}":{"get":{"tags":["smart-auth"],"summary":"Get App","description":"Get a registered SMART client by client_id (admin only).","operationId":"get_app_oauth_apps__client_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["smart-auth"],"summary":"Deregister App","description":"Deregister a SMART client (admin only).  Revokes all active tokens.","operationId":"deregister_app_oauth_apps__client_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/launch":{"post":{"tags":["smart-auth"],"summary":"Mint Launch Token","description":"Mint a one-shot EHR-launch token bound to a patient (+ optional encounter).\n\nThe admin UI at /admin/ehr-launch builds the SMART launch URL\n    <smart_app_launch_url>?iss=<fhir_base>&launch=<token>\nfrom the response. When the SMART app then redirects the user to\n/oauth/authorize?...&launch=<token>, the token is resolved to launch\ncontext and the bound patient becomes the consent-screen pre-selection.\n\nAdmin-only. One-time use. TTL is `_LAUNCH_TOKEN_TTL_SECONDS`.","operationId":"mint_launch_token_oauth_launch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchTokenCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/apps/backend":{"post":{"tags":["smart-auth"],"summary":"Register Backend Client","description":"Register a SMART Backend Services client (admin only).\n\nBackend service clients authenticate using JWT assertions signed with a\nprivate key whose public counterpart is registered here as a JWKS.\n\nONC § 170.315(g)(9) — Application Access: All Data Request.\nSMART Backend Services: https://hl7.org/fhir/smart-app-launch/backend-services.html","operationId":"register_backend_client_oauth_apps_backend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendClientCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/authorize":{"get":{"tags":["smart-auth"],"summary":"Oauth Authorize Get","description":"GET form of the SMART authorization endpoint.","operationId":"oauth_authorize_get_oauth_authorize_get","parameters":[{"name":"response_type","in":"query","required":true,"schema":{"type":"string","title":"Response Type"}},{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","title":"Redirect Uri"}},{"name":"scope","in":"query","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}},{"name":"aud","in":"query","required":true,"schema":{"type":"string","description":"FHIR base URL (SMART requirement)","title":"Aud"},"description":"FHIR base URL (SMART requirement)"},{"name":"launch","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launch"}},{"name":"code_challenge","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Challenge Method"}},{"name":"patient","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pre-selected patient ID (EHR launch)","title":"Patient"},"description":"Pre-selected patient ID (EHR launch)"},{"name":"nonce","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"OpenID Connect nonce (mirrored back in id_token)","title":"Nonce"},"description":"OpenID Connect nonce (mirrored back in id_token)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["smart-auth"],"summary":"Oauth Authorize Post","description":"POST form of the SMART authorization endpoint.\n\nSMART App Launch v2.2.0 `authorize-post` capability: clients may submit\nthe authorization request as `application/x-www-form-urlencoded` POST\ninstead of GET query parameters. Inferno (g)(10) Scenario 3 (EHR\nPractitioner App) drives this path.","operationId":"oauth_authorize_post_oauth_authorize_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_oauth_authorize_post_oauth_authorize_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/authorize/approve":{"post":{"tags":["smart-auth"],"summary":"Oauth Approve","description":"Exchange a consent_token for an authorization code.\n\nCalled by the Next.js consent page after the user approves access.\nReturns the authorization code to be sent back to the SMART app via\nredirect.  The caller (Next.js route handler) performs the redirect.\n\nPatient ID scoping: the issued authorization code is bound to *patient_id*.\nThe resulting access token will carry ``patient`` context.","operationId":"oauth_approve_oauth_authorize_approve_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_oauth_approve_oauth_authorize_approve_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Oauth Approve Oauth Authorize Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/authorize/deny":{"post":{"tags":["smart-auth"],"summary":"Oauth Deny","description":"Record access denial and return the error redirect URL.","operationId":"oauth_deny_oauth_authorize_deny_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_oauth_deny_oauth_authorize_deny_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Oauth Deny Oauth Authorize Deny Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/token":{"post":{"tags":["smart-auth"],"summary":"Oauth Token","description":"Token endpoint supporting two grant types:\n\n1. ``authorization_code`` — SMART App Launch (RFC 6749 §4.1.3, PKCE required for public clients).\n2. ``urn:ietf:params:oauth:grant-type:jwt-bearer`` — SMART Backend Services\n   (client_credentials with asymmetric key, RFC 7521 / RFC 7523).\n\nONC § 170.315(g)(7) — Patient Selection (authorization_code).\nONC § 170.315(g)(9) — All Data Request (JWT Bearer / Backend Services).","operationId":"oauth_token_oauth_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_oauth_token_oauth_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/smart-style.json":{"get":{"tags":["smart-auth"],"summary":"Smart Style","description":"SMART App Launch v2 §5.1.3 style sheet for EHR-launched apps.\n\nInferno's EHR Launch tests assert this URL (advertised in the token\nresponse's ``smart_style_url`` field) returns valid JSON and is reachable\nwithout authentication. The exact properties are implementation-specific;\nwe ship a neutral palette so apps don't crash on missing keys.","operationId":"smart_style_smart_style_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/token/revoke":{"post":{"tags":["smart-auth"],"summary":"Revoke Token","description":"Revoke a SMART access or refresh token (RFC 7009).\n\nAlways returns 204 (even for unknown tokens — RFC 7009 §2.2).","operationId":"revoke_token_oauth_token_revoke_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_revoke_token_oauth_token_revoke_post"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/token/introspect":{"post":{"tags":["smart-auth"],"summary":"Introspect Token","description":"RFC 7662 token introspection.\n\nSMART App Launch v2 §6 expects this endpoint to be callable by resource\nservers and (for cert testing) by Inferno itself. We accept either:\n  * HTTP Basic auth carrying a registered SMART client_id (no secret\n    check — public clients), OR\n  * a request from a caller that already possesses a valid SMART access\n    token in the Authorization header (proof-of-possession).\nReturns ``{\"active\": false}`` for any unknown / expired token (per spec).","operationId":"introspect_token_oauth_token_introspect_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_introspect_token_oauth_token_introspect_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Introspect Token Oauth Token Introspect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Patient/{patient_id}/$everything":{"get":{"tags":["patient-access"],"summary":"Patient Everything","description":"FHIR Patient/$everything operation — returns all USCDI v3 data for a patient.\n\nRequires ``patient/*.read`` scope (SMART token) or a clinician / admin\nFirebase token.  SMART tokens are additionally validated to ensure they\nare bound to *patient_id*.\n\nONC § 170.315(g)(7) — Application Access: Patient Selection.","operationId":"patient_everything_Patient__patient_id___everything_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 start date filter","title":" Start"},"description":"ISO-8601 start date filter"},{"name":"_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 end date filter","title":" End"},"description":"ISO-8601 end date filter"},{"name":"_count","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"title":" Count"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patient Everything Patient  Patient Id   Everything Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bulk-export/readiness":{"get":{"tags":["bulk-export"],"summary":"Bulk Export Readiness","description":"Return non-PHI Bulk Data readiness metadata for cert preflight probes.","operationId":"bulk_export_readiness_bulk_export_readiness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Bulk Export Readiness Bulk Export Readiness Get"}}}}}}},"/Patient/$export":{"get":{"tags":["bulk-export"],"summary":"Patient Export","description":"Kick off a FHIR Bulk Data export for the entire patient population.\n\nReturns HTTP 202 Accepted with a ``Content-Location`` header pointing to the\nstatus polling endpoint.  Poll that URL until you receive 200 with the\nNDJSON manifest.\n\nONC § 170.315(g)(9) — Application Access: All Data Request.\nFHIR Bulk Data Access v2: http://hl7.org/fhir/uv/bulkdata/","operationId":"patient_export_Patient__export_get","parameters":[{"name":"_outputFormat","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Must be application/fhir+ndjson if specified","title":" Outputformat"},"description":"Must be application/fhir+ndjson if specified"},{"name":"_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 timestamp filter","title":" Since"},"description":"ISO-8601 timestamp filter"},{"name":"_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-delimited list of FHIR resource types to export","title":" Type"},"description":"Comma-delimited list of FHIR resource types to export"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/Group/{group_id}/$export":{"get":{"tags":["bulk-export"],"summary":"Group Export","description":"Kick off a FHIR Bulk Data export for a specific Group.\n\nBehaviour mirrors ``/Patient/$export`` but scopes resources to members of the\nspecified Group resource (FHIR ``Group/{group_id}``).\n\nONC § 170.315(g)(9) — Application Access: All Data Request.","operationId":"group_export_Group__group_id___export_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"_outputFormat","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Outputformat"}},{"name":"_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Since"}},{"name":"_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Type"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bulk-status/{job_id}":{"get":{"tags":["bulk-export"],"summary":"Bulk Status","description":"Poll the status of a bulk export job.\n\nReturns:\n- ``202 Accepted`` + ``X-Progress`` header while the job is running.\n- ``200 OK`` with a NDJSON manifest JSON body when complete.\n- ``5xx OperationOutcome`` JSON if the job failed.\n\nThe manifest ``output`` array lists per-resource-type NDJSON files at\nsigned GCS URLs (1-hour TTL).\n\nFHIR Bulk Data Access v2 §3.3: https://hl7.org/fhir/uv/bulkdata/export.html","operationId":"bulk_status_bulk_status__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["bulk-export"],"summary":"Cancel Export","description":"Cancel a bulk export job.\n\nReturns 202 Accepted while the cancellation is being processed.\nSubsequent GET on the same URL returns 404.\n\nFHIR Bulk Data Access v2 §3.4: DELETE kick-off request.","operationId":"cancel_export_bulk_status__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bulk-export/files/{job_id}/{filename}":{"get":{"tags":["bulk-export"],"summary":"Download Ndjson","description":"Serve a signed NDJSON export file.\n\nThree gates, all must pass:\n1. Bearer token with ``system/*.read`` (Bulk Data v2 § 3.5 requires the\n   manifest ``output`` files to honor ``requiresAccessToken: true``).\n2. ``expires`` is in the future.\n3. The HMAC-SHA256 signature in ``sig`` matches a fresh computation over\n   the canonical ``job_id | resource_type | expires`` string under the\n   server signing secret.","operationId":"download_ndjson_bulk_export_files__job_id___filename__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"expires","in":"query","required":true,"schema":{"type":"integer","description":"Unix epoch seconds when the URL expires","title":"Expires"},"description":"Unix epoch seconds when the URL expires"},{"name":"sig","in":"query","required":true,"schema":{"type":"string","description":"HMAC-SHA256 signature over job_id|resource_type|expires","title":"Sig"},"description":"HMAC-SHA256 signature over job_id|resource_type|expires"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/services-base-url":{"get":{"tags":["g10-standardized-api"],"summary":"Service Base URL list (FHIR Bundle)","description":"Public, unauthenticated list of FHIR service base URLs for every Sphere-EHR deployment, per 45 CFR § 170.404(b)(2). Verified by Inferno's Service Base URL Test Kit.","operationId":"services_base_url_list_services_base_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/services-base-url.ndjson":{"get":{"tags":["g10-standardized-api"],"summary":"Service Base URL list (NDJSON)","description":"NDJSON variant — one resource per line.\n\nInferno accepts either JSON Bundle or NDJSON; we publish both for\ncompatibility with third-party indexers that prefer streamable lines.","operationId":"services_base_url_list_ndjson_services_base_url_ndjson_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/metadata":{"get":{"tags":["g10-standardized-api"],"summary":"FHIR R4 CapabilityStatement","description":"Returns the FHIR R4 CapabilityStatement asserting US Core 6.1.0 conformance and SMART on FHIR v2 security. ONC § 170.315(g)(10).","operationId":"capability_statement_metadata_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/fhir/r4/metadata":{"get":{"tags":["g10-standardized-api"],"summary":"FHIR R4 CapabilityStatement at the FHIR base","description":"Returns the same CapabilityStatement as /metadata at the FHIR base URL used by SMART applications and Inferno.","operationId":"capability_statement_fhir_r4_metadata_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/fhir/r4/bulk-export/readiness":{"get":{"tags":["bulk-export"],"summary":"Bulk Export Readiness","description":"Return non-PHI Bulk Data readiness metadata for cert preflight probes.","operationId":"bulk_export_readiness_fhir_r4_bulk_export_readiness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Bulk Export Readiness Fhir R4 Bulk Export Readiness Get"}}}}}}},"/fhir/r4/Patient/$export":{"get":{"tags":["bulk-export"],"summary":"Patient Export","description":"Kick off a FHIR Bulk Data export for the entire patient population.\n\nReturns HTTP 202 Accepted with a ``Content-Location`` header pointing to the\nstatus polling endpoint.  Poll that URL until you receive 200 with the\nNDJSON manifest.\n\nONC § 170.315(g)(9) — Application Access: All Data Request.\nFHIR Bulk Data Access v2: http://hl7.org/fhir/uv/bulkdata/","operationId":"patient_export_fhir_r4_Patient__export_get","parameters":[{"name":"_outputFormat","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Must be application/fhir+ndjson if specified","title":" Outputformat"},"description":"Must be application/fhir+ndjson if specified"},{"name":"_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 timestamp filter","title":" Since"},"description":"ISO-8601 timestamp filter"},{"name":"_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-delimited list of FHIR resource types to export","title":" Type"},"description":"Comma-delimited list of FHIR resource types to export"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/r4/Group/{group_id}/$export":{"get":{"tags":["bulk-export"],"summary":"Group Export","description":"Kick off a FHIR Bulk Data export for a specific Group.\n\nBehaviour mirrors ``/Patient/$export`` but scopes resources to members of the\nspecified Group resource (FHIR ``Group/{group_id}``).\n\nONC § 170.315(g)(9) — Application Access: All Data Request.","operationId":"group_export_fhir_r4_Group__group_id___export_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"_outputFormat","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Outputformat"}},{"name":"_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Since"}},{"name":"_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Type"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/r4/bulk-status/{job_id}":{"get":{"tags":["bulk-export"],"summary":"Bulk Status","description":"Poll the status of a bulk export job.\n\nReturns:\n- ``202 Accepted`` + ``X-Progress`` header while the job is running.\n- ``200 OK`` with a NDJSON manifest JSON body when complete.\n- ``5xx OperationOutcome`` JSON if the job failed.\n\nThe manifest ``output`` array lists per-resource-type NDJSON files at\nsigned GCS URLs (1-hour TTL).\n\nFHIR Bulk Data Access v2 §3.3: https://hl7.org/fhir/uv/bulkdata/export.html","operationId":"bulk_status_fhir_r4_bulk_status__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["bulk-export"],"summary":"Cancel Export","description":"Cancel a bulk export job.\n\nReturns 202 Accepted while the cancellation is being processed.\nSubsequent GET on the same URL returns 404.\n\nFHIR Bulk Data Access v2 §3.4: DELETE kick-off request.","operationId":"cancel_export_fhir_r4_bulk_status__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/r4/bulk-export/files/{job_id}/{filename}":{"get":{"tags":["bulk-export"],"summary":"Download Ndjson","description":"Serve a signed NDJSON export file.\n\nThree gates, all must pass:\n1. Bearer token with ``system/*.read`` (Bulk Data v2 § 3.5 requires the\n   manifest ``output`` files to honor ``requiresAccessToken: true``).\n2. ``expires`` is in the future.\n3. The HMAC-SHA256 signature in ``sig`` matches a fresh computation over\n   the canonical ``job_id | resource_type | expires`` string under the\n   server signing secret.","operationId":"download_ndjson_fhir_r4_bulk_export_files__job_id___filename__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"expires","in":"query","required":true,"schema":{"type":"integer","description":"Unix epoch seconds when the URL expires","title":"Expires"},"description":"Unix epoch seconds when the URL expires"},{"name":"sig","in":"query","required":true,"schema":{"type":"string","description":"HMAC-SHA256 signature over job_id|resource_type|expires","title":"Sig"},"description":"HMAC-SHA256 signature over job_id|resource_type|expires"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/r4/Patient/{patient_id}/$everything":{"get":{"tags":["patient-access"],"summary":"Patient Everything","description":"FHIR Patient/$everything operation — returns all USCDI v3 data for a patient.\n\nRequires ``patient/*.read`` scope (SMART token) or a clinician / admin\nFirebase token.  SMART tokens are additionally validated to ensure they\nare bound to *patient_id*.\n\nONC § 170.315(g)(7) — Application Access: Patient Selection.","operationId":"patient_everything_fhir_r4_Patient__patient_id___everything_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 start date filter","title":" Start"},"description":"ISO-8601 start date filter"},{"name":"_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 end date filter","title":" End"},"description":"ISO-8601 end date filter"},{"name":"_count","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"title":" Count"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patient Everything Fhir R4 Patient  Patient Id   Everything Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/r4/{resource_type}/{resource_id}":{"get":{"tags":["g10-standardized-api"],"summary":"FHIR R4 Read","description":"Read a FHIR R4 resource by type and logical ID. Requires SMART auth.","operationId":"fhir_read_fhir_r4__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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/r4/{resource_type}":{"get":{"tags":["g10-standardized-api"],"summary":"FHIR R4 Search","description":"Search-type interaction for USCDI v3 resources. Requires SMART auth. Pass FHIR search parameters as query string (e.g. ?patient=Patient/123).","operationId":"fhir_search_fhir_r4__resource_type__get","parameters":[{"name":"resource_type","in":"path","required":true,"schema":{"type":"string","title":"Resource Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/r4/{resource_type}/_search":{"post":{"tags":["g10-standardized-api"],"summary":"FHIR R4 POST Search","description":"FHIR search interaction using POST with application/x-www-form-urlencoded parameters. Inferno US Core tests may exercise this form.","operationId":"fhir_post_search_fhir_r4__resource_type___search_post","parameters":[{"name":"resource_type","in":"path","required":true,"schema":{"type":"string","title":"Resource Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/family-history":{"post":{"tags":["family-history"],"summary":"Create Family Member History","description":"Create a new FamilyMemberHistory record linked to a patient.\n\nONC § 170.315(a)(12): Capture relationship, age, deceased flag,\nage-at-death, and list of conditions per family member.","operationId":"create_family_member_history_family_history_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamilyMemberHistoryRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamilyMemberHistoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["family-history"],"summary":"List Family Member Histories","description":"List all FamilyMemberHistory records for a patient.\n\nReturns an ordered list suitable for rendering a family history view.","operationId":"list_family_member_histories_family_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","description":"FHIR Patient resource ID","title":"Patient Id"},"description":"FHIR Patient resource ID"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FamilyMemberHistoryOut"},"title":"Response List Family Member Histories Family History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/family-history/{record_id}":{"get":{"tags":["family-history"],"summary":"Get Family Member History","description":"Fetch a single FamilyMemberHistory record by ID.","operationId":"get_family_member_history_family_history__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamilyMemberHistoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["family-history"],"summary":"Update Family Member History","description":"Update an existing FamilyMemberHistory record.","operationId":"update_family_member_history_family_history__record_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamilyMemberHistoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamilyMemberHistoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/implantable-devices":{"post":{"tags":["implantable-devices"],"summary":"Record Implantable Device","description":"Record an implantable device by UDI.\n\n1. Parses the UDI into DI + PI components.\n2. Looks up the DI in the FDA AccessGUDID database to populate device\n   attributes (brand, model, manufacturer, SNOMED type).\n3. Stores a FHIR R4 Device resource conforming to the US Core\n   Implantable Device profile.\n\nONC § 170.315(a)(14): User can record a device by UDI (typed or scanned).","operationId":"record_implantable_device_implantable_devices_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplantableDeviceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplantableDeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["implantable-devices"],"summary":"List Implantable Devices","description":"List all implantable devices for a patient (active and historical).\n\nReturns all Device resources linked to the patient, including inactive /\nhistorically removed implants.\n\nONC § 170.315(a)(14): Display list of active and historical devices on\npatient summary.","operationId":"list_implantable_devices_implantable_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","description":"FHIR Patient resource ID","title":"Patient Id"},"description":"FHIR Patient resource ID"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ImplantableDeviceOut"},"title":"Response List Implantable Devices Implantable Devices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/implantable-devices/{record_id}":{"get":{"tags":["implantable-devices"],"summary":"Get Implantable Device","description":"Fetch a single implantable device record by ID.","operationId":"get_implantable_device_implantable_devices__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplantableDeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["implantable-devices"],"summary":"Update Implantable Device","description":"Update an existing implantable device record (e.g. change status to inactive).","operationId":"update_implantable_device_implantable_devices__record_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplantableDeviceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplantableDeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sdoh":{"post":{"tags":["sdoh"],"summary":"Create Sdoh Observation","description":"Record an SDOH screening observation for a patient.\n\nONC § 170.315(a)(15): Capture social, psychological, and behavioral\nassessment data using standardised LOINC instruments.","operationId":"create_sdoh_observation_sdoh_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SDOHObservationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SDOHObservationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sdoh"],"summary":"List Sdoh Observations","description":"List all SDOH observations for a patient, optionally filtered by domain.","operationId":"list_sdoh_observations_sdoh_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","description":"FHIR Patient resource ID","title":"Patient Id"},"description":"FHIR Patient resource ID"},{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by SDOH domain key","title":"Domain"},"description":"Filter by SDOH domain key"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SDOHObservationOut"},"title":"Response List Sdoh Observations Sdoh Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sdoh/domains":{"get":{"tags":["sdoh"],"summary":"List Sdoh Domains","description":"Return the supported SDOH domain definitions with their LOINC codes.\n\nEach entry includes the regulatory citation (``§ 170.207(p)(N)``), the\nprimary LOINC instrument code, the full ``loinc_codes`` set the\nregulation enumerates for the domain, the LOINC answer-list ID for the\nstandard response set, and the UCUM units used when a numeric score is\nrecorded.","operationId":"list_sdoh_domains_sdoh_domains_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":true},"title":"Response List Sdoh Domains Sdoh Domains Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sdoh/{record_id}":{"get":{"tags":["sdoh"],"summary":"Get Sdoh Observation","description":"Fetch a single SDOH observation by ID.","operationId":"get_sdoh_observation_sdoh__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SDOHObservationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["sdoh"],"summary":"Update Sdoh Observation","description":"Update an existing SDOH observation.","operationId":"update_sdoh_observation_sdoh__record_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SDOHObservationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SDOHObservationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/care-plans":{"post":{"tags":["care-plans"],"summary":"Create Care Plan","description":"Author a care plan with goals and interventions for a patient.\n\nCreates Goal resources first, then a CarePlan that references them.\nONC § 170.315(b)(9): Care Plan.","operationId":"create_care_plan_care_plans_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarePlanRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarePlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["care-plans"],"summary":"List Care Plans","description":"List care plans for a patient (current and historical).\n\nONC § 170.315(b)(9): UI displays current and historical care plans.","operationId":"list_care_plans_care_plans_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","description":"FHIR Patient resource ID","title":"Patient Id"},"description":"FHIR Patient resource ID"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CarePlanOut"},"title":"Response List Care Plans Care Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/care-plans/{plan_id}":{"get":{"tags":["care-plans"],"summary":"Get Care Plan","description":"Fetch a single care plan with its linked goals.","operationId":"get_care_plan_care_plans__plan_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarePlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["care-plans"],"summary":"Update Care Plan","description":"Modify an existing care plan (title, status, goals, activities).\n\nExisting Goal resources referenced by the plan are preserved; new goals\nin the request body are created and appended.","operationId":"update_care_plan_care_plans__plan_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarePlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarePlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/care-plan/document/{patient_id}":{"post":{"tags":["care-plan-document"],"summary":"Generate Care Plan Document","description":"Generate a standalone C-CDA Care Plan document for a patient.\n\nReturns the document as ``application/xml`` bytes conforming to the C-CDA\nCare Plan document template (OID 2.16.840.1.113883.10.20.22.1.15) per\nONC § 170.315(b)(9)(i).","operationId":"generate_care_plan_document_care_plan_document__patient_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ehi/export/population":{"post":{"tags":["ehi-export"],"summary":"Export Population","description":"Kick off an async population-level EHI export.\n\nEnqueues a background job that produces one FHIR Bundle (NDJSON line)\nper patient.  Returns HTTP 202 with a ``Content-Location`` header for\npolling.\n\nAuth: Firebase bearer token with MFA satisfied (D01 + D13).\nRoles: ADMIN only (population scope is highly privileged).\n\nONC § 170.315(b)(10) — Electronic Health Information Export.","operationId":"export_population_ehi_export_population_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ehi/export/population/{job_id}":{"get":{"tags":["ehi-export"],"summary":"Population Export Status","description":"Poll the status of a population EHI export job.\n\nReturns 202 while in progress, 200 with manifest when complete.\n\nONC § 170.315(b)(10) — Electronic Health Information Export.","operationId":"population_export_status_ehi_export_population__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ehi/export/schema":{"get":{"tags":["ehi-export"],"summary":"Ehi Schema","description":"Return the machine-readable EHI data dictionary.\n\nDocuments every FHIR resource type and data element included in an\nEHI export, satisfying the ONC requirement for a documented schema.\n\nAuth: any authenticated user.\n\nONC § 170.315(b)(10) — Electronic Health Information Export.","operationId":"ehi_schema_ehi_export_schema_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ehi Schema Ehi Export Schema Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ehi/export/{patient_id}":{"post":{"tags":["ehi-export"],"summary":"Export Single Patient","description":"Export all EHI maintained on a single patient.\n\nReturns a FHIR R4 Bundle (type=\"document\") containing every resource\nassociated with the patient plus embedded export metadata.  A link to\nthe EHI data dictionary is included in the bundle.\n\nAuth: Firebase bearer token with MFA satisfied (D01 + D13).\nRoles: CLINICIAN, ADMIN.\n\nONC § 170.315(b)(10) — Electronic Health Information Export.","operationId":"export_single_patient_ehi_export__patient_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export Single Patient Ehi Export  Patient Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/":{"post":{"tags":["dsi"],"summary":"Create Dsi","description":"Create a new Decision Support Intervention (PlanDefinition).\n\nPersists the DSI as a FHIR R4 PlanDefinition with an ONC SAR extension.\nRequires ADMIN role.\n\nONC § 170.315(b)(11)(ii)(A) — bibliographic citation, source, funding.\nONC § 170.315(b)(11)(ii)(B) — release/revision date, beneficiary population.\nONC § 170.315(b)(11)(ii)(C) — evaluation results.\nONC § 170.315(b)(11)(ii)(D) — training data info (when ML-based).","operationId":"create_dsi_dsi__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDSIRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Dsi Dsi  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dsi"],"summary":"List Dsis","description":"List all configured DSIs (PlanDefinition resources).","operationId":"list_dsis_dsi__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Dsis Dsi  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/cds-hooks":{"get":{"tags":["dsi"],"summary":"Cds Hooks Discovery","description":"CDS Hooks 2.0 discovery: advertise registered hooks.\n\nReturns the well-known service manifest listing all active hook services.\nMust be registered before the /{dsi_id} parameterised route to avoid\n\"cds-hooks\" being captured as a dsi_id value.","operationId":"cds_hooks_discovery_dsi_cds_hooks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cds Hooks Discovery Dsi Cds Hooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/suppression":{"get":{"tags":["dsi"],"summary":"List Suppressions","description":"List DSI IDs currently suppressed by the requesting clinician.\n\nONC § 170.315(b)(11)(iii)(A) — user-specific suppression preferences are\nqueryable so they can be applied at chart-open / order-entry time.","operationId":"list_suppressions_dsi_suppression_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Suppressions Dsi Suppression Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/{dsi_id}":{"get":{"tags":["dsi"],"summary":"Get Dsi","description":"Retrieve a single DSI by PlanDefinition ID.","operationId":"get_dsi_dsi__dsi_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dsi_id","in":"path","required":true,"schema":{"type":"string","title":"Dsi Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dsi Dsi  Dsi Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/{dsi_id}/status":{"patch":{"tags":["dsi"],"summary":"Update Dsi Status","description":"Enable, disable, retire, or revert a DSI.\n\nONC § 170.315(b)(11)(iii)(A) — user can attribute / annotate / disable an intervention.","operationId":"update_dsi_status_dsi__dsi_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dsi_id","in":"path","required":true,"schema":{"type":"string","title":"Dsi Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDSIStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Dsi Status Dsi  Dsi Id  Status Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/feedback":{"post":{"tags":["dsi"],"summary":"Submit Feedback","description":"Capture clinician feedback on a DSI firing.\n\nFeedback is stored and queryable per ONC § 170.315(b)(11)(iii)(B).","operationId":"submit_feedback_dsi_feedback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DSIFeedbackRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Feedback Dsi Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/feedback/query":{"get":{"tags":["dsi"],"summary":"Query Feedback","description":"Query captured DSI feedback records.\n\nONC § 170.315(b)(11)(iii)(B) — feedback captured and queryable.\nRequires ADMIN role.","operationId":"query_feedback_dsi_feedback_query_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dsi_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dsi Id"}},{"name":"feedback_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Type"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Query Feedback Dsi Feedback Query Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/feedback/export":{"get":{"tags":["dsi"],"summary":"Export Feedback","description":"Export all feedback records for ONC § 170.315(b)(11) evidence collection.\n\nReturns a structured JSON payload suitable for submission as Drummond / ONC\ntest evidence.  Includes a manifest block with criterion reference, export\ntimestamp, filter parameters, and the flat feedback record array.\n\nRequires ADMIN role.","operationId":"export_feedback_dsi_feedback_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dsi_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by DSI ID","title":"Dsi Id"},"description":"Filter by DSI ID"},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 datetime — include records on or after this timestamp","title":"Since"},"description":"ISO-8601 datetime — include records on or after this timestamp"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export Feedback Dsi Feedback Export Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/{dsi_id}/suppress":{"put":{"tags":["dsi"],"summary":"Suppress Dsi","description":"Suppress a DSI for the current clinician.\n\nONC § 170.315(b)(11)(iii)(A) — users may configure which DSIs they see.\nThe suppression is per-clinician and per-DSI; it does not affect other users.\nSuppressed DSIs are excluded from inline CDS Hooks responses for this clinician.\n\nPer-rule audit trail: emits a DSI_SUPPRESSED event.","operationId":"suppress_dsi_dsi__dsi_id__suppress_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dsi_id","in":"path","required":true,"schema":{"type":"string","title":"Dsi Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Suppress Dsi Dsi  Dsi Id  Suppress Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dsi"],"summary":"Unsuppress Dsi","description":"Re-enable a previously suppressed DSI for the current clinician.\n\nPer-rule audit trail: emits a DSI_UNSUPPRESSED event.","operationId":"unsuppress_dsi_dsi__dsi_id__suppress_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dsi_id","in":"path","required":true,"schema":{"type":"string","title":"Dsi Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unsuppress Dsi Dsi  Dsi Id  Suppress Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi/cds-hooks/{hook_id}":{"post":{"tags":["dsi"],"summary":"Cds Hooks Invoke","description":"CDS Hooks 2.0 — invoke active DSIs registered for a given hook.\n\nONC § 170.315(b)(11)(i)(C) — at least one DSI uses CDS Hooks pattern.\n\nEvaluates all active PlanDefinition-backed DSIs whose trigger matches\n``hook_id`` and returns a CDS Hooks response with cards and system actions.","operationId":"cds_hooks_invoke_dsi_cds_hooks__hook_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"string","title":"Hook Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDSHooksRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDSHooksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cds-services":{"get":{"tags":["dsi"],"summary":"Cds Services Discovery","description":"CDS Hooks 2.0 canonical discovery path (no auth, no prefix).\n\nPer the CDS Hooks 2.0 spec the discovery endpoint MUST be served at\n`/cds-services` so third-party CDS clients can probe a well-known\nlocation. The auth-gated `/dsi/cds-hooks` mirror remains for clients\ninside the EHR that already carry a bearer token.","operationId":"cds_services_discovery_cds_services_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Cds Services Discovery Cds Services Get"}}}}}}},"/cqm/data":{"post":{"tags":["cqm"],"summary":"Record Cqm Data","description":"Record a QDM data element for a patient.\n\nPersists the element to FHIR as an Observation and caches it in the\nin-memory store for QRDA export.\n\nONC § 170.315(c)(1) — record data elements required to calculate eCQMs.","operationId":"record_cqm_data_cqm_data_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordCQMDataRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CQMDataElementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cqm"],"summary":"List Cqm Data","description":"List recorded CQM data elements, optionally filtered by patient or measure.\n\nONC § 170.315(c)(1) — access the recorded data elements.","operationId":"list_cqm_data_cqm_data_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"measure_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MeasureId"},{"type":"null"}],"title":"Measure Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Cqm Data Cqm Data Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/export/batch/{measure_id}":{"get":{"tags":["cqm"],"summary":"Export Qrda Category I Batch","description":"Export QRDA Category I documents for many patients in a single ZIP.\n\nIterates over every patient with at least one data element for the\nmeasure (or the supplied ``patient_ids`` subset), builds a QRDA Cat I\ndocument per patient, and returns the archive as ``application/zip``.\n\nReturns 404 if no patients have data for the measure.\n\nONC § 170.315(c)(1) — multi-patient QRDA Cat I export.","operationId":"export_qrda_category_i_batch_cqm_export_batch__measure_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"measure_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MeasureId"}},{"name":"patient_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Optional patient ID filter; if omitted, every patient with data for the measure is included","title":"Patient Ids"},"description":"Optional patient ID filter; if omitted, every patient with data for the measure is included"},{"name":"measurement_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional QRDA reporting period start YYYY-MM-DD","title":"Measurement Period Start"},"description":"Optional QRDA reporting period start YYYY-MM-DD"},{"name":"measurement_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional QRDA reporting period end YYYY-MM-DD","title":"Measurement Period End"},"description":"Optional QRDA reporting period end YYYY-MM-DD"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/export/{patient_id}/{measure_id}":{"get":{"tags":["cqm"],"summary":"Export Qrda Category I","description":"Export a QRDA Category I document for one patient and one eCQM.\n\nReturns an XML document conforming to the HL7 QRDA Category I template.\n\nONC § 170.315(c)(1) — export QRDA Cat I per patient per measure.","operationId":"export_qrda_category_i_cqm_export__patient_id___measure_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"measure_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MeasureId"}},{"name":"measurement_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional QRDA reporting period start YYYY-MM-DD","title":"Measurement Period Start"},"description":"Optional QRDA reporting period start YYYY-MM-DD"},{"name":"measurement_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional QRDA reporting period end YYYY-MM-DD","title":"Measurement Period End"},"description":"Optional QRDA reporting period end YYYY-MM-DD"},{"name":"preserve_imported_xml","in":"query","required":false,"schema":{"type":"boolean","description":"Preserve imported QRDA XML snippets when available","default":true,"title":"Preserve Imported Xml"},"description":"Preserve imported QRDA XML snippets when available"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/measures":{"get":{"tags":["cqm"],"summary":"List Measures","description":"List the eCQMs supported by this system.\n\nONC § 170.315(c)(1) — enumerate available eCQMs.","operationId":"list_measures_cqm_measures_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Measures Cqm Measures Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/import":{"post":{"tags":["cqm-c02"],"summary":"Import Qrda Category I","description":"Import a QRDA Category I document, extract QDM elements, and calculate scores.\n\nAccepts raw XML in the request body (Content-Type: application/xml).\nParses patient data and QDM data elements from the CDA document, stores\nthem in the local data store, then runs the CQL-equivalent measure scoring\nengine for each referenced eCQM.\n\nONC § 170.315(c)(2) — CQMs: Import and Calculate.","operationId":"import_qrda_category_i_cqm_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportQRDAResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/scores":{"get":{"tags":["cqm-c02"],"summary":"Get Measure Scores","description":"Query persisted measure scores by reporting period and/or patient.\n\nONC § 170.315(c)(2) — persist results queryable by reporting period.","operationId":"get_measure_scores_cqm_scores_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by patient ID","title":"Patient Id"},"description":"Filter by patient ID"},{"name":"measure_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MeasureId"},{"type":"null"}],"description":"Filter by eCQM","title":"Measure Id"},"description":"Filter by eCQM"},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to scores whose period_start >= this date (YYYY-MM-DD)","title":"Period Start"},"description":"Filter to scores whose period_start >= this date (YYYY-MM-DD)"},{"name":"period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to scores whose period_end <= this date (YYYY-MM-DD)","title":"Period End"},"description":"Filter to scores whose period_end <= this date (YYYY-MM-DD)"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Measure Scores Cqm Scores Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/calculate/{patient_id}":{"post":{"tags":["cqm-c02"],"summary":"Calculate Scores For Patient","description":"(Re-)calculate measure scores for a patient using their stored QDM elements.\n\nUseful for recalculating after new data elements have been recorded via\nthe C01 record endpoint, without requiring a fresh QRDA-I import.\n\nONC § 170.315(c)(2) — calculate measure scores.","operationId":"calculate_scores_for_patient_cqm_calculate__patient_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"measure_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MeasureId"},{"type":"null"}],"description":"Limit to one eCQM","title":"Measure Id"},"description":"Limit to one eCQM"},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reporting period start (YYYY-MM-DD); defaults to Jan 1 of current year","title":"Period Start"},"description":"Reporting period start (YYYY-MM-DD); defaults to Jan 1 of current year"},{"name":"period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reporting period end (YYYY-MM-DD); defaults to Dec 31 of current year","title":"Period End"},"description":"Reporting period end (YYYY-MM-DD); defaults to Dec 31 of current year"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Calculate Scores For Patient Cqm Calculate  Patient Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/report":{"get":{"tags":["cqm-c03"],"summary":"Generate Qrda Category Iii","description":"Generate a QRDA Category III aggregate report for the given period.\n\nAggregates individual patient measure scores (calculated by C02) into\npopulation-level counts (initial population, denominator, numerator,\ndenominator exclusions) and performance rates per eCQM.\n\nSupports two output formats:\n- **json** (default): Returns a structured JSON summary for API consumers.\n- **xml**: Returns a QRDA Category III CDA XML document suitable for\n  direct submission to CMS.  The document conforms to the CMS QRDA-III\n  Implementation Guide and can be validated against the CMS-published\n  schematron rules.\n\nONC § 170.315(c)(3) — CQMs: Report.","operationId":"generate_qrda_category_iii_cqm_report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period_start","in":"query","required":true,"schema":{"type":"string","description":"Reporting period start date (YYYY-MM-DD)","title":"Period Start"},"description":"Reporting period start date (YYYY-MM-DD)"},{"name":"period_end","in":"query","required":true,"schema":{"type":"string","description":"Reporting period end date (YYYY-MM-DD)","title":"Period End"},"description":"Reporting period end date (YYYY-MM-DD)"},{"name":"measure_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/MeasureId"}},{"type":"null"}],"description":"Limit report to specific eCQMs (repeatable); omit for all","title":"Measure Id"},"description":"Limit report to specific eCQMs (repeatable); omit for all"},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Limit report to specific patient IDs (repeatable); omit for all","title":"Patient Id"},"description":"Limit report to specific patient IDs (repeatable); omit for all"},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Response format: 'json' for aggregate summary, 'xml' for QRDA-III document","default":"json","title":"Format"},"description":"Response format: 'json' for aggregate summary, 'xml' for QRDA-III document"},{"name":"organization_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Submitting organization name.  Defaults to CQM_ORG_NAME env var (production should set this to the CCN-registered legal name).","title":"Organization Name"},"description":"Submitting organization name.  Defaults to CQM_ORG_NAME env var (production should set this to the CCN-registered legal name)."},{"name":"organization_oid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Submitting organization OID.  Defaults to CQM_ORG_OID env var.  The placeholder OID is reserved for testing and will be rejected by CMS.","title":"Organization Oid"},"description":"Submitting organization OID.  Defaults to CQM_ORG_OID env var.  The placeholder OID is reserved for testing and will be rejected by CMS."},{"name":"cms_program","in":"query","required":false,"schema":{"type":"string","description":"CMS reporting program (MIPS, MSSP, …)","default":"MIPS","title":"Cms Program"},"description":"CMS reporting program (MIPS, MSSP, …)"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Generate Qrda Category Iii Cqm Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/report/summary":{"get":{"tags":["cqm-c03"],"summary":"Get Report Summary","description":"Return a concise human-readable summary of aggregate measure performance.\n\nUseful for dashboards and quick review before generating the formal\nQRDA-III submission.\n\nONC § 170.315(c)(3) — CQMs: Report.","operationId":"get_report_summary_cqm_report_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period_start","in":"query","required":true,"schema":{"type":"string","description":"Reporting period start date (YYYY-MM-DD)","title":"Period Start"},"description":"Reporting period start date (YYYY-MM-DD)"},{"name":"period_end","in":"query","required":true,"schema":{"type":"string","description":"Reporting period end date (YYYY-MM-DD)","title":"Period End"},"description":"Reporting period end date (YYYY-MM-DD)"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Report Summary Cqm Report Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/filter/stratifiers":{"post":{"tags":["cqm-c04"],"summary":"Register patient demographic stratifiers","description":"Register or update demographic stratifiers for a patient.\n\nStratifier data (sex, race, ethnicity, birth date, payer, practice site)\nis persisted in the local stratifier store and used by the filter endpoint\nto apply demographic filters to CQM results.\n\nCorresponds to the supplemental data requirements in the CMS eCQM measure\nspec; demographic codes must follow the ONC § 170.315(a)(5) value sets.\n\nONC § 170.315(c)(4) — CQMs: Filter.","operationId":"register_patient_stratifiers_cqm_filter_stratifiers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientStratifierRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Patient Stratifiers Cqm Filter Stratifiers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cqm/filter":{"get":{"tags":["cqm-c04"],"summary":"Filter CQM results by demographic stratifiers","description":"Filter and stratify CQM measure results by patient demographics.\n\nApplies one or more demographic filters (AND across dimensions, OR within\na dimension) to the individual patient scores calculated by C02, then\nstratifies the surviving population by the requested dimension.\n\nSupported stratifiers\n---------------------\n- ``sex``           — administrative gender per OMB / FHIR gender codes\n- ``race``          — OMB race category (multi-select per patient)\n- ``ethnicity``     — OMB ethnicity category\n- ``age_band``      — CMS standard bands: 0-17, 18-24, 25-34, 35-44,\n                      45-54, 55-64, 65-74, 75+\n- ``payer``         — Medicare, Medicaid, Commercial, …\n- ``practice_site`` — site identifier\n- ``provider_npi``  — National Provider Identifier\n- ``provider_tin``  — Taxpayer Identification Number\n- ``provider_type`` — Medicare provider/supplier taxonomy code\n\nAdditional filter dimension\n---------------------------\n- ``problem_code`` — ONC § 170.315(c)(4)(v): limit results to patients\n                     whose problem list contains the supplied SNOMED CT\n                     or ICD-10-CM code. Codes are matched against the\n                     patient's registered ``problem_codes`` list.\n\nPatient stratifier data (including problem codes) must be registered\nfirst via ``POST /cqm/filter/stratifiers``.\n\nONC § 170.315(c)(4) — CQMs: Filter.","operationId":"filter_cqm_results_cqm_filter_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period_start","in":"query","required":true,"schema":{"type":"string","description":"Reporting period start date (YYYY-MM-DD)","title":"Period Start"},"description":"Reporting period start date (YYYY-MM-DD)"},{"name":"period_end","in":"query","required":true,"schema":{"type":"string","description":"Reporting period end date (YYYY-MM-DD)","title":"Period End"},"description":"Reporting period end date (YYYY-MM-DD)"},{"name":"measure_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/MeasureId"}},{"type":"null"}],"description":"Limit to specific eCQMs (repeatable); omit for all","title":"Measure Id"},"description":"Limit to specific eCQMs (repeatable); omit for all"},{"name":"sex","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by sex (M / F / other / unknown). Repeatable; OR logic within dimension.","title":"Sex"},"description":"Filter by sex (M / F / other / unknown). Repeatable; OR logic within dimension."},{"name":"race","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by OMB race code (repeatable; OR logic within dimension)","title":"Race"},"description":"Filter by OMB race code (repeatable; OR logic within dimension)"},{"name":"ethnicity","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by OMB ethnicity code (repeatable; OR logic within dimension)","title":"Ethnicity"},"description":"Filter by OMB ethnicity code (repeatable; OR logic within dimension)"},{"name":"age_band","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by CMS age band (e.g. '18-24', '65+'). Repeatable; OR logic within dimension.","title":"Age Band"},"description":"Filter by CMS age band (e.g. '18-24', '65+'). Repeatable; OR logic within dimension."},{"name":"payer","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by payer code (repeatable; OR logic within dimension)","title":"Payer"},"description":"Filter by payer code (repeatable; OR logic within dimension)"},{"name":"practice_site","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by practice site ID (repeatable; OR logic within dimension)","title":"Practice Site"},"description":"Filter by practice site ID (repeatable; OR logic within dimension)"},{"name":"provider_npi","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by provider NPI (repeatable; OR logic within dimension)","title":"Provider Npi"},"description":"Filter by provider NPI (repeatable; OR logic within dimension)"},{"name":"provider_tin","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by provider TIN (repeatable; OR logic within dimension)","title":"Provider Tin"},"description":"Filter by provider TIN (repeatable; OR logic within dimension)"},{"name":"provider_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by provider taxonomy code (repeatable; OR logic within dimension)","title":"Provider Type"},"description":"Filter by provider taxonomy code (repeatable; OR logic within dimension)"},{"name":"practice_site_address","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by practice site address (repeatable; OR logic within dimension)","title":"Practice Site Address"},"description":"Filter by practice site address (repeatable; OR logic within dimension)"},{"name":"problem_code","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"ONC § 170.315(c)(4)(v) problem-list filter — limit results to patients whose registered problem list contains one of the supplied SNOMED CT / ICD-10-CM codes. Repeatable; OR logic within dimension.","title":"Problem Code"},"description":"ONC § 170.315(c)(4)(v) problem-list filter — limit results to patients whose registered problem list contains one of the supplied SNOMED CT / ICD-10-CM codes. Repeatable; OR logic within dimension."},{"name":"stratify_by","in":"query","required":false,"schema":{"type":"string","description":"Dimension to stratify results by: sex | race | ethnicity | age_band | payer | practice_site | provider_npi | provider_tin | provider_type | practice_site_address","default":"sex","title":"Stratify By"},"description":"Dimension to stratify results by: sex | race | ethnicity | age_band | payer | practice_site | provider_npi | provider_tin | provider_type | practice_site_address"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilteredReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/amendments":{"post":{"tags":["amendments"],"summary":"Submit an amendment request (ONC § 170.315(d)(4))","description":"Patient submits a request to amend their record.\n\nAny authenticated user with PATIENT, CLINICIAN, or ADMIN role may submit.\nIn a production deployment the patient portal would exclusively use the\nPATIENT role; clinicians may submit on behalf of a patient.\n\nEmits AMENDMENT_REQUESTED audit event.","operationId":"submit_amendment_amendments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitAmendmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmendmentRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["amendments"],"summary":"List amendment requests (ONC § 170.315(d)(4))","description":"List amendment records.\n\n- PATIENT callers receive only records for the supplied patient_id.\n- CLINICIAN / ADMIN callers may list all records or filter by patient_id.\n\nEmits RECORD_QUERY audit event.","operationId":"list_amendments_amendments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by patient ID (required for PATIENT role)","title":"Patient Id"},"description":"Filter by patient ID (required for PATIENT role)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/app__serving__amendments__AmendmentStatus"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AmendmentRecord"},"title":"Response List Amendments Amendments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/amendments/{amendment_id}":{"get":{"tags":["amendments"],"summary":"Get a single amendment record (ONC § 170.315(d)(4))","description":"Retrieve a single amendment record.\n\nPatients may only retrieve their own submissions.\nClinicians and admins may retrieve any record.\n\nEmits RECORD_ACCESS audit event.","operationId":"get_amendment_amendments__amendment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"amendment_id","in":"path","required":true,"schema":{"type":"string","title":"Amendment Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmendmentRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/amendments/{amendment_id}/review":{"post":{"tags":["amendments"],"summary":"Review an amendment request — accept, deny, or modify (ONC § 170.315(d)(4))","description":"Provider accepts, denies, or modifies an amendment request.\n\nBusiness rules:\n- Only PENDING amendments may be reviewed.\n- action='deny' requires a provider_note (reason must be documented).\n- action='modify' requires amended_content describing what changed.\n- The original record fields are never overwritten; the amendment chain\n  is preserved on the AmendmentRecord itself.\n\nEmits AMENDMENT_ACCEPTED / AMENDMENT_DENIED / AMENDMENT_MODIFIED.","operationId":"review_amendment_amendments__amendment_id__review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"amendment_id","in":"path","required":true,"schema":{"type":"string","title":"Amendment Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewAmendmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmendmentRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/session/keepalive":{"post":{"tags":["autologoff"],"summary":"Heartbeat — resets the inactivity timer for the authenticated user","description":"Reset the server-side inactivity timer.\n\nThe browser client calls this endpoint periodically (e.g. on any mouse\nmove / key press) to prevent automatic log-off.  Returns the timeout\nconfiguration so the client can schedule the next call.\n\nONC § 170.315(d)(5) — Automatic Log-off.","operationId":"keepalive_auth_session_keepalive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Keepalive Auth Session Keepalive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/session/timeout-config":{"get":{"tags":["autologoff"],"summary":"Return the inactivity timeout configuration for the authenticated user","description":"Return the inactivity timeout (seconds) for the caller's role.\n\nThe client fetches this once after login to know how long to wait before\nshowing the idle-warning dialog.","operationId":"get_timeout_config_auth_session_timeout_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Timeout Config Auth Session Timeout Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/emergency-access/activate":{"post":{"tags":["emergency-access"],"summary":"Activate emergency (break-glass) access — ONC § 170.315(d)(6)","description":"Grant the calling user an emergency-access session.\n\nThe ``reason`` field is mandatory and stored with the session.  The\nactivation is itself recorded as an audit event\n(EMERGENCY_ACCESS_ACTIVATED) per ONC § 170.315(d)(6).\n\nReturns a ``session_id`` UUID.  Pass it as ``X-Emergency-Session: <id>``\non subsequent requests that should be flagged as break-glass activity.","operationId":"activate_emergency_access_emergency_access_activate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Activate Emergency Access Emergency Access Activate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/emergency-access/deactivate":{"post":{"tags":["emergency-access"],"summary":"Deactivate an emergency-access session — ONC § 170.315(d)(6)","description":"Close an emergency-access session.\n\nOnly the owning user or an ADMIN may deactivate a session.\nEmits EMERGENCY_ACCESS_DEACTIVATED audit event.","operationId":"deactivate_emergency_access_emergency_access_deactivate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeactivateRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/emergency-access/sessions":{"get":{"tags":["emergency-access"],"summary":"List emergency-access sessions for periodic review — ONC § 170.315(d)(6)","description":"Return all (or only active) emergency-access sessions.\n\nRequires ADMIN or AUDITOR role.  The response feeds the D03 audit-report\nsurface so that periodic review of break-glass usage is possible.","operationId":"list_emergency_sessions_emergency_access_sessions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Emergency Sessions Emergency Access Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrity/hash":{"post":{"tags":["integrity"],"summary":"Compute SHA-256 hash for a document — ONC § 170.315(d)(8)","description":"Compute the SHA-256 hash of a document body.\n\nCallers (e.g. the Transitions of Care and EHI Export modules) should store\nthis hash with the document record so that integrity can be verified later.\n\nONC § 170.315(d)(8): hash-based integrity verification for EHI documents.","operationId":"hash_document_integrity_hash_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HashRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HashResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrity/verify":{"post":{"tags":["integrity"],"summary":"Verify document integrity against expected hash — ONC § 170.315(d)(8)","description":"Verify that a document has not been altered since it was hashed.\n\nIf the recomputed SHA-256 does not match *expected_hash*, the endpoint\nreturns HTTP 422 and emits an INTEGRITY_CHECK_FAILED audit event so that\nCloud Logging alerts fire for tamper detection.\n\nONC § 170.315(d)(8): tamper detection alert on integrity check failure.","operationId":"verify_document_integrity_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrity/fhir-version/{resource_type}/{resource_id}":{"get":{"tags":["integrity"],"summary":"Confirm FHIR resource has version history — ONC § 170.315(d)(8)","description":"Confirm that a FHIR resource has at least one history version entry.\n\nCalls the self-hosted HAPI FHIR server's ``/{type}/{id}/_history`` endpoint\nand surfaces the version count plus the current ``meta.versionId``.  HAPI\nkeeps an immutable row in ``HFJ_RES_VER`` for every mutation;\n``hapi.fhir.expunge_enabled = false`` (infra/modules/fhir) prevents\ndeletion of past versions.\n\nONC § 170.315(d)(8): FHIR resource versioning as an integrity mechanism.","operationId":"fhir_resource_version_status_integrity_fhir_version__resource_type___resource_id__get","security":[{"HTTPBearer":[]}],"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"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fhir Resource Version Status Integrity Fhir Version  Resource Type   Resource Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrity/db-backup-status":{"get":{"tags":["integrity"],"summary":"Confirm Cloud SQL WAL archiving and backup verification — ONC § 170.315(d)(8)","description":"Return the current Cloud SQL backup and WAL archiving configuration.\n\nCloud SQL PostgreSQL 17 is configured with:\n- ``point_in_time_recovery_enabled = true``  — enables continuous WAL\n  archiving to GCS, allowing restore to any second within the retention\n  window (7 days).\n- ``transaction_log_retention_days = 7``  — WAL segments retained 7 days.\n- ``backup_retention_settings.retained_backups = 7``  — daily snapshots.\n- ``log_checkpoints = on``  — checkpoint activity logged for verification.\n\nIn production this endpoint queries the Cloud SQL Admin API\n(``sqladmin.instances.get``) for the latest backup run and its SHA-256\nchecksum.  In dev/test it returns the static configuration.\n\nONC § 170.315(d)(8): database integrity via WAL archiving + backup verification.","operationId":"db_backup_status_integrity_db_backup_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Db Backup Status Integrity Db Backup Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trusted-connection/status":{"get":{"tags":["trusted-connection"],"summary":"ONC § 170.315(d)(9) — Trusted Connection status","description":"Return the current TLS policy configuration.\n\nReports the TLS settings enforced at the load-balancer level (via\nTerraform ``google_compute_ssl_policy``) and the service-to-service\nauthentication method in use.","operationId":"trusted_connection_status_trusted_connection_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustedConnectionStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/encrypt-auth-credentials/password-reset":{"post":{"tags":["encrypt-auth-credentials"],"summary":"Initiate single-use patient password reset (ONC § 170.315(d)(12))","description":"Trigger a single-use, time-limited password-reset email for a patient.\n\nThe Firebase-generated link is *not* returned in the response — it is\ndelivered to the user's verified email address by the Firebase email\nservice.  This prevents the token from appearing in browser history, proxy\nlogs, or API responses.\n\nIf no account exists for the supplied email, a 202 is still returned to\nprevent user-enumeration attacks.","operationId":"initiate_password_reset_encrypt_auth_credentials_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/encrypt-auth-credentials/status":{"get":{"tags":["encrypt-auth-credentials"],"summary":"ONC § 170.315(d)(12) — Encrypt Authentication Credentials compliance status","description":"Return the current credential-encryption compliance posture.\n\nReports:\n  - Where credentials are stored (Secret Manager + CMEK).\n  - Service-to-service token mechanism and TTL (WIF, 1-hour tokens).\n  - Patient password-reset token policy (single-use, 1-hour, email delivery).","operationId":"encrypt_auth_credentials_status_encrypt_auth_credentials_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptAuthCredentialsStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/vdt/{patient_id}":{"get":{"tags":["vdt"],"summary":"View USCDI data categories (VDT — View)","description":"Return a USCDI v3 data summary for *patient_id*.\n\nGroups available health data into USCDI categories and reports the record\ncount for each.  Patients can only view their own record; clinicians and\nadmins may view any patient.\n\nONC § 170.315(e)(1) — View, Download, Transmit (View component).","operationId":"view_uscdi_summary_portal_vdt__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response View Uscdi Summary Portal Vdt  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/vdt/{patient_id}/download":{"get":{"tags":["vdt"],"summary":"Download C-CDA bundle (VDT — Download / g9 API Access)","description":"Generate and return a C-CDA R2.1 bundle for *patient_id*.\n\nFetches USCDI v3 data from the FHIR store, transforms it to C-CDA, and\nreturns the XML document with content-type ``application/hl7-v3+xml``.\n\nQuery params:\n  doc_type=ccd|referral|discharge   (default: ccd)\n  date=YYYY-MM-DD                    specific-date request (g.9.1 step 3a)\n  start_date=YYYY-MM-DD              date-range request (g.9.1 step 3b)\n  end_date=YYYY-MM-DD                date-range request (g.9.1 step 3b)\n\nONC § 170.315(e)(1) — View, Download, Transmit (Download component).\nONC § 170.315(g)(9) — Application Access: All Data Request (CCD response).","operationId":"download_ccda_portal_vdt__patient_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"doc_type","in":"query","required":false,"schema":{"type":"string","default":"ccd","title":"Doc Type"}},{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/vdt/{patient_id}/transmit":{"post":{"tags":["vdt"],"summary":"Transmit C-CDA via Direct (VDT — Transmit)","description":"Transmit the patient's C-CDA record to a Direct address.\n\nBuilds a C-CDA bundle and queues it for delivery to *recipient_address*\nvia Direct Secure Messaging (SMTP+S/MIME, DirectTrust HISP).\n\nONC § 170.315(e)(1) — View, Download, Transmit (Transmit component).\nONC § 170.315(h)(1) — Direct Project.","operationId":"transmit_ccda_portal_vdt__patient_id__transmit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Transmit Ccda Portal Vdt  Patient Id  Transmit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phi-capture":{"post":{"tags":["phi-capture"],"summary":"Patient submits structured health information (ONC § 170.315(e)(3))","description":"Patient (or authorized representative) submits structured health information.\n\nPayload covers at minimum: allergies, medications, social history, and\nfamily health history (USCDI v3 required domains for § 170.315(e)(3)).\n\nSubmission status starts as PENDING until a provider reviews it.\nNo clinical data is incorporated into the active chart until a provider\naccepts or edits the submission.\n\nEmits PHI_CAPTURE_SUBMITTED audit event.","operationId":"submit_phi_capture_phi_capture_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitPHICaptureRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PHISubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phi-capture"],"summary":"List PHI capture submissions (ONC § 170.315(e)(3))","description":"List PHI capture submissions.\n\n- PATIENT callers may only see their own submissions (patient_id required).\n- CLINICIAN / ADMIN callers see all submissions, or filtered by patient_id.\n\nEmits RECORD_QUERY audit event.","operationId":"list_phi_captures_phi_capture_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by patient ID (required for PATIENT role)","title":"Patient Id"},"description":"Filter by patient ID (required for PATIENT role)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SubmissionStatus"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PHISubmission"},"title":"Response List Phi Captures Phi Capture Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phi-capture/{submission_id}":{"get":{"tags":["phi-capture"],"summary":"Get a single PHI capture submission (ONC § 170.315(e)(3))","description":"Retrieve a single PHI capture submission.\n\nPatients may only retrieve their own submissions.\nClinicians and admins may retrieve any submission.\n\nEmits RECORD_ACCESS audit event.","operationId":"get_phi_capture_phi_capture__submission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","title":"Submission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PHISubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phi-capture/{submission_id}/review":{"post":{"tags":["phi-capture"],"summary":"Provider reviews a PHI capture submission — accept, reject, or edit (ONC § 170.315(e)(3))","description":"Provider accepts, rejects, or edits a patient-submitted PHI capture.\n\nBusiness rules\n--------------\n- Only PENDING submissions may be reviewed.\n- action='reject' requires a provider_note (reason must be documented).\n- action='edit'   requires edited_content describing the incorporated values.\n- action='accept' optionally accepts a provider_note.\n- The original submitted intake is never overwritten; the disposition is\n  recorded alongside the original for the audit chain.\n\nEmits PHI_CAPTURE_ACCEPTED / PHI_CAPTURE_REJECTED / PHI_CAPTURE_EDITED.","operationId":"review_phi_capture_phi_capture__submission_id__review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","title":"Submission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPHICaptureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PHISubmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/immunization-registries/{patient_id}/vxu":{"post":{"tags":["immunization-registries"],"summary":"Send VXU vaccination history to an IIS (ONC § 170.315(f)(1))","description":"Build and transmit a VXU_V04 (Unsolicited Vaccination Record Update) to the\nImmunization Information System for the specified jurisdiction.\n\nIf ``immunization_ids`` is provided, only those FHIR Immunization resources\nare included; otherwise every Immunization on record for the patient is sent.\n\nONC § 170.315(f)(1)","operationId":"send_vxu_immunization_registries__patient_id__vxu_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VXUSendRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VXUSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/immunization-registries/{patient_id}/qbp":{"post":{"tags":["immunization-registries"],"summary":"Query IIS for immunization history/forecast via QBP (ONC § 170.315(f)(1))","description":"Send a QBP_Q11 query to the IIS for the specified jurisdiction and parse\nthe RSP_K11 response.\n\nIf ``persist_results`` is true, any immunization records returned by the\nIIS are imported as FHIR Immunization resources (tagged iis-imported).\n\nONC § 170.315(f)(1)","operationId":"query_qbp_immunization_registries__patient_id__qbp_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QBPQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QBPQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/immunization-registries/mock-iis/receive":{"post":{"tags":["immunization-registries"],"summary":"Mock IIS endpoint: accept VXU/QBP and return ACK/RSP","description":"In-process mock Immunization Information System endpoint.\n\nAccepts HL7 v2.5.1 VXU_V04 or QBP_Q11 messages and returns the\nappropriate ACK or RSP_K11 response.  Configured automatically when\n``IIS_ENDPOINT_DEFAULT=mock`` (the dev default).\n\nThis endpoint is intended for integration testing and ONC test\nprocedure execution without requiring a live IIS connection.\n\nONC § 170.315(f)(1)","operationId":"mock_iis_receive_immunization_registries_mock_iis_receive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MockIISReceiveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MockIISReceiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/syndromic-surveillance/{patient_id}/adt":{"post":{"tags":["syndromic-surveillance"],"summary":"Send ADT syndromic surveillance message to a PHA (ONC § 170.315(f)(2))","description":"Build and transmit an HL7 v2.5.1 ADT message to the Public Health Agency\nfor the specified jurisdiction.\n\nSupports ADT^A04 (register), ADT^A03 (discharge), ADT^A08 (update).\nThe chief complaint is encoded as a DG1 segment using SNOMED CT and/or\nan OBX segment using LOINC 8661-1.\n\nOn delivery failure, the message is placed in a send queue (persisted as\na FHIR Communication resource) and retried up to PHA_MAX_RETRIES times.\n\nONC § 170.315(f)(2)","operationId":"send_adt_syndromic_surveillance__patient_id__adt_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendADTRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendADTResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/syndromic-surveillance/queue/process":{"post":{"tags":["syndromic-surveillance"],"summary":"Process the syndromic surveillance send queue (retry failed messages)","description":"Retry delivery of queued ADT messages (FHIR Communication resources in\n``preparation`` status).\n\nMessages that succeed are marked ``completed``; messages that exhaust\nall retry attempts are marked ``stopped``.\n\nONC § 170.315(f)(2)","operationId":"process_queue_syndromic_surveillance_queue_process_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueProcessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/syndromic-surveillance/mock-pha/receive":{"post":{"tags":["syndromic-surveillance"],"summary":"Mock PHA endpoint: accept ADT messages and return ACK","description":"In-process mock Public Health Agency endpoint.\n\nAccepts HL7 v2.5.1 ADT messages and returns ACK responses.\nConfigured automatically when ``PHA_ENDPOINT_DEFAULT=mock`` (the dev default).\n\nThis endpoint is intended for integration testing and ONC test\nprocedure execution without requiring a live PHA connection.\n\nONC § 170.315(f)(2)","operationId":"mock_pha_receive_syndromic_surveillance_mock_pha_receive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__syndromic_surveillance__MockPHAReceiveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MockPHAReceiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportable-lab-results/rules":{"get":{"tags":["reportable-lab-results"],"summary":"List all reportability rules (ONC § 170.315(f)(3))","description":"Return all configured reportability rules.\n\nRules map LOINC test codes to reportable conditions and target PHA\njurisdictions.  They are persisted as FHIR Basic resources.\n\nONC § 170.315(f)(3)","operationId":"list_rules_reportable_lab_results_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportabilityRuleResponse"},"title":"Response List Rules Reportable Lab Results Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reportable-lab-results"],"summary":"Add a reportability rule (ONC § 170.315(f)(3))","description":"Add a new reportability rule.\n\nThe rule is immediately active; persisted as a FHIR Basic resource.\n\nONC § 170.315(f)(3)","operationId":"add_rule_reportable_lab_results_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportabilityRule"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportabilityRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportable-lab-results/rules/{rule_id}":{"delete":{"tags":["reportable-lab-results"],"summary":"Remove a reportability rule (ONC § 170.315(f)(3))","description":"Remove a reportability rule by ID.\n\nONC § 170.315(f)(3)","operationId":"delete_rule_reportable_lab_results_rules__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportable-lab-results/{patient_id}/oru":{"post":{"tags":["reportable-lab-results"],"summary":"Detect reportable lab result and send ORU^R01 to PHA (ONC § 170.315(f)(3))","description":"Detect whether a lab result is reportable and, if so, send an HL7 v2.5.1\nORU^R01 message to the appropriate PHA.\n\nDetection: the result's LOINC code is checked against the configured\nreportability rule set.  If no matching rule exists, the result is not\nreportable and a 422 is returned.\n\nOn delivery failure the message is placed in a send queue persisted as a\nFHIR Communication resource and retried up to PHA_MAX_RETRIES times.\n\nONC § 170.315(f)(3)","operationId":"send_oru_reportable_lab_results__patient_id__oru_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOruRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOruResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportable-lab-results/queue/process":{"post":{"tags":["reportable-lab-results"],"summary":"Process the reportable-lab-results send queue (retry failed messages)","description":"Retry delivery of queued ORU^R01 messages (FHIR Communication resources in\n``preparation`` status).\n\nMessages that succeed are marked ``completed``; messages that exhaust all\nretry attempts are marked ``stopped``.\n\nONC § 170.315(f)(3)","operationId":"process_queue_reportable_lab_results_queue_process_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueProcessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reportable-lab-results/mock-pha/receive":{"post":{"tags":["reportable-lab-results"],"summary":"Mock PHA endpoint: accept ORU^R01 messages and return ACK","description":"In-process mock Public Health Agency endpoint.\n\nAccepts HL7 v2.5.1 ORU^R01 messages and returns ACK responses.\nConfigured automatically when ``PHA_ENDPOINT_DEFAULT=mock`` (dev default).\n\nIntended for integration testing and ONC test procedure execution\nwithout a live PHA connection.\n\nONC § 170.315(f)(3)","operationId":"mock_pha_receive_reportable_lab_results_mock_pha_receive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__reportable_lab_results__MockPHAReceiveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MockPHAReceiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ecr/rules":{"get":{"tags":["ecr"],"summary":"List all eCR trigger rules (ONC § 170.315(f)(5))","description":"Return all configured RCKMS trigger rules.\n\nRules map SNOMED CT / ICD-10-CM codes to reportable conditions and\ntarget jurisdictions.  They are persisted as FHIR Basic resources.\n\nONC § 170.315(f)(5)","operationId":"list_trigger_rules_ecr_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TriggerRuleResponse"},"title":"Response List Trigger Rules Ecr Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ecr"],"summary":"Add an eCR trigger rule (ONC § 170.315(f)(5))","description":"Add a new RCKMS trigger rule.\n\nThe rule is immediately active; persisted as a FHIR Basic resource.\n\nONC § 170.315(f)(5)","operationId":"add_trigger_rule_ecr_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerRule"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ecr/rules/{rule_id}":{"delete":{"tags":["ecr"],"summary":"Remove an eCR trigger rule (ONC § 170.315(f)(5))","description":"Remove a trigger rule by ID.\n\nONC § 170.315(f)(5)","operationId":"delete_trigger_rule_ecr_rules__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ecr/{patient_id}/report":{"post":{"tags":["ecr"],"summary":"Detect reportable condition and submit eICR to AIMS (ONC § 170.315(f)(5))","description":"Detect whether the patient's condition is reportable based on RCKMS trigger\ncodes, generate a C-CDA eICR document, and submit it to the APHL AIMS\neCR endpoint (or the configured jurisdictional override).\n\nThe received Reportability Response (RR) is persisted as a FHIR\nCommunication resource and surfaced in the clinician inbox.\n\nOn delivery failure the eICR is queued as a FHIR Communication resource\n(status: preparation) and retried via POST /ecr/queue/process.\n\nONC § 170.315(f)(5)","operationId":"send_ecr_ecr__patient_id__report_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEcrRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEcrResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ecr/{patient_id}/rr-inbox":{"get":{"tags":["ecr"],"summary":"Clinician inbox: Reportability Responses for a patient (ONC § 170.315(f)(5))","description":"Return all Reportability Responses received for a patient.\n\nResults are read from FHIR Communication resources with category\n``ecr-reportability-response`` and surfaced in the clinician inbox.\n\nONC § 170.315(f)(5)","operationId":"get_rr_inbox_ecr__patient_id__rr_inbox_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RrInboxItem"},"title":"Response Get Rr Inbox Ecr  Patient Id  Rr Inbox Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ecr/queue/process":{"post":{"tags":["ecr"],"summary":"Process the eCR send queue (retry failed eICR submissions)","description":"Retry delivery of queued eICR documents (FHIR Communication resources in\n``preparation`` status).\n\nMessages that succeed are marked ``completed``; messages that exhaust all\nretry attempts are marked ``stopped``.\n\nONC § 170.315(f)(5)","operationId":"process_queue_ecr_queue_process_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueProcessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ecr/mock-aims/receive":{"post":{"tags":["ecr"],"summary":"Mock AIMS endpoint — accepts eICR and returns canned RR (testing only)","description":"Test endpoint that simulates the APHL AIMS eCR receiver.\n\nAccepts a raw eICR C-CDA XML document and returns a canned RR XML with\n``reportable`` status.  Set ``ECR_AIMS_ENDPOINT_DEFAULT=mock`` (default)\nto have ``/ecr/{patient_id}/report`` call this automatically.\n\nONC § 170.315(f)(5)","operationId":"mock_aims_receive_ecr_mock_aims_receive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MockAimsReceiveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MockAimsReceiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g3/ucd-process":{"get":{"tags":["g3-safety-enhanced-design"],"summary":"UCD process documentation","description":"Returns the User-Centered Design process summary for § 170.315(g)(3).","operationId":"get_ucd_process_g3_ucd_process_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UcdProcessSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g3/test-protocol":{"get":{"tags":["g3-safety-enhanced-design"],"summary":"NISTIR 7742 usability-testing protocol","description":"Returns the summative usability-testing protocol per NISTIR 7742.","operationId":"get_test_protocol_g3_test_protocol_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestProtocol"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g3/test-report":{"get":{"tags":["g3-safety-enhanced-design"],"summary":"Aggregate usability test report","description":"Returns per-criterion test results for all in-scope (g)(3) criteria.","operationId":"get_test_report_g3_test_report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CriterionTestResult"},"title":"Response Get Test Report G3 Test Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g3/test-report/{criterion_id}":{"get":{"tags":["g3-safety-enhanced-design"],"summary":"Single-criterion test summary","operationId":"get_criterion_result_g3_test_report__criterion_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"criterion_id","in":"path","required":true,"schema":{"type":"string","title":"Criterion Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriterionTestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g3/issues":{"get":{"tags":["g3-safety-enhanced-design"],"summary":"List usability issues","operationId":"list_issues_g3_issues_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IssueResponse"},"title":"Response List Issues G3 Issues Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["g3-safety-enhanced-design"],"summary":"Log a usability issue found during testing","operationId":"create_issue_g3_issues_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g3/issues/{issue_id}":{"get":{"tags":["g3-safety-enhanced-design"],"summary":"Retrieve a single usability issue","operationId":"get_issue_g3_issues__issue_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","title":"Issue Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["g3-safety-enhanced-design"],"summary":"Update / close a usability issue (admin only)","operationId":"update_issue_g3_issues__issue_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"issue_id","in":"path","required":true,"schema":{"type":"string","title":"Issue Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g4/qms":{"get":{"tags":["g4-qms"],"summary":"Get Qms Declaration","description":"Return the QMS framework declaration and SDLC phase list.","operationId":"get_qms_declaration_g4_qms_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Qms Declaration G4 Qms Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g4/criteria":{"get":{"tags":["g4-qms"],"summary":"Get In Scope Criteria","description":"Return the map of in-scope ONC criteria with their artifact locations.","operationId":"get_in_scope_criteria_g4_criteria_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get In Scope Criteria G4 Criteria Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g4/attestation":{"get":{"tags":["g4-qms"],"summary":"Get Attestation","description":"Return the QMS submission attestation record.","operationId":"get_attestation_g4_attestation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Attestation G4 Attestation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g4/criteria/{criterion_id}":{"get":{"tags":["g4-qms"],"summary":"Get Criterion","description":"Return a single criterion entry by local ID (e.g., 'g4').","operationId":"get_criterion_g4_criteria__criterion_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"criterion_id","in":"path","required":true,"schema":{"type":"string","title":"Criterion Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Criterion G4 Criteria  Criterion Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/direct/hisp/status":{"get":{"tags":["direct-project"],"summary":"Return HISP integration status and configuration","description":"Return the current HISP integration mode and whether production credentials\nare configured.\n\nONC § 170.315(h)(1): administrators can inspect Direct transport configuration.","operationId":"hisp_status_direct_hisp_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HispStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/direct/hisp/readiness":{"get":{"tags":["direct-project"],"summary":"Return Direct HISP live-cert readiness","description":"Return non-secret readiness metadata consumed by cert preflight.","operationId":"hisp_readiness_direct_hisp_readiness_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HispReadinessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/direct/send":{"post":{"tags":["direct-project"],"summary":"Send a C-CDA clinical document via Direct Project","description":"Send a C-CDA R2.1 document to a recipient's Direct address.\n\nThe payload is transmitted through the configured HISP (stub in v1).\nAn outbound FHIR Communication resource is created for the audit trail.\n\nONC § 170.315(h)(1): authorised clinicians/nurses/admins may send\nsecure Direct messages with C-CDA payloads.","operationId":"send_direct_message_direct_send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__direct_project__DirectSendRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__direct_project__DirectSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/direct/receive":{"post":{"tags":["direct-project"],"summary":"Ingest an inbound Direct Project message","description":"Accept an inbound Direct message (C-CDA payload) posted by the HISP\n(webhook / polling) or entered manually by an admin.\n\nThe C-CDA bytes are stored as a FHIR Communication resource for the\nreceiving clinician to review and incorporate. A separate call to\n``POST /transitions/receive`` can be used to parse and import the\nC-CDA into FHIR clinical resources.\n\nONC § 170.315(h)(1): receive secure Direct messages with C-CDA payloads.","operationId":"receive_direct_message_direct_receive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectReceiveRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectReceiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/direct/trust-anchors":{"post":{"tags":["direct-project"],"summary":"Register a DirectTrust CA trust anchor certificate","description":"Register an X.509 CA root certificate from the DirectTrust trust bundle.\n\nTrust anchors are stored as FHIR Basic resources so they can be queried\nand versioned alongside other clinical data.  The PEM content is stored\nin the FHIR extension; in production it should also be loaded into the\nJVM/Python TLS trust store and into the HISP's trust bundle configuration.\n\nONC § 170.315(h)(1): DirectTrust certificate management.","operationId":"register_trust_anchor_direct_trust_anchors_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustAnchorRegisterRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustAnchorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["direct-project"],"summary":"List registered DirectTrust CA trust anchors","description":"Return all trust anchors stored in the FHIR Basic resource store.\n\nONC § 170.315(h)(1): DirectTrust certificate management — list registered CAs.","operationId":"list_trust_anchors_direct_trust_anchors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrustAnchorSummary"},"title":"Response List Trust Anchors Direct Trust Anchors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/direct/drummond/demo":{"post":{"tags":["direct-project"],"summary":"Drummond demo — send Transition of Care C-CDA via Direct","description":"Generate a C-CDA Transition of Care document for the given patient and transmit it to the Drummond test Direct address via the configured HISP. Returns a demo_session_id; use POST /direct/drummond/ack to complete the flow when the MDN acknowledgement arrives.  ONC § 170.315(h)(1) — Direct Project Drummond certification demo.","operationId":"drummond_demo_direct_drummond_demo_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrummondDemoRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrummondDemoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/direct/drummond/ack":{"post":{"tags":["direct-project"],"summary":"Drummond demo — receive MDN acknowledgement","description":"Complete the Drummond demo flow by recording the MDN (message disposition notification) acknowledgement from the Drummond test HISP.  The demo_session_id must match a session created by POST /direct/drummond/demo.","operationId":"drummond_ack_direct_drummond_ack_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrummondAckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrummondAckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/inbox/messages":{"get":{"tags":["inbox-b1"],"summary":"List recent messages from the Direct mailbox (IMAP, read-only)","description":"Newest-first list of message headers + a short body preview.\n\nRead-only — the IMAP poller (``scripts/direct_imap_poll.py``) remains the\nauthoritative consumer that transitions UNSEEN → SEEN and emits MDNs.","operationId":"list_messages_inbox_messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InboxMessage"},"title":"Response List Messages Inbox Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/inbox/attachment":{"get":{"tags":["inbox-b1"],"summary":"Download a single MIME attachment from a Direct mailbox message","operationId":"get_attachment_inbox_attachment_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"uid","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[0-9]+$","title":"Uid"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Name"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/inbox/send":{"post":{"tags":["inbox-b1"],"summary":"Send a Direct message (with optional generated C-CDA) via raw SMTP","operationId":"send_message_inbox_send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__inbox_b1__SendRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__inbox_b1__SendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/inbound/accounts":{"get":{"tags":["admin","b1-inbound"],"summary":"List Accounts","operationId":"list_accounts_admin_inbound_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AccountListItem"},"type":"array","title":"Response List Accounts Admin Inbound Accounts Get"}}}}}}},"/admin/inbound/poll":{"post":{"tags":["admin","b1-inbound"],"summary":"Poll Account","operationId":"poll_account_admin_inbound_poll_post","parameters":[{"name":"account","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Account"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/inbound/messages":{"get":{"tags":["admin","b1-inbound"],"summary":"List Messages","operationId":"list_messages_admin_inbound_messages_get","parameters":[{"name":"account","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Account"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InboundMessage"},"title":"Response List Messages Admin Inbound Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/inbound/attachment":{"get":{"tags":["admin","b1-inbound"],"summary":"Get Attachment","description":"Stream a single MIME attachment from the named mailbox by UID + filename.\n\nRead-only — re-fetches the full RFC822 message and walks parts. Used by\nthe IMAP inbox UI so a proctor can actually open the C-CDA XML / XDM zip\nthat landed in imaptesting@james.healthit.gov.","operationId":"get_attachment_admin_inbound_attachment_get","parameters":[{"name":"account","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Account"}},{"name":"uid","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[0-9]+$","title":"Uid"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/xdr/submit":{"post":{"tags":["xdr-xdm"],"summary":"Submit document set via XDR (IHE ITI-41)","description":"Provide and Register Document Set-b (ITI-41).\n\nAccepts a Base64-encoded document, builds an ITI-41 submission set,\nand dispatches it to the recipient's XDR endpoint (or stub in dev).\nPersists a FHIR DocumentReference for the audit trail.","operationId":"xdr_submit_xdr_submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XdrSubmitRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XdrSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/xdr/receive":{"post":{"tags":["xdr-xdm"],"summary":"Ingest inbound XDR submission","description":"Receive an inbound ITI-41 document set forwarded by an upstream XDR hub\nor a Direct-to-XDR gateway.  Persists a FHIR DocumentReference and emits\nan audit event.","operationId":"xdr_receive_xdr_receive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XdrReceiveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XdrReceiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/xdr/soap/receive":{"get":{"tags":["xdr-xdm"],"summary":"Probe inbound XDR SOAP receive endpoint","operationId":"xdr_soap_receive_probe_xdr_soap_receive_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["xdr-xdm"],"summary":"Receive inbound XDR SOAP ITI-41 submission","operationId":"xdr_soap_receive_xdr_soap_receive_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/xdr/xdm/package":{"post":{"tags":["xdr-xdm"],"summary":"Build XDM ZIP package (IHE ITI-32)","description":"Construct an IHE XDM (ITI-32) ZIP archive for offline or media-based\ndocument exchange.  Returns the archive as Base64.","operationId":"xdm_package_xdr_xdm_package_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XdmPackageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XdmPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/xdr/affinity-domain":{"get":{"tags":["xdr-xdm"],"summary":"Retrieve document affinity domain configuration","description":"Return the configured IHE document affinity domain, or null if not yet set.","operationId":"get_affinity_domain_xdr_affinity_domain_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AffinityDomainResponse"},{"type":"null"}],"title":"Response Get Affinity Domain Xdr Affinity Domain Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["xdr-xdm"],"summary":"Configure document affinity domain (admin)","description":"Create or replace the document affinity domain configuration.\nOnly administrators may call this endpoint.","operationId":"set_affinity_domain_xdr_affinity_domain_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffinityDomainConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffinityDomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/xdr/status":{"get":{"tags":["xdr-xdm"],"summary":"XDR endpoint connectivity status (admin)","description":"Return the current XDR mode, endpoint URL, and whether the endpoint is reachable.","operationId":"xdr_status_xdr_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XdrStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/xdr/readiness":{"get":{"tags":["xdr-xdm"],"summary":"XDR SOAP endpoint live-cert readiness (admin)","description":"Return non-secret readiness metadata consumed by cert preflight.","operationId":"xdr_readiness_xdr_readiness_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XdrReadinessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/fhir-events":{"post":{"tags":["fhir-events"],"summary":"Receive HAPI FHIR rest-hook subscription notifications","description":"Accept a FHIR rest-hook subscription delivery and re-publish to Pub/Sub.\n\nHAPI rest-hook subscriptions POST the changed resource (or a Bundle of\nchanges) to this endpoint.  We extract the resource type / id /\ninteraction from headers and body, then publish a Pub/Sub message that\ndownstream consumers can subscribe to.","operationId":"receive_fhir_event_internal_fhir_events_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventAck"}}}}}}},"/directory/organizations":{"get":{"tags":["directory"],"summary":"List Organizations","operationId":"list_organizations_directory_organizations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string","default":"","title":"Name"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryResourceResponse"},"title":"Response List Organizations Directory Organizations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["directory"],"summary":"Create Organization","operationId":"create_organization_directory_organizations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryResourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/directory/locations":{"get":{"tags":["directory"],"summary":"List Locations","operationId":"list_locations_directory_locations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string","default":"","title":"Name"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryResourceResponse"},"title":"Response List Locations Directory Locations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["directory"],"summary":"Create Location","operationId":"create_location_directory_locations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryResourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/directory/practitioners":{"get":{"tags":["directory"],"summary":"List Practitioners","operationId":"list_practitioners_directory_practitioners_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string","default":"","title":"Name"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryResourceResponse"},"title":"Response List Practitioners Directory Practitioners Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["directory"],"summary":"Create Practitioner","operationId":"create_practitioner_directory_practitioners_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PractitionerCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryResourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/directory/practitioner-roles":{"get":{"tags":["directory"],"summary":"List Practitioner Roles","operationId":"list_practitioner_roles_directory_practitioner_roles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryResourceResponse"},"title":"Response List Practitioner Roles Directory Practitioner Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["directory"],"summary":"Create Practitioner Role","operationId":"create_practitioner_role_directory_practitioner_roles_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PractitionerRoleCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryResourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/Subscription":{"post":{"tags":["fhir-subscriptions"],"summary":"Create a FHIR Subscription (R5 backport)","description":"Register a webhook subscription for a FHIR resource type.\n\nThe server will POST a notification Bundle to ``endpoint`` whenever a\nmatching resource is created or updated.\n\nReturns the subscription including a one-time ``secret`` for HMAC\nverification of webhook payloads.  Store the secret securely.\n\nFHIR R5 Subscriptions backport (R4 server).\nONC § 170.315(g)(10).","operationId":"create_subscription_fhir_Subscription_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__fhir_subscriptions__SubscriptionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__fhir_subscriptions__SubscriptionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["fhir-subscriptions"],"summary":"List FHIR Subscriptions","description":"Return all registered webhook subscriptions (secrets omitted).","operationId":"list_subscriptions_fhir_Subscription_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__serving__fhir_subscriptions__SubscriptionSummary"},"title":"Response List Subscriptions Fhir Subscription Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/Subscription/{sub_id}":{"get":{"tags":["fhir-subscriptions"],"summary":"Get a FHIR Subscription","description":"Return subscription metadata (secret omitted).","operationId":"get_subscription_fhir_Subscription__sub_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__fhir_subscriptions__SubscriptionSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["fhir-subscriptions"],"summary":"Delete a FHIR Subscription","description":"Remove a webhook subscription.  Delivery stops immediately.","operationId":"delete_subscription_fhir_Subscription__sub_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/practitioners":{"post":{"tags":["practitioners"],"summary":"Create a Practitioner FHIR resource (tenant-scoped)","operationId":"create_practitioner_practitioners_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PractitionerRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Practitioner Practitioners Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["practitioners"],"summary":"Search Practitioners (tenant-scoped)","operationId":"search_practitioners_practitioners_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"npi","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Practitioners Practitioners Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/practitioners/{practitioner_id}":{"get":{"tags":["practitioners"],"summary":"Read a Practitioner FHIR resource","operationId":"get_practitioner_practitioners__practitioner_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"practitioner_id","in":"path","required":true,"schema":{"type":"string","title":"Practitioner Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Practitioner Practitioners  Practitioner Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-data/{patient_id}/conditions":{"get":{"tags":["clinical-data"],"summary":"List problem-list conditions for a patient","description":"Return problem-list Conditions for *patient_id*.","operationId":"list_conditions_clinical_data__patient_id__conditions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"clinical_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by clinicalStatus (e.g. active)","title":"Clinical Status"},"description":"Filter by clinicalStatus (e.g. active)"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConditionSummary"},"title":"Response List Conditions Clinical Data  Patient Id  Conditions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-data/{patient_id}/allergies":{"get":{"tags":["clinical-data"],"summary":"List allergy intolerances for a patient","description":"Return AllergyIntolerance resources for *patient_id*.","operationId":"list_allergies_clinical_data__patient_id__allergies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AllergySummary"},"title":"Response List Allergies Clinical Data  Patient Id  Allergies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-data/{patient_id}/observations":{"get":{"tags":["clinical-data"],"summary":"List vital-sign observations for a patient","description":"Return Observation resources for *patient_id* (defaults to vital-signs).","operationId":"list_observations_clinical_data__patient_id__observations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"vital-signs","title":"Category"}},{"name":"_count","in":"query","required":false,"schema":{"type":"integer","default":50,"title":" Count"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObservationSummary"},"title":"Response List Observations Clinical Data  Patient Id  Observations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-data/{patient_id}/appointments":{"get":{"tags":["clinical-data"],"summary":"List appointments for a patient (stub — no backend yet)","description":"Return FHIR Appointment resources for *patient_id*.\n\nNote: no appointment scheduling backend exists yet (Phase C).\nReturns an empty list from FHIR; the UI shows the schedule mockup.","operationId":"list_appointments_clinical_data__patient_id__appointments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AppointmentSummary"},"title":"Response List Appointments Clinical Data  Patient Id  Appointments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-data/{patient_id}/care-team":{"get":{"tags":["clinical-data"],"summary":"List CareTeam participants for a patient","description":"Return CareTeam participants — one row per practitioner per care team.","operationId":"list_care_team_clinical_data__patient_id__care_team_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CareTeamMember"},"title":"Response List Care Team Clinical Data  Patient Id  Care Team Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-data/{patient_id}/messages":{"get":{"tags":["clinical-data"],"summary":"List Direct inbox communications for a patient context","description":"Return FHIR Communication resources stored by the Direct Project module.\nSorted newest-first.","operationId":"list_messages_clinical_data__patient_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageSummary"},"title":"Response List Messages Clinical Data  Patient Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-data/{patient_id}/direct-send":{"post":{"tags":["clinical-data"],"summary":"Send a Direct message in the context of a patient","description":"Thin wrapper that delegates to the Direct Project send endpoint.","operationId":"send_direct_message_clinical_data__patient_id__direct_send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__clinical_data__DirectSendRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__clinical_data__DirectSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-data/{patient_id}/medications":{"get":{"tags":["clinical-data"],"summary":"List medications for a patient (MedicationRequest + MedicationStatement)","description":"Return MedicationRequest + MedicationStatement resources for *patient_id*, flattened.","operationId":"list_medications_clinical_data__patient_id__medications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MedicationSummary"},"title":"Response List Medications Clinical Data  Patient Id  Medications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-data/{patient_id}/clinical-reset":{"post":{"tags":["clinical-data"],"summary":"Delete all reconciled clinical data for a patient (proctor re-test helper)","description":"Deletes every MedicationRequest, MedicationStatement, AllergyIntolerance, and Condition tied to *patient_id* so the (b)(2) reconciliation flow can be replayed cleanly. Admin-only and audit-logged.","operationId":"clinical_reset_clinical_data__patient_id__clinical_reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicalResetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/sensitivity/structure-definition":{"get":{"tags":["b3-sensitivity"],"summary":"Get Structure Definition","description":"Return the FHIR R4 StructureDefinition for the sensitivity-tag extension.\nCanonical URL: sphere.health/fhir/StructureDefinition/sensitivity-tag","operationId":"get_structure_definition_b3_sensitivity_structure_definition_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Structure Definition B3 Sensitivity Structure Definition Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/sensitivity/taxonomy":{"get":{"tags":["b3-sensitivity"],"summary":"Get Taxonomy","description":"Return the full sensitivity taxonomy with legal citations and consent requirements.","operationId":"get_taxonomy_b3_sensitivity_taxonomy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Taxonomy B3 Sensitivity Taxonomy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/sensitivity/tag-resource":{"post":{"tags":["b3-sensitivity"],"summary":"Tag Resource","description":"Apply a sensitivity tag to a FHIR resource.\n\nThe tag is persisted as a FHIR Extension on the resource (stored here in the\nsensitivity tag index; in production the resource record in HAPI FHIR is\npatched with the extension).","operationId":"tag_resource_b3_sensitivity_tag_resource_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResourceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Tag Resource B3 Sensitivity Tag Resource Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/sensitivity/tagged/{resource_id}":{"get":{"tags":["b3-sensitivity"],"summary":"Get Tagged Resource","description":"Return the sensitivity tag for a FHIR resource.","operationId":"get_tagged_resource_b3_sensitivity_tagged__resource_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Tagged Resource B3 Sensitivity Tagged  Resource Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/part2/consent":{"post":{"tags":["b3-sensitivity"],"summary":"Record Part2 Consent","description":"Record a 42 CFR Part 2 patient consent for SUD record disclosure.\n\nPer 42 CFR § 2.31, a written consent must specify:\n- The specific name(s) of individuals/programs permitted to make the disclosure\n- The specific name(s) of individuals/programs permitted to receive the information\n- The specific kind of information to be disclosed\n- The purpose of the disclosure\n- The date or condition on which the consent expires\n\nThis endpoint records the consent in the Part 2 segregated consent store.","operationId":"record_part2_consent_b3_part2_consent_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Part2ConsentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Part2 Consent B3 Part2 Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/part2/consent/{patient_id}":{"get":{"tags":["b3-sensitivity"],"summary":"Get Part2 Consents","description":"Return all active 42 CFR Part 2 consents for a patient.","operationId":"get_part2_consents_b3_part2_consent__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Part2 Consents B3 Part2 Consent  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/part2/records":{"post":{"tags":["b3-sensitivity"],"summary":"Create Part2 Record","description":"Write a SUD treatment record to the physically segregated Part 2 store.\n\nAccess requires a valid Part 2 consent on file, or the treating provider\nmust have a therapeutic relationship with the patient.  The content is\nencrypted with the PART2-specific sub-key.","operationId":"create_part2_record_b3_part2_records_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Part2RecordRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Part2 Record B3 Part2 Records Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/part2/records/{patient_id}":{"get":{"tags":["b3-sensitivity"],"summary":"Get Part2 Records","description":"Retrieve SUD treatment records from the Part 2 segregated store.\n\nRequires an active Part 2 consent authorizing the requesting user, or\nadmin role with therapeutic relationship assertion.  The encrypted content\nis returned; decrypt with POST /b3/decrypt/resource.","operationId":"get_part2_records_b3_part2_records__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Part2 Records B3 Part2 Records  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/encrypt/dek-init":{"post":{"tags":["b3-sensitivity"],"summary":"Init Tenant Dek","description":"Initialise a per-tenant Data Encryption Key (DEK) envelope.\n\nIn production, this call provisions a new KMS-managed DEK for the tenant\nand stores the wrapped DEK in Secret Manager.  The DEK fingerprint (not the\nactual key material) is returned for audit purposes.","operationId":"init_tenant_dek_b3_encrypt_dek_init_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DekInitRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Init Tenant Dek B3 Encrypt Dek Init Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/encrypt/resource":{"post":{"tags":["b3-sensitivity"],"summary":"Encrypt Resource Field","description":"Encrypt a sensitive FHIR resource field using the per-tenant DEK and a\nper-resource sub-key derived from the DEK + resource_id + category.\n\nKey hierarchy:\n  KMS KEK (tenant) → wraps DEK (tenant) → derives sub-key (resource+category)\n  → encrypts field value (AES-256-GCM)","operationId":"encrypt_resource_field_b3_encrypt_resource_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceEncryptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Encrypt Resource Field B3 Encrypt Resource Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/decrypt/resource":{"post":{"tags":["b3-sensitivity"],"summary":"Decrypt Resource Field","description":"Decrypt a FHIR resource field.  The access_reason is mandatory for audit.","operationId":"decrypt_resource_field_b3_decrypt_resource_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceDecryptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decrypt Resource Field B3 Decrypt Resource Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/hti3/repro-access-check":{"post":{"tags":["b3-sensitivity"],"summary":"Hti3 Repro Access Check","description":"HTI-3 reproductive-health access control check.\n\nPer 21st Century Cures Act § 3221 / HTI-3 NPRM:\n- PHI related to reproductive health may not be disclosed to law enforcement\n  or public health authorities without patient consent (absent federal mandate).\n- In protective jurisdictions, additional state-law restrictions apply.\n\nReturns an access decision with the applicable legal basis.","operationId":"hti3_repro_access_check_b3_hti3_repro_access_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReproAccessCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hti3 Repro Access Check B3 Hti3 Repro Access Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/pediatric/access-check":{"post":{"tags":["b3-sensitivity"],"summary":"Pediatric Access Check","description":"COPPA / FERPA pediatric access control check.\n\nRules:\n- If category == MINOR_CONFIDENTIAL:\n    - parent/guardian access DENIED unless court order on file.\n    - minor (self) access always PERMITTED.\n    - clinician access PERMITTED (treating relationship).\n    - law_enforcement DENIED without court order.\n- COPPA: for patients < 13 years, flag heightened data-minimisation requirements.\n- FERPA: for educational records, require student or parent authorization per § 99.30.","operationId":"pediatric_access_check_b3_pediatric_access_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PediatricAccessCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pediatric Access Check B3 Pediatric Access Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/pediatric/court-orders":{"post":{"tags":["b3-sensitivity"],"summary":"Record Court Order","description":"Record a court order granting parental/guardian access to minor records (admin only).","operationId":"record_court_order_b3_pediatric_court_orders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtOrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Court Order B3 Pediatric Court Orders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b3/pediatric/court-orders/{patient_id}":{"get":{"tags":["b3-sensitivity"],"summary":"Get Court Orders","description":"Return all court orders on file for a patient (admin only).","operationId":"get_court_orders_b3_pediatric_court_orders__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Court Orders B3 Pediatric Court Orders  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b5/hazard-log":{"get":{"tags":["b5-clinical-safety"],"summary":"Full IEC 62304 hazard log","description":"Returns all hazard entries covering the six high-risk modules: CPOE, MAR, Medication Reconciliation, Allergy/Interaction, Critical Results, and Agent Acceptance.  Feeds § 170.315(g)(3) SED evidence.","operationId":"list_hazards_b5_hazard_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"module","in":"query","required":false,"schema":{"anyOf":[{"enum":["cpoe","mar","med_reconciliation","allergy_interaction","critical_results","agent_acceptance"],"type":"string"},{"type":"null"}],"title":"Module"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HazardEntry"},"title":"Response List Hazards B5 Hazard Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b5/hazard-log/{hazard_id}":{"get":{"tags":["b5-clinical-safety"],"summary":"Single hazard entry","operationId":"get_hazard_b5_hazard_log__hazard_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"hazard_id","in":"path","required":true,"schema":{"type":"string","title":"Hazard Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HazardEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b5/hazard-log/{hazard_id}/review":{"post":{"tags":["b5-clinical-safety"],"summary":"Record a periodic hazard review (admin only)","description":"Records a quarterly or post-incident review of a hazard entry.  Requires Admin role.  Outcome 'risk-reclassified' or 'controls-updated' signals the Medical Director to update the hazard log document.","operationId":"record_review_b5_hazard_log__hazard_id__review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"hazard_id","in":"path","required":true,"schema":{"type":"string","title":"Hazard Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HazardReviewCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HazardReviewRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b5/hazard-log/{hazard_id}/reviews":{"get":{"tags":["b5-clinical-safety"],"summary":"Review history for a hazard entry","operationId":"list_reviews_b5_hazard_log__hazard_id__reviews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"hazard_id","in":"path","required":true,"schema":{"type":"string","title":"Hazard Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HazardReviewRecord"},"title":"Response List Reviews B5 Hazard Log  Hazard Id  Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b5/safety-case":{"get":{"tags":["b5-clinical-safety"],"summary":"Clinical safety case summary","description":"Returns the safety case summary per IEC 62304 Class B, including residual risk acceptance.","operationId":"get_safety_case_b5_safety_case_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyCaseSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b5/sed-evidence":{"get":{"tags":["b5-clinical-safety"],"summary":"SED evidence bundle for § 170.315(g)(3)","description":"Returns the evidence bundle linking clinical safety artefacts to the Safety-enhanced Design criterion.","operationId":"get_sed_evidence_b5_sed_evidence_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SedEvidence"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/disclosures":{"post":{"tags":["privacy-rule"],"summary":"Record Disclosure","description":"Record a PHI disclosure for accounting purposes (§ 164.528).\n\nNon-TPO disclosures are tracked with a 7-year retention deadline per\n45 CFR § 164.528(b)(1).  TPO disclosures are recorded for operational\ncompleteness but flagged excluded_from_accounting=True.","operationId":"record_disclosure_privacy_disclosures_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisclosureRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Disclosure Privacy Disclosures Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/disclosures/{patient_id}":{"get":{"tags":["privacy-rule"],"summary":"Get Disclosures","description":"Return the accounting of disclosures for a patient (§ 164.528).\n\nExcludes treatment, payment, and healthcare operations disclosures\nper § 164.528(a)(1) unless they were explicitly flagged as included.","operationId":"get_disclosures_privacy_disclosures__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Disclosures Privacy Disclosures  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/npp/current":{"get":{"tags":["privacy-rule"],"summary":"Get Current Npp","description":"Return the current effective NPP version (§ 164.520).","operationId":"get_current_npp_privacy_npp_current_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Current Npp Privacy Npp Current Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/npp":{"post":{"tags":["privacy-rule"],"summary":"Publish Npp","description":"Publish a new NPP version, retiring the previous current version (§ 164.520).","operationId":"publish_npp_privacy_npp_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NPPPublishRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Npp Privacy Npp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/amendments":{"post":{"tags":["privacy-rule"],"summary":"Request Amendment","description":"Patient requests an amendment to their record (§ 164.526).\n\nA 60-day SLA deadline is computed at request time; the provider must\ndispose of the request (accept/deny) within this window.","operationId":"request_amendment_privacy_amendments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmendmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Amendment Privacy Amendments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/amendments/{patient_id}":{"get":{"tags":["privacy-rule"],"summary":"List Amendments","description":"Return all amendment requests for a patient, including live SLA status.","operationId":"list_amendments_privacy_amendments__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Amendments Privacy Amendments  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/amendments/{amendment_id}":{"patch":{"tags":["privacy-rule"],"summary":"Dispose Amendment","description":"Provider accepts or denies a patient amendment request (§ 164.526).","operationId":"dispose_amendment_privacy_amendments__amendment_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"amendment_id","in":"path","required":true,"schema":{"type":"string","title":"Amendment Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmendmentDisposition"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dispose Amendment Privacy Amendments  Amendment Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/restrictions":{"post":{"tags":["privacy-rule"],"summary":"Request Restriction","description":"Patient requests restriction on PHI use or disclosure (§ 164.522).","operationId":"request_restriction_privacy_restrictions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__privacy__RestrictionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Restriction Privacy Restrictions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/restrictions/{patient_id}":{"get":{"tags":["privacy-rule"],"summary":"List Restrictions","description":"Return all restriction requests for a patient.","operationId":"list_restrictions_privacy_restrictions__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Restrictions Privacy Restrictions  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/restrictions/{restriction_id}":{"patch":{"tags":["privacy-rule"],"summary":"Decide Restriction","description":"Provider agrees to or denies a restriction request (§ 164.522).","operationId":"decide_restriction_privacy_restrictions__restriction_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"restriction_id","in":"path","required":true,"schema":{"type":"string","title":"Restriction Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__privacy__RestrictionDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide Restriction Privacy Restrictions  Restriction Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/breach/assess":{"post":{"tags":["privacy-rule"],"summary":"Assess Breach","description":"Run the HIPAA four-factor breach risk assessment (45 CFR § 164.402).\n\nThe result is persisted so that a subsequent draft-notification request\ncan reference it without re-running the assessment.\nThis output does NOT constitute legal advice; engage privacy counsel\nbefore notifying HHS or affected individuals.","operationId":"assess_breach_privacy_breach_assess_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreachAssessmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assess Breach Privacy Breach Assess Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/breach/draft-notification":{"post":{"tags":["privacy-rule"],"summary":"Draft Breach Notification","description":"Generate a 4-hour draft breach notification template (45 CFR § 164.412).\n\nRequires a prior breach assessment for the same incident_id.  The draft\nmust be reviewed and approved by legal/privacy counsel before transmission.","operationId":"draft_breach_notification_privacy_breach_draft_notification_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreachDraftNotificationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Draft Breach Notification Privacy Breach Draft Notification Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/npp/acknowledge":{"post":{"tags":["privacy-rule"],"summary":"Acknowledge Npp","description":"Record that a patient has acknowledged (or refused to acknowledge) the NPP (§ 164.520(c)(2)).","operationId":"acknowledge_npp_privacy_npp_acknowledge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NPPAcknowledgmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Acknowledge Npp Privacy Npp Acknowledge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/npp/acknowledgments/{patient_id}":{"get":{"tags":["privacy-rule"],"summary":"Get Npp Acknowledgments","description":"Return NPP acknowledgment history for a patient (§ 164.520).","operationId":"get_npp_acknowledgments_privacy_npp_acknowledgments__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Npp Acknowledgments Privacy Npp Acknowledgments  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/confidential-comms":{"post":{"tags":["privacy-rule"],"summary":"Create Confidential Comms","description":"Record a patient's confidential communications preference (§ 164.522(b)).\n\nProviders MUST accommodate reasonable requests; they may not require\nthe patient to explain why they want confidential communications.","operationId":"create_confidential_comms_privacy_confidential_comms_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfidentialCommsRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Confidential Comms Privacy Confidential Comms Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/confidential-comms/{patient_id}":{"get":{"tags":["privacy-rule"],"summary":"Get Confidential Comms","description":"Return active confidential communications preferences for a patient.","operationId":"get_confidential_comms_privacy_confidential_comms__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Confidential Comms Privacy Confidential Comms  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/confidential-comms/{preference_id}":{"patch":{"tags":["privacy-rule"],"summary":"Update Confidential Comms","description":"Update or deactivate a confidential communications preference.","operationId":"update_confidential_comms_privacy_confidential_comms__preference_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preference_id","in":"path","required":true,"schema":{"type":"string","title":"Preference Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfidentialCommsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Confidential Comms Privacy Confidential Comms  Preference Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/information-blocking/log":{"post":{"tags":["privacy-rule"],"summary":"Log Information Blocking Decision","description":"Log a decision about access/exchange/use of electronic health information (EHI).\n\nRequired under 21st Century Cures Act § 3022 and 45 CFR Part 171 to maintain\nan auditable record of any denial or restriction, including the exception claimed.","operationId":"log_information_blocking_decision_privacy_information_blocking_log_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformationBlockingLogRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Log Information Blocking Decision Privacy Information Blocking Log Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["privacy-rule"],"summary":"List Information Blocking Log","description":"Return all information-blocking decision log entries (admin only).","operationId":"list_information_blocking_log_privacy_information_blocking_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Information Blocking Log Privacy Information Blocking Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/field-encryption/categories":{"get":{"tags":["field-encryption"],"summary":"List Categories","description":"List all supported sensitivity categories and their legal basis.","operationId":"list_categories_field_encryption_categories_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Categories Field Encryption Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/field-encryption/encrypt":{"post":{"tags":["field-encryption"],"summary":"Encrypt Field","description":"Encrypt a sensitive PHI field using the category-specific KMS key.\n\nThe returned ciphertext should be stored in place of the plaintext value.\nThe plaintext is NOT logged.","operationId":"encrypt_field_field_encryption_encrypt_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/field-encryption/decrypt":{"post":{"tags":["field-encryption"],"summary":"Decrypt Field","description":"Decrypt a sensitive PHI field.  The access_reason is mandatory and\nrecorded in the field-level audit log.","operationId":"decrypt_field_field_encryption_decrypt_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecryptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decrypt Field Field Encryption Decrypt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/field-encryption/audit/{patient_id}":{"get":{"tags":["field-encryption"],"summary":"Get Field Access Audit","description":"Return the field-level access audit log for a patient (admin only).","operationId":"get_field_access_audit_field_encryption_audit__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Field Access Audit Field Encryption Audit  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/archival/policy":{"get":{"tags":["archival"],"summary":"Get Retention Policy","description":"Return the data retention policy summary.","operationId":"get_retention_policy_archival_policy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Retention Policy Archival Policy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/archival/holds":{"post":{"tags":["archival"],"summary":"Place Hold","description":"Place a legal hold on a patient's records.","operationId":"place_hold_archival_holds_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalHoldRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Place Hold Archival Holds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/archival/holds/{patient_id}":{"get":{"tags":["archival"],"summary":"List Holds","description":"Return all legal holds (active and released) for a patient.","operationId":"list_holds_archival_holds__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Holds Archival Holds  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/archival/holds/{hold_id}":{"delete":{"tags":["archival"],"summary":"Release Hold","description":"Release a legal hold.","operationId":"release_hold_archival_holds__hold_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"hold_id","in":"path","required":true,"schema":{"type":"string","title":"Hold Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Release Hold Archival Holds  Hold Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/archival/ediscovery":{"post":{"tags":["archival"],"summary":"Initiate Ediscovery","description":"Initiate an eDiscovery export job.\n\nRequires patient authorization or court order reference.  The export\nis asynchronous; poll /archival/ediscovery/{job_id} for status.\nThe output is a FHIR Bundle (JSON) with all in-scope resources,\ndelivered to the secure eDiscovery GCS bucket.","operationId":"initiate_ediscovery_archival_ediscovery_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EDiscoveryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Initiate Ediscovery Archival Ediscovery Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/archival/ediscovery/{job_id}":{"get":{"tags":["archival"],"summary":"Get Ediscovery Status","description":"Check the status of an eDiscovery export job.","operationId":"get_ediscovery_status_archival_ediscovery__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Ediscovery Status Archival Ediscovery  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/archival/eligible":{"post":{"tags":["archival"],"summary":"Check Archival Eligibility","description":"Determine whether a record is eligible for archival (scheduled deletion\nafter retention period expires).\n\nRecords under a legal hold are NEVER eligible regardless of age.","operationId":"check_archival_eligibility_archival_eligible_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchivalEligibilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Archival Eligibility Archival Eligible Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/archival/forensic-bundle":{"post":{"tags":["archival"],"summary":"Create Forensic Bundle","description":"Create a hash-anchored forensic export bundle for eDiscovery or litigation.\n\nThe bundle manifest is SHA-256 hashed to ensure tamper-evidence.  In\nproduction, the actual record payload is written to an encrypted, WORM\n(Write-Once-Read-Many) GCS bucket; the hash here covers the manifest\nmetadata and is suitable for court submission.\n\nRequires patient authorization (45 CFR § 164.508) or a court order\nreference.  All bundle creation events are appended to the audit log.","operationId":"create_forensic_bundle_archival_forensic_bundle_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForensicBundleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Forensic Bundle Archival Forensic Bundle Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/archival/forensic-bundle/{bundle_id}":{"get":{"tags":["archival"],"summary":"Get Forensic Bundle","description":"Retrieve a forensic bundle manifest by ID.\n\nThe manifest_hash field can be used by counsel to verify the bundle\nhas not been altered since creation.","operationId":"get_forensic_bundle_archival_forensic_bundle__bundle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Forensic Bundle Archival Forensic Bundle  Bundle Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/law-overlay/profiles":{"get":{"tags":["law-overlay"],"summary":"List Profiles","description":"Return all supported law profiles.","operationId":"list_profiles_law_overlay_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Profiles Law Overlay Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/law-overlay/profiles/{code}":{"get":{"tags":["law-overlay"],"summary":"Get Profile","description":"Return a single law profile by jurisdiction code.","operationId":"get_profile_law_overlay_profiles__code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Profile Law Overlay Profiles  Code  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/law-overlay/state-registry":{"get":{"tags":["law-overlay"],"summary":"List State Registry","description":"Return the US state law registry showing which additional laws apply per state.\n\nThese layer on top of HIPAA for US-resident patients.","operationId":"list_state_registry_law_overlay_state_registry_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List State Registry Law Overlay State Registry Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/law-overlay/jurisdiction/{patient_id}":{"get":{"tags":["law-overlay"],"summary":"Resolve Jurisdiction","description":"Resolve the applicable law profile(s) for a patient.\n\nDi-Rezze default: PHIPA + PIPEDA (Ontario / federal Canada).\n\nUS patients (country=US):\n  - Always include HIPAA.\n  - If state is provided and matches the US state registry (e.g. NY, CA, FL,\n    TX, IL, WA), the state-specific law is layered on top.\n\nEU/UK patients (country = ISO-3166-1 alpha-2 for EU/EEA member or GB):\n  - GDPR or UK_GDPR applied as appropriate.","operationId":"resolve_jurisdiction_law_overlay_jurisdiction__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"province","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Province"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Jurisdiction Law Overlay Jurisdiction  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/law-overlay/consent":{"post":{"tags":["law-overlay"],"summary":"Record Consent","description":"Record a patient consent event under the applicable jurisdiction.","operationId":"record_consent_law_overlay_consent_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__law_overlay__ConsentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Consent Law Overlay Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/law-overlay/consent/{patient_id}":{"get":{"tags":["law-overlay"],"summary":"Get Consent","description":"Return all consent records for a patient.","operationId":"get_consent_law_overlay_consent__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Consent Law Overlay Consent  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/law-overlay/breach-notify":{"post":{"tags":["law-overlay"],"summary":"Record Breach Notification","description":"Record that breach notification was sent under the applicable jurisdiction.\n\nCaptures: channel, regulator reference, timeline, and responsible staff.\nDoes not send the notification itself — integrate with your notification\nservice (email gateway, patient portal message API) separately.","operationId":"record_breach_notification_law_overlay_breach_notify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreachNotifyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Breach Notification Law Overlay Breach Notify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-rules/rules":{"get":{"tags":["audit-rules"],"summary":"List Rules","description":"Return all configured audit rules (built-in + custom).","operationId":"list_rules_audit_rules_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Rules Audit Rules Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["audit-rules"],"summary":"Create Rule","description":"Create a custom audit rule.","operationId":"create_rule_audit_rules_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomRuleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Rule Audit Rules Rules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-rules/evaluate":{"post":{"tags":["audit-rules"],"summary":"Evaluate Rules","description":"Run on-demand rule evaluation against provided events or BigQuery.","operationId":"evaluate_rules_audit_rules_evaluate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Evaluate Rules Audit Rules Evaluate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-rules/alerts":{"get":{"tags":["audit-rules"],"summary":"List Alerts","description":"Return generated alerts, optionally filtered by severity or status.","operationId":"list_alerts_audit_rules_alerts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"alert_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alert Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Alerts Audit Rules Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-rules/alerts/{alert_id}":{"patch":{"tags":["audit-rules"],"summary":"Acknowledge Alert","description":"Acknowledge or resolve an alert.","operationId":"acknowledge_alert_audit_rules_alerts__alert_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertAcknowledgement"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Acknowledge Alert Audit Rules Alerts  Alert Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-rules/scheduled":{"post":{"tags":["audit-rules"],"summary":"Run Scheduled Audit","description":"Scheduled audit run — invoked by Cloud Scheduler.\n\nIn production: queries BigQuery for the past 24 hours of audit events,\nevaluates all enabled rules, and forwards alerts to PagerDuty / Slack\nvia the alerting webhook.","operationId":"run_scheduled_audit_audit_rules_scheduled_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Scheduled Audit Audit Rules Scheduled Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-hardening/seal/daily":{"post":{"tags":["audit-hardening"],"summary":"Trigger Daily Seal","description":"Compute and store the daily Merkle-tree seal over the audit log.\n\nIn production, the event list is fetched from BigQuery\n(``sphereehr_audit_logs.onc_d02_audit_events`` partitioned by\n``_PARTITIONTIME``).  For CI / unit-testing, callers may supply\n``simulated_events``.\n\nThe resulting seal record includes:\n- ``seal_date``  — ISO date sealed\n- ``merkle_root`` — hex SHA-256 Merkle root over all event leaf hashes\n- ``leaf_count``  — number of events included\n- ``sealed_at``  — ISO timestamp of this run\n- ``sealed_by``  — UID of the admin who triggered the seal\n- ``seal_id``    — UUID for idempotency / GCS object name\n\nThe record is written to GCS\n``gs://<project>-audit-logs-<env>/transparency/<seal_date>.json``\nin production; here it is stored in the in-process ``_seal_store``.","operationId":"trigger_daily_seal_audit_hardening_seal_daily_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SealRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trigger Daily Seal Audit Hardening Seal Daily Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-hardening/seal/history":{"get":{"tags":["audit-hardening"],"summary":"List Seal History","description":"Return all daily seal records (most recent first).","operationId":"list_seal_history_audit_hardening_seal_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Seal History Audit Hardening Seal History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-hardening/seal/{seal_date}":{"get":{"tags":["audit-hardening"],"summary":"Get Seal","description":"Retrieve the seal record for a specific date (YYYY-MM-DD).","operationId":"get_seal_audit_hardening_seal__seal_date__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"seal_date","in":"path","required":true,"schema":{"type":"string","title":"Seal Date"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Seal Audit Hardening Seal  Seal Date  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-hardening/search":{"post":{"tags":["audit-hardening"],"summary":"Audit Search","description":"Indexed BigQuery audit search for privacy officers.\n\nPerformance contract: P95 ≤ 5 s for date-bounded queries against the\npartitioned ``sphereehr_audit_logs`` dataset.  The query uses:\n  - Partition pruning via ``_PARTITIONTIME``\n  - Tenant segregation via ``tenant_id`` equality filter (clustered column)\n\nReturns a query metadata block including ``execution_ms`` so SRE dashboards\ncan track the P95 latency SLA automatically.\n\nRole enforcement: ADMIN or AUDITOR.  The ``tenant_id`` in the request is\nauthoritative; callers cannot query outside their assigned tenant.","operationId":"audit_search_audit_hardening_search_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Audit Search Audit Hardening Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-hardening/tenant/summary":{"get":{"tags":["audit-hardening"],"summary":"Tenant Audit Summary","description":"Return per-tenant audit event and seal counts.\n\nIf ``tenant_id`` is supplied only that tenant's summary is returned,\notherwise all tenants are returned (admin overview).","operationId":"tenant_audit_summary_audit_hardening_tenant_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Tenant Audit Summary Audit Hardening Tenant Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-hardening/alerts/broadcast":{"post":{"tags":["audit-hardening"],"summary":"Broadcast Alerts","description":"Forward open compliance alerts to the configured notification webhook.\n\nIn production, the webhook URL is read from Secret Manager\n(``sphereehr-compliance-webhook-url``).  Alerts are serialised as JSON\nand POSTed with Content-Type: application/json.\n\n``severity_filter`` accepts ``low`` | ``medium`` | ``high`` | ``critical``.\nOnly alerts at the specified severity **or higher** are broadcast.\n\n``dry_run=true`` validates the payload without actually calling the webhook.","operationId":"broadcast_alerts_audit_hardening_alerts_broadcast_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertBroadcastRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Broadcast Alerts Audit Hardening Alerts Broadcast Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-hardening/seal/verify":{"post":{"tags":["audit-hardening"],"summary":"Verify Seal","description":"Verify that a list of events matches the stored Merkle root for a date.\n\nComputes the Merkle root over the supplied events and compares against the\nstored seal.  Returns ``{\"valid\": true}`` if they match.","operationId":"verify_seal_audit_hardening_seal_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"seal_date","in":"query","required":true,"schema":{"type":"string","title":"Seal Date"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Events"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Seal Audit Hardening Seal Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant-config/{tenant_id}":{"get":{"tags":["tenant-config"],"summary":"Get Tenant Config","description":"Return the configuration for a tenant.","operationId":"get_tenant_config_tenant_config__tenant_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Tenant Config Tenant Config  Tenant Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tenant-config"],"summary":"Upsert Tenant Config","description":"Create or update tenant-level configuration.","operationId":"upsert_tenant_config_tenant_config__tenant_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Tenant Config Tenant Config  Tenant Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant-config/{tenant_id}/facility/{facility_id}":{"get":{"tags":["tenant-config"],"summary":"Get Facility Config","description":"Return facility-specific configuration.","operationId":"get_facility_config_tenant_config__tenant_id__facility__facility_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Facility Config Tenant Config  Tenant Id  Facility  Facility Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tenant-config"],"summary":"Upsert Facility Config","description":"Create or update facility-specific configuration.","operationId":"upsert_facility_config_tenant_config__tenant_id__facility__facility_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Facility Config Tenant Config  Tenant Id  Facility  Facility Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant-config/{tenant_id}/feature-flags":{"get":{"tags":["tenant-config"],"summary":"List Feature Flags","description":"List all feature flags for a tenant.","operationId":"list_feature_flags_tenant_config__tenant_id__feature_flags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Feature Flags Tenant Config  Tenant Id  Feature Flags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant-config/{tenant_id}/feature-flags/{flag_name}":{"patch":{"tags":["tenant-config"],"summary":"Toggle Feature Flag","description":"Enable or disable a feature flag for a tenant.","operationId":"toggle_feature_flag_tenant_config__tenant_id__feature_flags__flag_name__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"flag_name","in":"path","required":true,"schema":{"type":"string","title":"Flag Name"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureFlagUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Toggle Feature Flag Tenant Config  Tenant Id  Feature Flags  Flag Name  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b8/config/seed-template":{"get":{"tags":["b8-customer-config"],"summary":"Get Seed Template","description":"Return a starter config template for onboarding a new clinical tenant.\n\nAdmins copy and fill this template, then POST it to the tenant-config\nupsert endpoint.  All required fields are present (empty strings mark\nmandatory items).  Feature flags default to safe values for a new site.","operationId":"get_seed_template_b8_config_seed_template_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Seed Template B8 Config Seed Template Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b8/config/{tenant_id}/effective":{"get":{"tags":["b8-customer-config"],"summary":"Get Effective Tenant Config","description":"Return the resolved tenant-level configuration.\n\nThis is the authoritative merged view used by all runtime checks (law\noverlay, feature flags, retention policy).","operationId":"get_effective_tenant_config_b8_config__tenant_id__effective_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Effective Tenant Config B8 Config  Tenant Id  Effective Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b8/config/{tenant_id}":{"put":{"tags":["b8-customer-config"],"summary":"Upsert Tenant Config","description":"Create or update tenant-level configuration with audit trail.","operationId":"upsert_tenant_config_b8_config__tenant_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantConfigUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Tenant Config B8 Config  Tenant Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b8/config/{tenant_id}/facility/{facility_id}/effective":{"get":{"tags":["b8-customer-config"],"summary":"Get Effective Facility Config","description":"Return the effective config for a facility.\n\nResolves as: tenant defaults → facility overrides.  Fields present in the\nfacility record take precedence; absent fields fall back to the tenant\nvalue.  This is the config a facility should use at runtime.","operationId":"get_effective_facility_config_b8_config__tenant_id__facility__facility_id__effective_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Effective Facility Config B8 Config  Tenant Id  Facility  Facility Id  Effective Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b8/config/{tenant_id}/facility/{facility_id}":{"put":{"tags":["b8-customer-config"],"summary":"Upsert Facility Config","description":"Create or update a facility configuration with audit trail.","operationId":"upsert_facility_config_b8_config__tenant_id__facility__facility_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityConfigCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Facility Config B8 Config  Tenant Id  Facility  Facility Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b8/config/{tenant_id}/facility/{facility_id}/override":{"post":{"tags":["b8-customer-config"],"summary":"Apply Facility Override","description":"Patch a subset of facility config fields (partial update).\n\nOnly fields explicitly set in the request body are modified.  This is\npreferable to a full PUT when changing a single value (e.g. timezone).","operationId":"apply_facility_override_b8_config__tenant_id__facility__facility_id__override_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityOverride"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Apply Facility Override B8 Config  Tenant Id  Facility  Facility Id  Override Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b8/config/{tenant_id}/onboarding-status":{"get":{"tags":["b8-customer-config"],"summary":"Get Onboarding Status","description":"Return a go-live readiness checklist for a tenant.\n\nChecks every required configuration field and returns a structured report.\nHTTP 200 in all cases; callers inspect the ``status`` field:\n  - ``\"ready\"``       — all checks pass; the tenant may go live.\n  - ``\"incomplete\"``  — one or more required fields are missing.\n\nFacilities with an existing config record are checked individually.","operationId":"get_onboarding_status_b8_config__tenant_id__onboarding_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Onboarding Status B8 Config  Tenant Id  Onboarding Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b8/config/{tenant_id}/history":{"get":{"tags":["b8-customer-config"],"summary":"Get Config History","description":"Return the immutable change-log for a tenant's configuration.\n\nEntries are in ascending chronological order.  Each entry includes the\nactor UID, the action name, the timestamp, and a full snapshot of the\nconfig at the time of the change.","operationId":"get_config_history_b8_config__tenant_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Config History B8 Config  Tenant Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b9/strategy":{"get":{"tags":["b9-vv-strategy"],"summary":"Get Vv Strategy","description":"Return the full V&V strategy document.\n\nCovers test levels, entry/exit criteria, and risk-based prioritisation\nin accordance with ISO/IEC/IEEE 29119-1 and IEC 62304 § 5.7.","operationId":"get_vv_strategy_b9_strategy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Vv Strategy B9 Strategy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b9/traceability":{"get":{"tags":["b9-vv-strategy"],"summary":"Get Traceability Matrix","description":"Return the full traceability matrix.\n\nMaps every tracked item (criterion / agent / workflow) to its V&V\nartefacts.  Items are grouped by item_type for readability.","operationId":"get_traceability_matrix_b9_traceability_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Traceability Matrix B9 Traceability Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b9/traceability/{item_id}":{"get":{"tags":["b9-vv-strategy"],"summary":"Get Traceability Item","description":"Return a single traceability entry by item_id (case-insensitive).","operationId":"get_traceability_item_b9_traceability__item_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Traceability Item B9 Traceability  Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b9/coverage":{"get":{"tags":["b9-vv-strategy"],"summary":"Get Coverage Summary","description":"Return an aggregate coverage summary across all tracked items.","operationId":"get_coverage_summary_b9_coverage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Coverage Summary B9 Coverage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b9/runs":{"post":{"tags":["b9-vv-strategy"],"summary":"Record Vv Run","description":"Record a V&V run result.\n\nCI pipelines and agent orchestrators POST here after each test run to\nbuild an audit trail of V&V activity tied to specific traceability items.\nThe item_id must exist in the traceability matrix.","operationId":"record_vv_run_b9_runs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VvRunCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Vv Run B9 Runs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["b9-vv-strategy"],"summary":"List Vv Runs","description":"Return all recorded V&V run results, latest-first.","operationId":"list_vv_runs_b9_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Vv Runs B9 Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/data-migration/jobs":{"post":{"tags":["data-migration"],"summary":"Create Migration Job","description":"Create a data migration job from a legacy EHR.","operationId":"create_migration_job_data_migration_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationJobRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Migration Job Data Migration Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["data-migration"],"summary":"List Jobs","description":"List all migration jobs, optionally filtered by tenant.","operationId":"list_jobs_data_migration_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Jobs Data Migration Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/data-migration/jobs/{job_id}":{"get":{"tags":["data-migration"],"summary":"Get Job","description":"Get migration job status and reconciliation report.","operationId":"get_job_data_migration_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Job Data Migration Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/data-migration/jobs/{job_id}/approve":{"patch":{"tags":["data-migration"],"summary":"Approve Job","description":"Approve and execute a validated migration job.","operationId":"approve_job_data_migration_jobs__job_id__approve_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__data_migration__ApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Job Data Migration Jobs  Job Id  Approve Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/data-migration/jobs/{job_id}/cancel":{"post":{"tags":["data-migration"],"summary":"Cancel Job","description":"Cancel a pending or awaiting-approval migration job.","operationId":"cancel_job_data_migration_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Job Data Migration Jobs  Job Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b7/import/jobs":{"post":{"tags":["b7-legacy-ehr-import"],"summary":"Create Import Job","description":"Create a legacy EHR import job.\n\nImmediately runs validation and field-map analysis.  The job lands in\nAWAITING_APPROVAL; an admin must then call /approve or /preview before\ndata is written to HAPI FHIR.","operationId":"create_import_job_b7_import_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJobRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Import Job B7 Import Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["b7-legacy-ehr-import"],"summary":"List Import Jobs","description":"List import jobs, optionally filtered by tenant or status.","operationId":"list_import_jobs_b7_import_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ImportJobStatus"},{"type":"null"}],"title":"Status Filter"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Import Jobs B7 Import Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b7/import/jobs/{job_id}":{"get":{"tags":["b7-legacy-ehr-import"],"summary":"Get Import Job","description":"Get import job details including progress and reconciliation report.","operationId":"get_import_job_b7_import_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Import Job B7 Import Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b7/import/jobs/{job_id}/preview":{"post":{"tags":["b7-legacy-ehr-import"],"summary":"Preview Import Job","description":"Dry-run preview: returns how the first N records would be transformed to\nFHIR R4, without writing anything to HAPI FHIR.  Useful for operator\nreview before approving large migrations.","operationId":"preview_import_job_b7_import_jobs__job_id__preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Import Job B7 Import Jobs  Job Id  Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b7/import/jobs/{job_id}/approve":{"patch":{"tags":["b7-legacy-ehr-import"],"summary":"Approve Import Job","description":"Approve and execute the import.\n\nFor dry_run jobs, returns the full transform preview without persisting\nany resources.  For live jobs, writes all FHIR R4 resources to HAPI.","operationId":"approve_import_job_b7_import_jobs__job_id__approve_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__b7_legacy_ehr_import__ApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Import Job B7 Import Jobs  Job Id  Approve Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b7/import/jobs/{job_id}/cancel":{"post":{"tags":["b7-legacy-ehr-import"],"summary":"Cancel Import Job","description":"Cancel a pending or awaiting-approval import job.","operationId":"cancel_import_job_b7_import_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Import Job B7 Import Jobs  Job Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b7/import/jobs/{job_id}/rollback":{"post":{"tags":["b7-legacy-ehr-import"],"summary":"Rollback Import Job","description":"Roll back a completed import job by deleting all FHIR resources it created.\n\nOnly available for COMPLETED (non-dry-run) jobs.  In production, issues\nDELETE calls against HAPI FHIR for each resource ID recorded during import.\nResources that were OVERWRITTEN (not newly created) are restored from a\npre-import snapshot stored in the staging bucket.","operationId":"rollback_import_job_b7_import_jobs__job_id__rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rollback Import Job B7 Import Jobs  Job Id  Rollback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b7/import/audit-log":{"get":{"tags":["b7-legacy-ehr-import"],"summary":"Get Audit Log","description":"Return the in-memory audit log for import events.\n\nIn production, this queries BigQuery (audit sink) rather than an\nin-process list, and is paginated.","operationId":"get_audit_log_b7_import_audit_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Audit Log B7 Import Audit Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b7/import/source-profiles":{"get":{"tags":["b7-legacy-ehr-import"],"summary":"List Source Profiles","description":"List supported source EHR systems and their field-map profiles.","operationId":"list_source_profiles_b7_import_source_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Source Profiles B7 Import Source Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-content/templates":{"post":{"tags":["clinical-content"],"summary":"Create Template","description":"Submit a new clinical template for review.","operationId":"create_template_clinical_content_templates_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Template Clinical Content Templates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["clinical-content"],"summary":"List Templates","description":"List all active templates, optionally filtered.","operationId":"list_templates_clinical_content_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"template_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Templates Clinical Content Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-content/templates/{template_id}":{"get":{"tags":["clinical-content"],"summary":"Get Template","description":"Get a template and its version history.","operationId":"get_template_clinical_content_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Template Clinical Content Templates  Template Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-content/templates/{template_id}/approve":{"patch":{"tags":["clinical-content"],"summary":"Approve Template","description":"Clinical lead approves or rejects a template.","operationId":"approve_template_clinical_content_templates__template_id__approve_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__clinical_content__ApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Template Clinical Content Templates  Template Id  Approve Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-content/dotphrases":{"post":{"tags":["clinical-content"],"summary":"Create Dotphrase","description":"Create a dot phrase.","operationId":"create_dotphrase_clinical_content_dotphrases_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DotPhraseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Dotphrase Clinical Content Dotphrases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["clinical-content"],"summary":"List Dotphrases","description":"List active dot phrases.","operationId":"list_dotphrases_clinical_content_dotphrases_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"specialty","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Dotphrases Clinical Content Dotphrases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-content/screeners":{"post":{"tags":["clinical-content"],"summary":"Register Screener","description":"Register a standardized screening instrument.","operationId":"register_screener_clinical_content_screeners_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenerRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Screener Clinical Content Screeners Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["clinical-content"],"summary":"List Screeners","description":"List all registered screening instruments.","operationId":"list_screeners_clinical_content_screeners_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Screeners Clinical Content Screeners Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mdm/patients/match":{"post":{"tags":["mdm"],"summary":"Match Patients","description":"Find potential matching patients in the MPI for a given demographic query.\nIn production: queries HAPI FHIR $match operation.","operationId":"match_patients_mdm_patients_match_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Match Patients Mdm Patients Match Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mdm/patients/merge":{"post":{"tags":["mdm"],"summary":"Merge Patients","description":"Merge two patient records.  The source record is linked to the target\n(golden) record.  Requires clinician confirmation.","operationId":"merge_patients_mdm_patients_merge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Merge Patients Mdm Patients Merge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mdm/patients/unmerge":{"post":{"tags":["mdm"],"summary":"Unmerge Patients","description":"Reverse a patient merge.","operationId":"unmerge_patients_mdm_patients_unmerge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnmergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unmerge Patients Mdm Patients Unmerge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mdm/patients/{patient_id}/golden":{"get":{"tags":["mdm"],"summary":"Get Golden Record","description":"Return the golden record for a patient (following any merge chain).\nIn production: resolves FHIR Patient.link references.","operationId":"get_golden_record_mdm_patients__patient_id__golden_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Golden Record Mdm Patients  Patient Id  Golden Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mdm/providers":{"get":{"tags":["mdm"],"summary":"List Providers","description":"List all providers in the directory.","operationId":"list_providers_mdm_providers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Providers Mdm Providers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mdm"],"summary":"Register Provider","description":"Register a provider in the master directory.","operationId":"register_provider_mdm_providers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Provider Mdm Providers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mdm/code-maps":{"get":{"tags":["mdm"],"summary":"List Code Maps","description":"List all code mappings, optionally filtered by system.","operationId":"list_code_maps_mdm_code_maps_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"local_system","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local System"}},{"name":"standard_system","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Standard System"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Code Maps Mdm Code Maps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mdm"],"summary":"Add Code Map","description":"Add a local → standard code mapping.","operationId":"add_code_map_mdm_code_maps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeMapRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Code Map Mdm Code Maps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b12/survivorship-rules":{"get":{"tags":["b12-mdm"],"summary":"List Survivorship Rules","description":"Return all registered survivorship rules, optionally filtered by domain.","operationId":"list_survivorship_rules_b12_survivorship_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EntityDomain"},{"type":"null"}],"title":"Domain"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Survivorship Rules B12 Survivorship Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["b12-mdm"],"summary":"Create Survivorship Rule","description":"Register a new survivorship rule for a domain/field combination.","operationId":"create_survivorship_rule_b12_survivorship_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurvivorshipRuleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Survivorship Rule B12 Survivorship Rules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b12/survivorship-rules/{rule_id}":{"put":{"tags":["b12-mdm"],"summary":"Update Survivorship Rule","description":"Update an existing survivorship rule.  Creates a change-control record\nso the mutation is auditable.","operationId":"update_survivorship_rule_b12_survivorship_rules__rule_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurvivorshipRuleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Survivorship Rule B12 Survivorship Rules  Rule Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b12/fact-matrix":{"get":{"tags":["b12-mdm"],"summary":"Get Fact Matrix","description":"Return the canonical fact matrix — the authoritative source assignment\nfor every tracked domain/field combination.","operationId":"get_fact_matrix_b12_fact_matrix_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EntityDomain"},{"type":"null"}],"title":"Domain"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Fact Matrix B12 Fact Matrix Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b12/fact-matrix/entries":{"post":{"tags":["b12-mdm"],"summary":"Upsert Fact Matrix Entry","description":"Add or update a fact-matrix entry designating the authoritative source\nfor a domain/field combination.","operationId":"upsert_fact_matrix_entry_b12_fact_matrix_entries_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactMatrixEntryRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Fact Matrix Entry B12 Fact Matrix Entries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b12/change-control":{"get":{"tags":["b12-mdm"],"summary":"List Change Control","description":"List all change-control items, optionally filtered by status.","operationId":"list_change_control_b12_change_control_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/app__serving__b12_mdm__ChangeStatus"},{"type":"null"}],"title":"Status Filter"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Change Control B12 Change Control Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["b12-mdm"],"summary":"Propose Change","description":"Propose a governance change (new/updated survivorship rule or fact-matrix\nentry).  Change is placed in *pending* state until an admin approves or\nrejects it.","operationId":"propose_change_b12_change_control_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeControlRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Propose Change B12 Change Control Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b12/change-control/{change_id}/approve":{"post":{"tags":["b12-mdm"],"summary":"Approve Change","description":"Approve a pending governance change and apply it.  Only admins may approve.","operationId":"approve_change_b12_change_control__change_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Change B12 Change Control  Change Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b12/change-control/{change_id}/reject":{"post":{"tags":["b12-mdm"],"summary":"Reject Change","description":"Reject a pending governance change.","operationId":"reject_change_b12_change_control__change_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Change B12 Change Control  Change Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b12/dedup/resolve":{"post":{"tags":["b12-mdm"],"summary":"Resolve Canonical","description":"Deduplication canonical record agent — one-record-one-datapoint enforcement.\n\nGiven a set of candidate values for a domain/field from multiple source\nsystems, applies the registered survivorship rule (if any) or falls back\nto the fact-matrix authoritative source, and returns a single canonical\nvalue.\n\nResolution precedence\n---------------------\n1. If a survivorship rule exists for domain.field → apply its strategy.\n2. Else if a fact-matrix entry exists → return the candidate from the\n   designated authoritative source.\n3. Else fallback: ``latest_wins`` across all candidates with timestamps,\n   or the first candidate.","operationId":"resolve_canonical_b12_dedup_resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedupResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Canonical B12 Dedup Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b12/dedup/history":{"get":{"tags":["b12-mdm"],"summary":"Get Dedup History","description":"Return deduplication resolution history, optionally filtered by domain/field.","operationId":"get_dedup_history_b12_dedup_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EntityDomain"},{"type":"null"}],"title":"Domain"}},{"name":"field","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dedup History B12 Dedup History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b13/order-sets":{"post":{"tags":["b13-clinical-content-governance"],"summary":"Create Order Set","description":"Create a new order set in DRAFT status.","operationId":"create_order_set_b13_order_sets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__b13_clinical_content_governance__OrderSetRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Order Set B13 Order Sets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["b13-clinical-content-governance"],"summary":"List Order Sets","description":"List order sets with optional filters.","operationId":"list_order_sets_b13_order_sets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OrderSetCategory"},{"type":"null"}],"title":"Category"}},{"name":"specialty","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ContentStatus"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Order Sets B13 Order Sets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b13/order-sets/{order_set_id}":{"get":{"tags":["b13-clinical-content-governance"],"summary":"Get Order Set","description":"Get an order set with its full version history.","operationId":"get_order_set_b13_order_sets__order_set_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_set_id","in":"path","required":true,"schema":{"type":"string","title":"Order Set Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Order Set B13 Order Sets  Order Set Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["b13-clinical-content-governance"],"summary":"Update Order Set","description":"Update a DRAFT order set; bumps semver and records a version snapshot.","operationId":"update_order_set_b13_order_sets__order_set_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_set_id","in":"path","required":true,"schema":{"type":"string","title":"Order Set Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSetUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Order Set B13 Order Sets  Order Set Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b13/order-sets/{order_set_id}/submit":{"post":{"tags":["b13-clinical-content-governance"],"summary":"Submit Order Set","description":"Submit a DRAFT order set for governance review.","operationId":"submit_order_set_b13_order_sets__order_set_id__submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_set_id","in":"path","required":true,"schema":{"type":"string","title":"Order Set Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Order Set B13 Order Sets  Order Set Id  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b13/order-sets/{order_set_id}/review":{"post":{"tags":["b13-clinical-content-governance"],"summary":"Review Order Set","description":"Governance board votes on a PENDING_REVIEW order set.","operationId":"review_order_set_b13_order_sets__order_set_id__review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_set_id","in":"path","required":true,"schema":{"type":"string","title":"Order Set Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__b13_clinical_content_governance__ReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review Order Set B13 Order Sets  Order Set Id  Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b13/order-sets/{order_set_id}/publish":{"post":{"tags":["b13-clinical-content-governance"],"summary":"Publish Order Set","description":"Activate an APPROVED order set; optionally retire the previous active version.","operationId":"publish_order_set_b13_order_sets__order_set_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_set_id","in":"path","required":true,"schema":{"type":"string","title":"Order Set Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Order Set B13 Order Sets  Order Set Id  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b13/order-sets/{order_set_id}/retire":{"post":{"tags":["b13-clinical-content-governance"],"summary":"Retire Order Set","description":"Retire an ACTIVE order set, optionally pointing to a successor.","operationId":"retire_order_set_b13_order_sets__order_set_id__retire_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_set_id","in":"path","required":true,"schema":{"type":"string","title":"Order Set Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetireRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retire Order Set B13 Order Sets  Order Set Id  Retire Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b13/review-queue":{"get":{"tags":["b13-clinical-content-governance"],"summary":"Get Review Queue","description":"Return all content items currently pending governance review.","operationId":"get_review_queue_b13_review_queue_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Review Queue B13 Review Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b13/audit-log":{"get":{"tags":["b13-clinical-content-governance"],"summary":"Get Audit Log","description":"Return governance audit events, optionally filtered.","operationId":"get_audit_log_b13_audit_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"content_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"}},{"name":"content_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Id"}},{"name":"actor_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Audit Log B13 Audit Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/release-mgmt/changes":{"post":{"tags":["release-management"],"summary":"Submit Change","description":"Submit a change request for review.","operationId":"submit_change_release_mgmt_changes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__release_mgmt__ChangeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Change Release Mgmt Changes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["release-management"],"summary":"List Changes","description":"List all change requests, optionally filtered by status.","operationId":"list_changes_release_mgmt_changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"change_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Changes Release Mgmt Changes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/release-mgmt/changes/{change_id}":{"patch":{"tags":["release-management"],"summary":"Update Change Status","description":"Approve, reject, or advance a change request.","operationId":"update_change_status_release_mgmt_changes__change_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Change Status Release Mgmt Changes  Change Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/release-mgmt/releases":{"post":{"tags":["release-management"],"summary":"Create Release","description":"Create a release record linking approved change requests.","operationId":"create_release_release_mgmt_releases_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Release Release Mgmt Releases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["release-management"],"summary":"List Releases","description":"List all releases.","operationId":"list_releases_release_mgmt_releases_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Releases Release Mgmt Releases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/release-mgmt/releases/{release_id}/rollback":{"post":{"tags":["release-management"],"summary":"Record Rollback","description":"Document a rollback event for a release.","operationId":"record_rollback_release_mgmt_releases__release_id__rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackRecord"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Rollback Release Mgmt Releases  Release Id  Rollback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/release-mgmt/releases/{release_id}":{"get":{"tags":["release-management"],"summary":"Get Release","description":"Get a single release record by ID.","operationId":"get_release_release_mgmt_releases__release_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Release Release Mgmt Releases  Release Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/release-mgmt/changes/{change_id}/cab-review":{"post":{"tags":["release-management"],"summary":"Record Cab Review","description":"Record a Change Advisory Board review vote for a change request.","operationId":"record_cab_review_release_mgmt_changes__change_id__cab_review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CABReview"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Cab Review Release Mgmt Changes  Change Id  Cab Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/release-mgmt/changes/{change_id}/cab-reviews":{"get":{"tags":["release-management"],"summary":"List Cab Reviews","description":"List all CAB review votes for a change request.","operationId":"list_cab_reviews_release_mgmt_changes__change_id__cab_reviews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Cab Reviews Release Mgmt Changes  Change Id  Cab Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/release-mgmt/version":{"get":{"tags":["release-management"],"summary":"Get Version","description":"Return the current deployed version manifest (version, git SHA, deploy time).","operationId":"get_version_release_mgmt_version_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Version Release Mgmt Version Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-registry":{"post":{"tags":["agent-registry"],"summary":"Register Agent","description":"Register a new agent in the catalog (admin only).","operationId":"register_agent_agent_registry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAgentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRegistryEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-registry"],"summary":"List Agents","description":"List all registered agents.","operationId":"list_agents_agent_registry_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentRegistryEntryResponse"},"title":"Response List Agents Agent Registry Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-registry/{registry_id}":{"get":{"tags":["agent-registry"],"summary":"Get Agent","description":"Get a single registry entry by ID.","operationId":"get_agent_agent_registry__registry_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRegistryEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-registry/{registry_id}/versions":{"post":{"tags":["agent-registry"],"summary":"Publish Version","description":"Publish a new version for a registered agent (admin only).","operationId":"publish_version_agent_registry__registry_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishVersionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-registry"],"summary":"List Versions","description":"List all published versions for an agent, newest first.","operationId":"list_versions_agent_registry__registry_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentVersionResponse"},"title":"Response List Versions Agent Registry  Registry Id  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-registry/{registry_id}/versions/{version_id}":{"get":{"tags":["agent-registry"],"summary":"Get Version","description":"Get a specific version by ID.","operationId":"get_version_agent_registry__registry_id__versions__version_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-registry/{registry_id}/versions/{version_id}/deprecate":{"post":{"tags":["agent-registry"],"summary":"Deprecate Version","description":"Deprecate a published version (admin only).  Cannot deprecate the current version.","operationId":"deprecate_version_agent_registry__registry_id__versions__version_id__deprecate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-traces/sessions/{session_id}":{"get":{"tags":["agent-traces"],"summary":"Get Trace For Session","description":"Return the full ordered trace for an agent session.","operationId":"get_trace_for_session_agent_traces_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentTraceEventResponse"},"title":"Response Get Trace For Session Agent Traces Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-traces":{"get":{"tags":["agent-traces"],"summary":"Query Trace Events","description":"Query trace events across all sessions (admin only).\n\nSupports filtering by agent_code, patient_id, event_type, and since\n(ISO-8601 timestamp lower bound).  Results are ordered newest-first.","operationId":"query_trace_events_agent_traces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Code"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TraceEventType"},{"type":"null"}],"title":"Event Type"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentTraceEventResponse"},"title":"Response Query Trace Events Agent Traces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-runtime/sessions":{"post":{"tags":["agent-runtime"],"summary":"Start Agent Session","description":"Start an agent session.  Returns session_id used for subsequent calls.","operationId":"start_agent_session_agent_runtime_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartSessionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Agent Session Agent Runtime Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-runtime/sessions/{session_id}/tool-calls":{"post":{"tags":["agent-runtime"],"summary":"Log Tool Call","description":"Log a sandboxed tool call within a session.","operationId":"log_tool_call_agent_runtime_sessions__session_id__tool_calls_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolCallLogRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Log Tool Call Agent Runtime Sessions  Session Id  Tool Calls Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-runtime/sessions/{session_id}/complete":{"post":{"tags":["agent-runtime"],"summary":"Complete Session","description":"Mark a session completed and persist output.\n\nKAN-281: Runs output guardrails and confidence evaluation before accepting.\nIf confidence is below the threshold, escalation is triggered per the\nagent's escalation policy.","operationId":"complete_session_agent_runtime_sessions__session_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Session Agent Runtime Sessions  Session Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-runtime/sessions/{session_id}":{"get":{"tags":["agent-runtime"],"summary":"Get Session","operationId":"get_session_agent_runtime_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Session Agent Runtime Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-runtime/models":{"get":{"tags":["agent-runtime"],"summary":"List Models","description":"Return the model registry (enabled, PHI-approved models only).","operationId":"list_models_agent_runtime_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Models Agent Runtime Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-runtime/tools":{"get":{"tags":["agent-runtime"],"summary":"List Tools","description":"Return the approved tool catalog.","operationId":"list_tools_agent_runtime_tools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Tools Agent Runtime Tools Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ambient-scribe/sessions":{"post":{"tags":["ambient-scribe"],"summary":"Open Scribe Session","description":"Open a new ambient scribe session for an encounter.","operationId":"open_scribe_session_ambient_scribe_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenSessionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open Scribe Session Ambient Scribe Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ambient-scribe/sessions/{session_id}/segments":{"post":{"tags":["ambient-scribe"],"summary":"Append Segments","description":"Append transcript segments to a scribe session.","operationId":"append_segments_ambient_scribe_sessions__session_id__segments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendSegmentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Append Segments Ambient Scribe Sessions  Session Id  Segments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ambient-scribe/sessions/{session_id}/generate":{"post":{"tags":["ambient-scribe"],"summary":"Generate Note Draft","description":"Trigger SOAP note generation from the accumulated transcript.\n\nWires through agent_runtime (AgentSession) and the AI-003 review queue\n(AgentRunRecord).  In production invokes the Claude API; in test / local\nmode returns a deterministic stub when the API key is absent.","operationId":"generate_note_draft_ambient_scribe_sessions__session_id__generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Generate Note Draft Ambient Scribe Sessions  Session Id  Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ambient-scribe/sessions/{session_id}/accept":{"post":{"tags":["ambient-scribe"],"summary":"Accept Draft","description":"Clinician accepts (optionally edits) the draft — commits to FHIR.\n\nOn acceptance:\n  - Writes a FHIR DocumentReference for the note\n  - Writes FHIR Condition resources for each suggested_diagnosis\n  - Writes a FHIR Provenance resource (§ 170.315(d)(8))\n  - Updates the AI-003 review queue record\n  - Emits AGENT_REVIEW_ACCEPTED audit event","operationId":"accept_draft_ambient_scribe_sessions__session_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Draft Ambient Scribe Sessions  Session Id  Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ambient-scribe/sessions/{session_id}/reject":{"post":{"tags":["ambient-scribe"],"summary":"Reject Draft","description":"Clinician rejects the draft — no FHIR write occurs.","operationId":"reject_draft_ambient_scribe_sessions__session_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"Clinician rejected","title":"Reason"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Draft Ambient Scribe Sessions  Session Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ambient-scribe/sessions/{session_id}":{"get":{"tags":["ambient-scribe"],"summary":"Get Session","operationId":"get_session_ambient_scribe_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Session Ambient Scribe Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/medication-reconciler/jobs":{"post":{"tags":["medication-reconciler"],"summary":"Start Reconciliation Job","description":"Start a medication reconciliation job.\n\nWires through agent_runtime (AgentSession) and the AI-003 review queue.","operationId":"start_reconciliation_job_medication_reconciler_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartJobRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Reconciliation Job Medication Reconciler Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["medication-reconciler"],"summary":"List Jobs","operationId":"list_jobs_medication_reconciler_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Jobs Medication Reconciler Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/medication-reconciler/jobs/{job_id}":{"get":{"tags":["medication-reconciler"],"summary":"Get Job","operationId":"get_job_medication_reconciler_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Job Medication Reconciler Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/medication-reconciler/jobs/{job_id}/items/{item_id}/resolve":{"post":{"tags":["medication-reconciler"],"summary":"Resolve Discrepancy","description":"Clinician resolves a single discrepancy item.\n\nWhen resolution is keep_source or manual, writes a FHIR MedicationStatement.\nWhen all non-confirmed items are resolved, writes a FHIR Provenance and\nposts a review record to the AI-003 queue.","operationId":"resolve_discrepancy_medication_reconciler_jobs__job_id__items__item_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Discrepancy Medication Reconciler Jobs  Job Id  Items  Item Id  Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/speech-pipeline/sessions":{"post":{"tags":["speech-pipeline"],"summary":"Open Audio Session","description":"Open a new audio session.  Returns session_id for subsequent chunk ingestion.","operationId":"open_audio_session_speech_pipeline_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAudioSessionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open Audio Session Speech Pipeline Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/speech-pipeline/sessions/{session_id}/chunks":{"post":{"tags":["speech-pipeline"],"summary":"Ingest Chunk","description":"Ingest a transcript chunk from the STT provider.","operationId":"ingest_chunk_speech_pipeline_sessions__session_id__chunks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestChunkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Chunk Speech Pipeline Sessions  Session Id  Chunks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/speech-pipeline/sessions/{session_id}/ptt":{"post":{"tags":["speech-pipeline"],"summary":"Toggle Push To Talk","description":"Activate or deactivate push-to-talk for a session.","operationId":"toggle_push_to_talk_speech_pipeline_sessions__session_id__ptt_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToTalkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Toggle Push To Talk Speech Pipeline Sessions  Session Id  Ptt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/speech-pipeline/sessions/{session_id}/close":{"post":{"tags":["speech-pipeline"],"summary":"Close Audio Session","description":"Close the audio session and return the assembled transcript.","operationId":"close_audio_session_speech_pipeline_sessions__session_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Close Audio Session Speech Pipeline Sessions  Session Id  Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/speech-pipeline/sessions/{session_id}":{"get":{"tags":["speech-pipeline"],"summary":"Get Audio Session","operationId":"get_audio_session_speech_pipeline_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Audio Session Speech Pipeline Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/speech-pipeline/sessions/{session_id}/transcript":{"get":{"tags":["speech-pipeline"],"summary":"Get Transcript","description":"Return the assembled transcript for a session.","operationId":"get_transcript_speech_pipeline_sessions__session_id__transcript_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Transcript Speech Pipeline Sessions  Session Id  Transcript Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/instances":{"post":{"tags":["workflow"],"summary":"Start Workflow","description":"Start a workflow instance.","operationId":"start_workflow_workflow_instances_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWorkflowRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Workflow Workflow Instances Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workflow"],"summary":"List Instances","operationId":"list_instances_workflow_instances_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Instances Workflow Instances Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/instances/{instance_id}/advance":{"post":{"tags":["workflow"],"summary":"Advance Step","description":"Mark a step as completed (or awaiting_review for hybrid) and return newly unblocked steps.","operationId":"advance_step_workflow_instances__instance_id__advance_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvanceStepRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Advance Step Workflow Instances  Instance Id  Advance Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/instances/{instance_id}/cosign":{"post":{"tags":["workflow"],"summary":"Cosign Step","description":"Co-sign a step that requires_cosign.","operationId":"cosign_step_workflow_instances__instance_id__cosign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CosignStepRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cosign Step Workflow Instances  Instance Id  Cosign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/instances/{instance_id}/escalate":{"post":{"tags":["workflow"],"summary":"Escalate Step","description":"Manually escalate a step (also triggered automatically when SLA lapses).","operationId":"escalate_step_workflow_instances__instance_id__escalate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalateStepRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Escalate Step Workflow Instances  Instance Id  Escalate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/instances/{instance_id}":{"get":{"tags":["workflow"],"summary":"Get Instance","operationId":"get_instance_workflow_instances__instance_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Instance Workflow Instances  Instance Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/definitions":{"get":{"tags":["workflow"],"summary":"List Definitions","operationId":"list_definitions_workflow_definitions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Definitions Workflow Definitions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/definitions/{definition_id}":{"get":{"tags":["workflow"],"summary":"Get Definition","operationId":"get_definition_workflow_definitions__definition_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Definition Workflow Definitions  Definition Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow-registry/{definition_id}":{"post":{"tags":["workflow-registry"],"summary":"Register a new workflow definition version","operationId":"register_workflow_workflow_registry__definition_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterWorkflowRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Workflow Workflow Registry  Definition Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workflow-registry"],"summary":"List all versions of a definition for a tenant","operationId":"list_versions_workflow_registry__definition_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Versions Workflow Registry  Definition Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow-registry/{definition_id}/versions/{version}/publish":{"post":{"tags":["workflow-registry"],"summary":"Publish a draft definition (makes it eligible for execution)","operationId":"publish_workflow_workflow_registry__definition_id__versions__version__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Workflow Workflow Registry  Definition Id  Versions  Version  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow-registry/{definition_id}/versions/{version}/deprecate":{"post":{"tags":["workflow-registry"],"summary":"Deprecate a published definition","operationId":"deprecate_workflow_workflow_registry__definition_id__versions__version__deprecate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Deprecate Workflow Workflow Registry  Definition Id  Versions  Version  Deprecate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow-registry/{definition_id}/versions/{version}":{"get":{"tags":["workflow-registry"],"summary":"Fetch a specific definition version","operationId":"get_version_workflow_registry__definition_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Version Workflow Registry  Definition Id  Versions  Version  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-governance/models":{"post":{"tags":["model-governance"],"summary":"Register Model","description":"Register a new model version and begin the governance lifecycle.","operationId":"register_model_model_governance_models_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterModelRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Model Model Governance Models Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["model-governance"],"summary":"List Models","operationId":"list_models_model_governance_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lifecycle_stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lifecycle Stage"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Models Model Governance Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-governance/models/{record_id}/source-attributes":{"patch":{"tags":["model-governance"],"summary":"Update Source Attributes","description":"Draft / update all 31 HTI-1 Source Attributes for a model record.","operationId":"update_source_attributes_model_governance_models__record_id__source_attributes_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceAttributesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Source Attributes Model Governance Models  Record Id  Source Attributes Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-governance/evals":{"post":{"tags":["model-governance"],"summary":"Submit Eval Run","description":"Submit evaluation results for one pack type + suite combination.","operationId":"submit_eval_run_model_governance_evals_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartEvalRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Eval Run Model Governance Evals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["model-governance"],"summary":"List Eval Runs","operationId":"list_eval_runs_model_governance_evals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Id"}},{"name":"pack_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Eval Runs Model Governance Evals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-governance/models/{record_id}/transition":{"post":{"tags":["model-governance"],"summary":"Transition Lifecycle","description":"Advance or roll back a model through the governance lifecycle.\n\nTransitions into shadow/canary/limited_ga/ga are blocked until the full\nfour-pack eval (golden + adversarial + regression + holdout) clears.","operationId":"transition_lifecycle_model_governance_models__record_id__transition_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransitionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Transition Lifecycle Model Governance Models  Record Id  Transition Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-governance/models/{record_id}/approve":{"post":{"tags":["model-governance"],"summary":"Approve Model","description":"Clinician-lead / admin sign-off after reviewing eval results.\n\nApproval records the approver UID and is required before the model can\ntransition beyond VALIDATE.","operationId":"approve_model_model_governance_models__record_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveModelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Model Model Governance Models  Record Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-governance/models/{record_id}":{"get":{"tags":["model-governance"],"summary":"Get Model","operationId":"get_model_model_governance_models__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Model Model Governance Models  Record Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-governance/bias-reports":{"get":{"tags":["model-governance"],"summary":"List Bias Reports","description":"Continuous bias & calibration metrics across all eval runs.\n\nReturns one entry per (run_id, demographic_group, metric_name) so\nmonitoring jobs can poll for disparity ratio drift over time.","operationId":"list_bias_reports_model_governance_bias_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Bias Reports Model Governance Bias Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-governance/suites":{"get":{"tags":["model-governance"],"summary":"List Eval Suites","operationId":"list_eval_suites_model_governance_suites_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Eval Suites Model Governance Suites Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-governance/lifecycle-transitions":{"get":{"tags":["model-governance"],"summary":"List Lifecycle Transitions","description":"Return the full allowed transition map for UI rendering.","operationId":"list_lifecycle_transitions_model_governance_lifecycle_transitions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Lifecycle Transitions Model Governance Lifecycle Transitions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transparency/model-card/{record_id}":{"get":{"tags":["transparency"],"summary":"Get Model Card","description":"Return a complete model card for any DSI-invoking UI surface.\n\nNo authentication required — cards are intended for instant clinician access.\nThe card includes all 31 HTI-1 source attributes, the four-pack eval status,\nand the latest bias/calibration snapshot.","operationId":"get_model_card_transparency_model_card__record_id__get","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Model Card Transparency Model Card  Record Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transparency/model-cards":{"get":{"tags":["transparency"],"summary":"List Model Cards","description":"List summarised model cards with optional filtering.","operationId":"list_model_cards_transparency_model_cards_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lifecycle_stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lifecycle Stage"}},{"name":"agent_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Model Cards Transparency Model Cards Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transparency/model-card/{record_id}/feedback":{"post":{"tags":["transparency"],"summary":"Submit Card Feedback","description":"Clinician feedback on a model card (concern, endorsement, question).\n\nFeedback is audit-logged and can be reviewed by the governance team.","operationId":"submit_card_feedback_transparency_model_card__record_id__feedback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Card Feedback Transparency Model Card  Record Id  Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-gateway/policies":{"post":{"tags":["model-gateway"],"summary":"Set Tenant Policy","description":"Create or replace the model-routing policy for a tenant.","operationId":"set_tenant_policy_model_gateway_policies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPolicyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Tenant Policy Model Gateway Policies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-gateway/policies/{tenant_id}":{"get":{"tags":["model-gateway"],"summary":"Get Tenant Policy","description":"Return the active model-routing policy for a tenant.","operationId":"get_tenant_policy_model_gateway_policies__tenant_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Tenant Policy Model Gateway Policies  Tenant Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-gateway/resolve":{"post":{"tags":["model-gateway"],"summary":"Resolve Route","description":"Resolve which provider/model should handle a given task for a tenant.\n\nThe resolution decision is written to the audit store regardless of\noutcome (RESOLVED, FALLBACK, or BLOCKED).","operationId":"resolve_route_model_gateway_resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Route Model Gateway Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-gateway/decisions/{decision_id}":{"get":{"tags":["model-gateway"],"summary":"Get Decision","description":"Retrieve a previously recorded routing decision by ID.","operationId":"get_decision_model_gateway_decisions__decision_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Decision Model Gateway Decisions  Decision Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-gateway/decisions":{"get":{"tags":["model-gateway"],"summary":"List Decisions","description":"List routing decisions, optionally filtered by tenant or task class.","operationId":"list_decisions_model_gateway_decisions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},{"name":"task_class","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TaskClass"},{"type":"null"}],"title":"Task Class"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Decisions Model Gateway Decisions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/model-gateway/catalog":{"get":{"tags":["model-gateway"],"summary":"List Catalog","description":"List all available provider models in the gateway catalog.","operationId":"list_catalog_model_gateway_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Catalog Model Gateway Catalog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tool-registry/tools":{"post":{"tags":["tool-registry"],"summary":"Register Tool","description":"Register a new custom tool (admin only).  Built-ins cannot be overwritten.","operationId":"register_tool_tool_registry_tools_post","parameters":[{"name":"x-caller-role","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Caller-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRegistrationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRegistration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["tool-registry"],"summary":"List Tools","description":"List all registered tools with optional filters.","operationId":"list_tools_tool_registry_tools_get","parameters":[{"name":"phi_classification","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PhiClassification"},{"type":"null"}],"title":"Phi Classification"}},{"name":"audit_class","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AuditClass"},{"type":"null"}],"title":"Audit Class"}},{"name":"builtin_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Builtin Only"}},{"name":"include_deprecated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deprecated"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ToolRegistration"},"title":"Response List Tools Tool Registry Tools Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tool-registry/tools/{tool_name}":{"get":{"tags":["tool-registry"],"summary":"Get Tool","operationId":"get_tool_tool_registry_tools__tool_name__get","parameters":[{"name":"tool_name","in":"path","required":true,"schema":{"type":"string","title":"Tool Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRegistration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tool-registry/tools/{tool_name}/deprecate":{"patch":{"tags":["tool-registry"],"summary":"Deprecate Tool","operationId":"deprecate_tool_tool_registry_tools__tool_name__deprecate_patch","parameters":[{"name":"tool_name","in":"path","required":true,"schema":{"type":"string","title":"Tool Name"}},{"name":"x-caller-role","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Caller-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRegistration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tool-registry/invoke":{"post":{"tags":["tool-registry"],"summary":"Invoke Tool Endpoint","description":"Invoke a registered tool through the full pre/post sandbox.\nThe caller must supply caller_scopes and caller_roles in the request body.","operationId":"invoke_tool_endpoint_tool_registry_invoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolInvokeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolInvokeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tool-registry/audit":{"get":{"tags":["tool-registry"],"summary":"List Audit Events","description":"Query tool invocation audit events (admin only).","operationId":"list_audit_events_tool_registry_audit_get","parameters":[{"name":"tool_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Name"}},{"name":"caller_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Id"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"x-caller-role","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Caller-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditEvent"},"title":"Response List Audit Events Tool Registry Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-memory/sessions/{session_id}/turns":{"post":{"tags":["agent-memory"],"summary":"Append a conversation turn to short-term memory","description":"Append a single turn (user / assistant / tool / system) to the in-prompt\ncontext window for *session_id*.  When the running token total exceeds\n``_DEFAULT_TURN_TOKEN_BUDGET`` the oldest non-system turns are evicted\n(sliding-window strategy) to stay within budget.\n\nONC § 170.315(d)(2): every append is recorded in the audit trail.","operationId":"append_turn_agent_memory_sessions__session_id__turns_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendTurnRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TurnRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-memory"],"summary":"Retrieve all turns in short-term memory for a session","operationId":"get_turns_agent_memory_sessions__session_id__turns_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TurnPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-memory"],"summary":"Clear short-term memory for a completed session","description":"Called automatically by the runtime on session completion.","operationId":"clear_turns_agent_memory_sessions__session_id__turns_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-memory/sessions/{session_id}/working/{key}":{"put":{"tags":["agent-memory"],"summary":"Upsert a key in the session scratch store","description":"Write (or overwrite) a key in the working-memory scratch store for this\nsession.  In production, writes go to the ``agent_working_memory`` Cloud\nSQL table (V004 migration).  Locally, an in-memory dict is used.\n\nONC § 170.315(d)(2): write logged to audit trail.","operationId":"upsert_working_agent_memory_sessions__session_id__working__key__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkingMemoryUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkingMemoryEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-memory"],"summary":"Read a key from the session scratch store","operationId":"get_working_key_agent_memory_sessions__session_id__working__key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkingMemoryEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-memory"],"summary":"Delete a key from the session scratch store","operationId":"delete_working_key_agent_memory_sessions__session_id__working__key__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-memory/sessions/{session_id}/working":{"get":{"tags":["agent-memory"],"summary":"List all live keys in the session scratch store","operationId":"list_working_agent_memory_sessions__session_id__working_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkingMemoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-memory/encounters/{encounter_id}/composition":{"post":{"tags":["agent-memory"],"summary":"Create or update the agent Composition for an encounter","description":"Write a FHIR ``Composition`` resource carrying agent provenance in\n``meta.tag``.  On first call a new resource is created; subsequent calls\nPUT to the existing resource ID so the FHIR ``_history`` chain captures\nevery agent revision.\n\nONC § 170.315(d)(8): Composition.author references the agent identifier\nso provenance is auditable.","operationId":"upsert_encounter_composition_agent_memory_encounters__encounter_id__composition_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncounterCompositionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncounterCompositionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-memory"],"summary":"Get the current agent Composition ID for an encounter","operationId":"get_encounter_composition_agent_memory_encounters__encounter_id__composition_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncounterCompositionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-memory/patients/{patient_id}/summary":{"post":{"tags":["agent-memory"],"summary":"Trigger summarization agent and persist as DocumentReference","description":"Persist the output of the summarization agent as a FHIR\n``DocumentReference``.  If a previous summary exists for this patient\nit is linked via ``relatesTo`` with code ``replaces`` so the FHIR\nhistory chain is preserved.\n\nONC § 170.315(d)(8): relatesTo chain provides provenance across\nsummary generations; ``meta.tag`` carries agent identity.","operationId":"upsert_patient_summary_agent_memory_patients__patient_id__summary_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientSummaryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-memory"],"summary":"Get the latest patient summary DocumentReference ID","operationId":"get_patient_summary_agent_memory_patients__patient_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vector-svc/collections":{"post":{"tags":["vector-svc"],"summary":"Create Collection","operationId":"create_collection_vector_svc_collections_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["vector-svc"],"summary":"List Collections","operationId":"list_collections_vector_svc_collections_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CollectionInfo"},"title":"Response List Collections Vector Svc Collections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vector-svc/collections/{name}/upsert":{"post":{"tags":["vector-svc"],"summary":"Upsert Points","operationId":"upsert_points_vector_svc_collections__name__upsert_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Points Vector Svc Collections  Name  Upsert Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vector-svc/collections/{name}/search":{"post":{"tags":["vector-svc"],"summary":"Search Collection","operationId":"search_collection_vector_svc_collections__name__search_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vector-svc/collections/{name}/points":{"delete":{"tags":["vector-svc"],"summary":"Delete Points","operationId":"delete_points_vector_svc_collections__name__points_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Points Vector Svc Collections  Name  Points Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vector-svc/collections/{name}/points/{point_id}":{"get":{"tags":["vector-svc"],"summary":"Get Point","operationId":"get_point_vector_svc_collections__name__points__point_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"point_id","in":"path","required":true,"schema":{"type":"string","title":"Point Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PointOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rag-svc/patient/retrieve":{"post":{"tags":["rag-svc"],"summary":"Patient Retrieve","operationId":"patient_retrieve_rag_svc_patient_retrieve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientRetrieveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientRetrieveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rag-svc/knowledge/retrieve":{"post":{"tags":["rag-svc"],"summary":"Knowledge Retrieve","operationId":"knowledge_retrieve_rag_svc_knowledge_retrieve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeRetrieveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeRetrieveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rag-svc/index/patient":{"post":{"tags":["rag-svc"],"summary":"Index Patient Record","operationId":"index_patient_record_rag_svc_index_patient_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexPatientRecordRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexPatientRecordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rag-svc/index/knowledge":{"post":{"tags":["rag-svc"],"summary":"Index Knowledge","operationId":"index_knowledge_rag_svc_index_knowledge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexKnowledgeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexKnowledgeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rag-svc/guardrail/citations":{"post":{"tags":["rag-svc"],"summary":"Check Citations","operationId":"check_citations_rag_svc_guardrail_citations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CitationGuardrailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CitationGuardrailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/voice-svc/voices":{"get":{"tags":["voice-svc"],"summary":"List Voices","description":"Return available TTS voices.","operationId":"list_voices_voice_svc_voices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Voices Voice Svc Voices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/voice-svc/synthesize":{"post":{"tags":["voice-svc"],"summary":"Synthesize Speech","description":"Synthesize text to speech.  Returns base64-encoded audio bytes.\n\nIn production uses the configured TTS provider (GCP Text-to-Speech or\nElevenLabs).  In stub mode returns a silent placeholder.","operationId":"synthesize_speech_voice_svc_synthesize_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TTSRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Synthesize Speech Voice Svc Synthesize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/voice-svc/read-back":{"post":{"tags":["voice-svc"],"summary":"Read Back Order","description":"Read back a high-risk order for clinician verbal confirmation.\n\nReturns synthesized audio of the order detail so the clinician can\nconfirm before committing.  Only available for order types in the\nHIGH_RISK_ORDER_TYPES set.","operationId":"read_back_order_voice_svc_read_back_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadBackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Back Order Voice Svc Read Back Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/voice-svc/voice-auth":{"post":{"tags":["voice-svc"],"summary":"Voice Auth","description":"Voice authentication — step-down only.\n\nAttempts to verify the caller's identity using a voice sample.\nThis is a step-down mechanism: failure does not revoke session auth.\nA real implementation would compare the sample against a stored\nvoiceprint enrolled via /voice-svc/voiceprint/enroll.\n\nReturns result and confidence score (0.0–1.0).","operationId":"voice_auth_voice_svc_voice_auth_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceAuthRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Voice Auth Voice Svc Voice Auth Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/run":{"post":{"tags":["guardrails"],"summary":"Run Guardrails","description":"Execute the full guardrail pipeline for a given agent session output.\n\nReturns the aggregated GuardrailPipelineResult.  BLOCK outcome means the\noutput must not be surfaced to the clinician until reviewed.","operationId":"run_guardrails_guardrails_run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunGuardrailsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailPipelineResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/runs/{run_id}":{"get":{"tags":["guardrails"],"summary":"Get Run","description":"Retrieve a previously executed guardrail pipeline result by run_id.","operationId":"get_run_guardrails_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailPipelineResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/configs":{"post":{"tags":["guardrails"],"summary":"Create Config","description":"Create or replace a guardrail configuration (admin only).","operationId":"create_config_guardrails_configs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConfigRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailConfig"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["guardrails"],"summary":"List Configs","description":"List all guardrail configurations.","operationId":"list_configs_guardrails_configs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GuardrailConfig"},"title":"Response List Configs Guardrails Configs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/configs/{config_id}":{"put":{"tags":["guardrails"],"summary":"Update Config","description":"Update an existing guardrail configuration (admin only).","operationId":"update_config_guardrails_configs__config_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailConfig"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["guardrails"],"summary":"Get Config","description":"Retrieve a guardrail configuration by ID.","operationId":"get_config_guardrails_configs__config_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailConfig"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/note-finalizer/jobs":{"post":{"tags":["note-finalizer"],"summary":"Run Note Finalizer","operationId":"run_note_finalizer_note_finalizer_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteFinalizeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Note Finalizer Note Finalizer Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["note-finalizer"],"summary":"List Note Finalizer Jobs","operationId":"list_note_finalizer_jobs_note_finalizer_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Note Finalizer Jobs Note Finalizer Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/note-finalizer/jobs/{job_id}":{"get":{"tags":["note-finalizer"],"summary":"Get Note Finalizer Job","operationId":"get_note_finalizer_job_note_finalizer_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Note Finalizer Job Note Finalizer Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-list-reconciler/jobs":{"post":{"tags":["problem-list-reconciler"],"summary":"Run Problem List Reconciler","operationId":"run_problem_list_reconciler_problem_list_reconciler_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemListReconcileRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Problem List Reconciler Problem List Reconciler Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["problem-list-reconciler"],"summary":"List Problem List Jobs","operationId":"list_problem_list_jobs_problem_list_reconciler_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Problem List Jobs Problem List Reconciler Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-list-reconciler/jobs/{job_id}":{"get":{"tags":["problem-list-reconciler"],"summary":"Get Problem List Job","operationId":"get_problem_list_job_problem_list_reconciler_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Problem List Job Problem List Reconciler Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/allergy-curator/jobs":{"post":{"tags":["allergy-curator"],"summary":"Run Allergy Curator","operationId":"run_allergy_curator_allergy_curator_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllergyCurateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Allergy Curator Allergy Curator Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["allergy-curator"],"summary":"List Allergy Curator Jobs","operationId":"list_allergy_curator_jobs_allergy_curator_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Allergy Curator Jobs Allergy Curator Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/allergy-curator/jobs/{job_id}":{"get":{"tags":["allergy-curator"],"summary":"Get Allergy Curator Job","operationId":"get_allergy_curator_job_allergy_curator_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Allergy Curator Job Allergy Curator Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/immunization-reconciler/jobs":{"post":{"tags":["immunization-reconciler"],"summary":"Run Immunization Reconciler","operationId":"run_immunization_reconciler_immunization_reconciler_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImmunizationReconcileRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Immunization Reconciler Immunization Reconciler Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["immunization-reconciler"],"summary":"List Immunization Jobs","operationId":"list_immunization_jobs_immunization_reconciler_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Immunization Jobs Immunization Reconciler Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/immunization-reconciler/jobs/{job_id}":{"get":{"tags":["immunization-reconciler"],"summary":"Get Immunization Job","operationId":"get_immunization_job_immunization_reconciler_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Immunization Job Immunization Reconciler Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/order-set-composer/jobs":{"post":{"tags":["order-set-composer"],"summary":"Run Order Set Composer","operationId":"run_order_set_composer_order_set_composer_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__agents_order_dsi__OrderSetRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Order Set Composer Order Set Composer Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["order-set-composer"],"summary":"List Order Set Jobs","operationId":"list_order_set_jobs_order_set_composer_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Order Set Jobs Order Set Composer Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/order-set-composer/jobs/{job_id}":{"get":{"tags":["order-set-composer"],"summary":"Get Order Set Job","operationId":"get_order_set_job_order_set_composer_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Order Set Job Order Set Composer Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-predictive-sepsis/jobs":{"post":{"tags":["dsi-predictive-sepsis"],"summary":"Run Sepsis Dsi","operationId":"run_sepsis_dsi_dsi_predictive_sepsis_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SepsisScreenRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Sepsis Dsi Dsi Predictive Sepsis Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dsi-predictive-sepsis"],"summary":"List Sepsis Jobs","operationId":"list_sepsis_jobs_dsi_predictive_sepsis_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Sepsis Jobs Dsi Predictive Sepsis Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-predictive-sepsis/jobs/{job_id}":{"get":{"tags":["dsi-predictive-sepsis"],"summary":"Get Sepsis Job","operationId":"get_sepsis_job_dsi_predictive_sepsis_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sepsis Job Dsi Predictive Sepsis Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-predictive-deterioration/jobs":{"post":{"tags":["dsi-predictive-deterioration"],"summary":"Run Deterioration Dsi","operationId":"run_deterioration_dsi_dsi_predictive_deterioration_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeteriorationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Deterioration Dsi Dsi Predictive Deterioration Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dsi-predictive-deterioration"],"summary":"List Deterioration Jobs","operationId":"list_deterioration_jobs_dsi_predictive_deterioration_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Deterioration Jobs Dsi Predictive Deterioration Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-predictive-deterioration/jobs/{job_id}":{"get":{"tags":["dsi-predictive-deterioration"],"summary":"Get Deterioration Job","operationId":"get_deterioration_job_dsi_predictive_deterioration_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Deterioration Job Dsi Predictive Deterioration Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-readmission-risk/jobs":{"post":{"tags":["dsi-readmission-risk"],"summary":"Run Readmission Risk","operationId":"run_readmission_risk_dsi_readmission_risk_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadmissionRiskRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Readmission Risk Dsi Readmission Risk Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dsi-readmission-risk"],"summary":"List Readmission Jobs","operationId":"list_readmission_jobs_dsi_readmission_risk_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Readmission Jobs Dsi Readmission Risk Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-readmission-risk/jobs/{job_id}":{"get":{"tags":["dsi-readmission-risk"],"summary":"Get Readmission Job","operationId":"get_readmission_job_dsi_readmission_risk_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Readmission Job Dsi Readmission Risk Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-fall-risk/jobs":{"post":{"tags":["dsi-fall-risk"],"summary":"Run Fall Risk","operationId":"run_fall_risk_dsi_fall_risk_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FallRiskRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Fall Risk Dsi Fall Risk Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dsi-fall-risk"],"summary":"List Fall Risk Jobs","operationId":"list_fall_risk_jobs_dsi_fall_risk_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Fall Risk Jobs Dsi Fall Risk Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-fall-risk/jobs/{job_id}":{"get":{"tags":["dsi-fall-risk"],"summary":"Get Fall Risk Job","operationId":"get_fall_risk_job_dsi_fall_risk_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Fall Risk Job Dsi Fall Risk Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-oud-risk/jobs":{"post":{"tags":["dsi-oud-risk"],"summary":"Run Oud Risk","operationId":"run_oud_risk_dsi_oud_risk_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OUDRiskRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Oud Risk Dsi Oud Risk Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dsi-oud-risk"],"summary":"List Oud Risk Jobs","operationId":"list_oud_risk_jobs_dsi_oud_risk_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Oud Risk Jobs Dsi Oud Risk Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-oud-risk/jobs/{job_id}":{"get":{"tags":["dsi-oud-risk"],"summary":"Get Oud Risk Job","operationId":"get_oud_risk_job_dsi_oud_risk_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Oud Risk Job Dsi Oud Risk Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guideline-advisor/jobs":{"post":{"tags":["guideline-advisor"],"summary":"Run Guideline Advisor","operationId":"run_guideline_advisor_guideline_advisor_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuidelineRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Guideline Advisor Guideline Advisor Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["guideline-advisor"],"summary":"List Guideline Jobs","operationId":"list_guideline_jobs_guideline_advisor_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Guideline Jobs Guideline Advisor Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guideline-advisor/jobs/{job_id}":{"get":{"tags":["guideline-advisor"],"summary":"Get Guideline Job","operationId":"get_guideline_job_guideline_advisor_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Guideline Job Guideline Advisor Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/drug-interaction-screen/jobs":{"post":{"tags":["drug-interaction-screen"],"summary":"Run Drug Interaction Screen","operationId":"run_drug_interaction_screen_drug_interaction_screen_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrugInteractionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Drug Interaction Screen Drug Interaction Screen Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["drug-interaction-screen"],"summary":"List Drug Interaction Jobs","operationId":"list_drug_interaction_jobs_drug_interaction_screen_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Drug Interaction Jobs Drug Interaction Screen Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/drug-interaction-screen/jobs/{job_id}":{"get":{"tags":["drug-interaction-screen"],"summary":"Get Drug Interaction Job","operationId":"get_drug_interaction_job_drug_interaction_screen_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Drug Interaction Job Drug Interaction Screen Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-coder/jobs":{"post":{"tags":["clinical-coder"],"summary":"Run Clinical Coder","operationId":"run_clinical_coder_clinical_coder_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicalCoderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Clinical Coder Clinical Coder Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["clinical-coder"],"summary":"List Coder Jobs","operationId":"list_coder_jobs_clinical_coder_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Coder Jobs Clinical Coder Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinical-coder/jobs/{job_id}":{"get":{"tags":["clinical-coder"],"summary":"Get Coder Job","operationId":"get_coder_job_clinical_coder_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Coder Job Clinical Coder Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hcc-capture/jobs":{"post":{"tags":["hcc-capture"],"summary":"Run Hcc Capture","operationId":"run_hcc_capture_hcc_capture_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HCCCaptureRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Hcc Capture Hcc Capture Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hcc-capture"],"summary":"List Hcc Jobs","operationId":"list_hcc_jobs_hcc_capture_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Hcc Jobs Hcc Capture Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hcc-capture/jobs/{job_id}":{"get":{"tags":["hcc-capture"],"summary":"Get Hcc Job","operationId":"get_hcc_job_hcc_capture_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Hcc Job Hcc Capture Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth-agent/jobs":{"post":{"tags":["prior-auth-agent"],"summary":"Run Prior Auth Agent","operationId":"run_prior_auth_agent_prior_auth_agent_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorAuthAgentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Prior Auth Agent Prior Auth Agent Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["prior-auth-agent"],"summary":"List Prior Auth Jobs","operationId":"list_prior_auth_jobs_prior_auth_agent_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Prior Auth Jobs Prior Auth Agent Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth-agent/jobs/{job_id}":{"get":{"tags":["prior-auth-agent"],"summary":"Get Prior Auth Job","operationId":"get_prior_auth_job_prior_auth_agent_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Prior Auth Job Prior Auth Agent Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/charge-capture-scout/jobs":{"post":{"tags":["charge-capture-scout"],"summary":"Run Charge Capture","operationId":"run_charge_capture_charge_capture_scout_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeCaptureRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Charge Capture Charge Capture Scout Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["charge-capture-scout"],"summary":"List Charge Jobs","operationId":"list_charge_jobs_charge_capture_scout_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Charge Jobs Charge Capture Scout Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/charge-capture-scout/jobs/{job_id}":{"get":{"tags":["charge-capture-scout"],"summary":"Get Charge Job","operationId":"get_charge_job_charge_capture_scout_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Charge Job Charge Capture Scout Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/denial-responder/jobs":{"post":{"tags":["denial-responder"],"summary":"Run Denial Responder","operationId":"run_denial_responder_denial_responder_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DenialResponderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Denial Responder Denial Responder Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["denial-responder"],"summary":"List Denial Jobs","operationId":"list_denial_jobs_denial_responder_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Denial Jobs Denial Responder Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/denial-responder/jobs/{job_id}":{"get":{"tags":["denial-responder"],"summary":"Get Denial Job","operationId":"get_denial_job_denial_responder_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Denial Job Denial Responder Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/care-transition-orchestrator/jobs":{"post":{"tags":["care-transition-orchestrator"],"summary":"Run Care Transition","operationId":"run_care_transition_care_transition_orchestrator_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CareTransitionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Care Transition Care Transition Orchestrator Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["care-transition-orchestrator"],"summary":"List Transition Jobs","operationId":"list_transition_jobs_care_transition_orchestrator_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Transition Jobs Care Transition Orchestrator Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/care-transition-orchestrator/jobs/{job_id}":{"get":{"tags":["care-transition-orchestrator"],"summary":"Get Transition Job","operationId":"get_transition_job_care_transition_orchestrator_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Transition Job Care Transition Orchestrator Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referral-orchestrator/jobs":{"post":{"tags":["referral-orchestrator"],"summary":"Run Referral Orchestrator","operationId":"run_referral_orchestrator_referral_orchestrator_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralOrchRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Referral Orchestrator Referral Orchestrator Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["referral-orchestrator"],"summary":"List Referral Orch Jobs","operationId":"list_referral_orch_jobs_referral_orchestrator_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Referral Orch Jobs Referral Orchestrator Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referral-orchestrator/jobs/{job_id}":{"get":{"tags":["referral-orchestrator"],"summary":"Get Referral Orch Job","operationId":"get_referral_orch_job_referral_orchestrator_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Referral Orch Job Referral Orchestrator Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/population-health-scout/jobs":{"post":{"tags":["population-health-scout"],"summary":"Run Population Health","operationId":"run_population_health_population_health_scout_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PopulationHealthRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Population Health Population Health Scout Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["population-health-scout"],"summary":"List Pop Health Jobs","operationId":"list_pop_health_jobs_population_health_scout_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Pop Health Jobs Population Health Scout Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/population-health-scout/jobs/{job_id}":{"get":{"tags":["population-health-scout"],"summary":"Get Pop Health Job","operationId":"get_pop_health_job_population_health_scout_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Pop Health Job Population Health Scout Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-outreach-composer/jobs":{"post":{"tags":["patient-outreach-composer"],"summary":"Run Patient Outreach","operationId":"run_patient_outreach_patient_outreach_composer_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientOutreachRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Patient Outreach Patient Outreach Composer Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["patient-outreach-composer"],"summary":"List Outreach Jobs","operationId":"list_outreach_jobs_patient_outreach_composer_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Outreach Jobs Patient Outreach Composer Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-outreach-composer/jobs/{job_id}":{"get":{"tags":["patient-outreach-composer"],"summary":"Get Outreach Job","operationId":"get_outreach_job_patient_outreach_composer_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Outreach Job Patient Outreach Composer Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-navigator/jobs":{"post":{"tags":["patient-navigator"],"summary":"Run Patient Navigator","operationId":"run_patient_navigator_patient_navigator_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientNavigatorRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Patient Navigator Patient Navigator Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["patient-navigator"],"summary":"List Navigator Jobs","operationId":"list_navigator_jobs_patient_navigator_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Navigator Jobs Patient Navigator Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-navigator/jobs/{job_id}":{"get":{"tags":["patient-navigator"],"summary":"Get Navigator Job","operationId":"get_navigator_job_patient_navigator_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Navigator Job Patient Navigator Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/symptom-triage-agent/jobs":{"post":{"tags":["symptom-triage-agent"],"summary":"Run Symptom Triage","operationId":"run_symptom_triage_symptom_triage_agent_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SymptomTriageRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Symptom Triage Symptom Triage Agent Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["symptom-triage-agent"],"summary":"List Triage Jobs","operationId":"list_triage_jobs_symptom_triage_agent_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Triage Jobs Symptom Triage Agent Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/symptom-triage-agent/jobs/{job_id}":{"get":{"tags":["symptom-triage-agent"],"summary":"Get Triage Job","operationId":"get_triage_job_symptom_triage_agent_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Triage Job Symptom Triage Agent Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-education-delivery/jobs":{"post":{"tags":["patient-education-delivery"],"summary":"Run Patient Education","operationId":"run_patient_education_patient_education_delivery_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientEducationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Patient Education Patient Education Delivery Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["patient-education-delivery"],"summary":"List Education Jobs","operationId":"list_education_jobs_patient_education_delivery_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Education Jobs Patient Education Delivery Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-education-delivery/jobs/{job_id}":{"get":{"tags":["patient-education-delivery"],"summary":"Get Education Job","operationId":"get_education_job_patient_education_delivery_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Education Job Patient Education Delivery Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/post-discharge-followup/jobs":{"post":{"tags":["post-discharge-followup"],"summary":"Run Post Discharge Followup","operationId":"run_post_discharge_followup_post_discharge_followup_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDischargeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Post Discharge Followup Post Discharge Followup Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["post-discharge-followup"],"summary":"List Followup Jobs","operationId":"list_followup_jobs_post_discharge_followup_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Followup Jobs Post Discharge Followup Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/post-discharge-followup/jobs/{job_id}":{"get":{"tags":["post-discharge-followup"],"summary":"Get Followup Job","operationId":"get_followup_job_post_discharge_followup_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Followup Job Post Discharge Followup Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bed-manager/jobs":{"post":{"tags":["bed-manager"],"summary":"Run Bed Manager","operationId":"run_bed_manager_bed_manager_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BedManagerRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Bed Manager Bed Manager Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["bed-manager"],"summary":"List Bed Jobs","operationId":"list_bed_jobs_bed_manager_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Bed Jobs Bed Manager Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bed-manager/jobs/{job_id}":{"get":{"tags":["bed-manager"],"summary":"Get Bed Job","operationId":"get_bed_job_bed_manager_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Bed Job Bed Manager Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/schedule-optimizer/jobs":{"post":{"tags":["schedule-optimizer"],"summary":"Run Schedule Optimizer","operationId":"run_schedule_optimizer_schedule_optimizer_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOptimizerRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Schedule Optimizer Schedule Optimizer Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["schedule-optimizer"],"summary":"List Schedule Jobs","operationId":"list_schedule_jobs_schedule_optimizer_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Schedule Jobs Schedule Optimizer Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/schedule-optimizer/jobs/{job_id}":{"get":{"tags":["schedule-optimizer"],"summary":"Get Schedule Job","operationId":"get_schedule_job_schedule_optimizer_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Schedule Job Schedule Optimizer Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/intake-form-filler/jobs":{"post":{"tags":["intake-form-filler"],"summary":"Run Intake Form","operationId":"run_intake_form_intake_form_filler_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntakeFormRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Intake Form Intake Form Filler Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["intake-form-filler"],"summary":"List Intake Jobs","operationId":"list_intake_jobs_intake_form_filler_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Intake Jobs Intake Form Filler Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/intake-form-filler/jobs/{job_id}":{"get":{"tags":["intake-form-filler"],"summary":"Get Intake Job","operationId":"get_intake_job_intake_form_filler_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Intake Job Intake Form Filler Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consent-orchestrator/jobs":{"post":{"tags":["consent-orchestrator"],"summary":"Run Consent Orchestrator","operationId":"run_consent_orchestrator_consent_orchestrator_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__agents_operational__ConsentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Consent Orchestrator Consent Orchestrator Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["consent-orchestrator"],"summary":"List Consent Jobs","operationId":"list_consent_jobs_consent_orchestrator_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Consent Jobs Consent Orchestrator Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consent-orchestrator/jobs/{job_id}":{"get":{"tags":["consent-orchestrator"],"summary":"Get Consent Job","operationId":"get_consent_job_consent_orchestrator_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Consent Job Consent Orchestrator Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/supply-forecaster/jobs":{"post":{"tags":["supply-forecaster"],"summary":"Run Supply Forecaster","operationId":"run_supply_forecaster_supply_forecaster_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyForecastRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Supply Forecaster Supply Forecaster Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["supply-forecaster"],"summary":"List Supply Jobs","operationId":"list_supply_jobs_supply_forecaster_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Supply Jobs Supply Forecaster Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/supply-forecaster/jobs/{job_id}":{"get":{"tags":["supply-forecaster"],"summary":"Get Supply Job","operationId":"get_supply_job_supply_forecaster_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Supply Job Supply Forecaster Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/staffing-advisor/jobs":{"post":{"tags":["staffing-advisor"],"summary":"Run Staffing Advisor","operationId":"run_staffing_advisor_staffing_advisor_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Staffing Advisor Staffing Advisor Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["staffing-advisor"],"summary":"List Staffing Jobs","operationId":"list_staffing_jobs_staffing_advisor_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Staffing Jobs Staffing Advisor Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/staffing-advisor/jobs/{job_id}":{"get":{"tags":["staffing-advisor"],"summary":"Get Staffing Job","operationId":"get_staffing_job_staffing_advisor_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Staffing Job Staffing Advisor Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mds3-agent/jobs":{"post":{"tags":["mds3-agent"],"summary":"Run Mds3","operationId":"run_mds3_mds3_agent_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MDS3Request"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Mds3 Mds3 Agent Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["mds3-agent"],"summary":"List Mds3 Jobs","operationId":"list_mds3_jobs_mds3_agent_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Mds3 Jobs Mds3 Agent Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mds3-agent/jobs/{job_id}":{"get":{"tags":["mds3-agent"],"summary":"Get Mds3 Job","operationId":"get_mds3_job_mds3_agent_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Mds3 Job Mds3 Agent Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oasis-e-agent/jobs":{"post":{"tags":["oasis-e-agent"],"summary":"Run Oasis E","operationId":"run_oasis_e_oasis_e_agent_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OASISRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Oasis E Oasis E Agent Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["oasis-e-agent"],"summary":"List Oasis Jobs","operationId":"list_oasis_jobs_oasis_e_agent_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Oasis Jobs Oasis E Agent Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oasis-e-agent/jobs/{job_id}":{"get":{"tags":["oasis-e-agent"],"summary":"Get Oasis Job","operationId":"get_oasis_job_oasis_e_agent_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Oasis Job Oasis E Agent Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospice-plan-of-care/jobs":{"post":{"tags":["hospice-plan-of-care"],"summary":"Run Hospice Plan","operationId":"run_hospice_plan_hospice_plan_of_care_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HospiceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Hospice Plan Hospice Plan Of Care Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hospice-plan-of-care"],"summary":"List Hospice Jobs","operationId":"list_hospice_jobs_hospice_plan_of_care_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Hospice Jobs Hospice Plan Of Care Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospice-plan-of-care/jobs/{job_id}":{"get":{"tags":["hospice-plan-of-care"],"summary":"Get Hospice Job","operationId":"get_hospice_job_hospice_plan_of_care_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Hospice Job Hospice Plan Of Care Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ivf-cycle-manager/jobs":{"post":{"tags":["ivf-cycle-manager"],"summary":"Run Ivf Cycle","operationId":"run_ivf_cycle_ivf_cycle_manager_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IVFCycleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Ivf Cycle Ivf Cycle Manager Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ivf-cycle-manager"],"summary":"List Ivf Jobs","operationId":"list_ivf_jobs_ivf_cycle_manager_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Ivf Jobs Ivf Cycle Manager Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ivf-cycle-manager/jobs/{job_id}":{"get":{"tags":["ivf-cycle-manager"],"summary":"Get Ivf Job","operationId":"get_ivf_job_ivf_cycle_manager_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Ivf Job Ivf Cycle Manager Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/behavioral-health-risk-screener/jobs":{"post":{"tags":["behavioral-health-risk-screener"],"summary":"Run Bh Screener","operationId":"run_bh_screener_behavioral_health_risk_screener_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BehavioralHealthRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Bh Screener Behavioral Health Risk Screener Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["behavioral-health-risk-screener"],"summary":"List Bh Jobs","operationId":"list_bh_jobs_behavioral_health_risk_screener_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Bh Jobs Behavioral Health Risk Screener Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/behavioral-health-risk-screener/jobs/{job_id}":{"get":{"tags":["behavioral-health-risk-screener"],"summary":"Get Bh Job","operationId":"get_bh_job_behavioral_health_risk_screener_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Bh Job Behavioral Health Risk Screener Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatric-growth-surveillance/jobs":{"post":{"tags":["pediatric-growth-surveillance"],"summary":"Run Growth Surveillance","operationId":"run_growth_surveillance_pediatric_growth_surveillance_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PediatricGrowthRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Growth Surveillance Pediatric Growth Surveillance Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pediatric-growth-surveillance"],"summary":"List Growth Jobs","operationId":"list_growth_jobs_pediatric_growth_surveillance_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Growth Jobs Pediatric Growth Surveillance Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatric-growth-surveillance/jobs/{job_id}":{"get":{"tags":["pediatric-growth-surveillance"],"summary":"Get Growth Job","operationId":"get_growth_job_pediatric_growth_surveillance_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Growth Job Pediatric Growth Surveillance Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/info-blocking-evaluator/jobs":{"post":{"tags":["info-blocking-evaluator"],"summary":"Run Info Blocking Eval","operationId":"run_info_blocking_eval_info_blocking_evaluator_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfoBlockingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Info Blocking Eval Info Blocking Evaluator Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["info-blocking-evaluator"],"summary":"List Info Blocking Jobs","operationId":"list_info_blocking_jobs_info_blocking_evaluator_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Info Blocking Jobs Info Blocking Evaluator Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/info-blocking-evaluator/jobs/{job_id}":{"get":{"tags":["info-blocking-evaluator"],"summary":"Get Info Blocking Job","operationId":"get_info_blocking_job_info_blocking_evaluator_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Info Blocking Job Info Blocking Evaluator Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy-advisor/jobs":{"post":{"tags":["privacy-advisor"],"summary":"Run Privacy Advisor","operationId":"run_privacy_advisor_privacy_advisor_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyAdvisorRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Privacy Advisor Privacy Advisor Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["privacy-advisor"],"summary":"List Privacy Advisor Jobs","operationId":"list_privacy_advisor_jobs_privacy_advisor_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Privacy Advisor Jobs Privacy Advisor Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy-advisor/jobs/{job_id}":{"get":{"tags":["privacy-advisor"],"summary":"Get Privacy Advisor Job","operationId":"get_privacy_advisor_job_privacy_advisor_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Privacy Advisor Job Privacy Advisor Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-auditor/jobs":{"post":{"tags":["dsi-auditor"],"summary":"Run Dsi Auditor","operationId":"run_dsi_auditor_dsi_auditor_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DSIAuditorRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Dsi Auditor Dsi Auditor Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dsi-auditor"],"summary":"List Dsi Auditor Jobs","operationId":"list_dsi_auditor_jobs_dsi_auditor_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Dsi Auditor Jobs Dsi Auditor Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dsi-auditor/jobs/{job_id}":{"get":{"tags":["dsi-auditor"],"summary":"Get Dsi Auditor Job","operationId":"get_dsi_auditor_job_dsi_auditor_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dsi Auditor Job Dsi Auditor Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance-watchdog/jobs":{"post":{"tags":["compliance-watchdog"],"summary":"Run Compliance Watchdog","operationId":"run_compliance_watchdog_compliance_watchdog_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceWatchdogRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Compliance Watchdog Compliance Watchdog Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["compliance-watchdog"],"summary":"List Watchdog Jobs","operationId":"list_watchdog_jobs_compliance_watchdog_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Watchdog Jobs Compliance Watchdog Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance-watchdog/jobs/{job_id}":{"get":{"tags":["compliance-watchdog"],"summary":"Get Watchdog Job","operationId":"get_watchdog_job_compliance_watchdog_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Watchdog Job Compliance Watchdog Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mobile/devices/register":{"post":{"tags":["mobile"],"summary":"Register Device","description":"Register a mobile device for the authenticated user.","operationId":"register_device_mobile_devices_register_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterDeviceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Device Mobile Devices Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mobile/devices/{device_id}/push-token":{"put":{"tags":["mobile"],"summary":"Update Push Token","description":"Update the push notification token for a device.","operationId":"update_push_token_mobile_devices__device_id__push_token_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePushTokenRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mobile/devices/{device_id}/biometric-enroll":{"post":{"tags":["mobile"],"summary":"Enroll Biometric","description":"Enroll a biometric (Face ID / fingerprint) key for the device.\n\nThe client sends the public key from the Secure Enclave (iOS) or\nAndroid Keystore / TEE (Android).  In production the public key is\nstored in Cloud KMS; here we ack receipt and mark the device enrolled.","operationId":"enroll_biometric_mobile_devices__device_id__biometric_enroll_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollBiometricRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enroll Biometric Mobile Devices  Device Id  Biometric Enroll Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mobile/devices/{device_id}/native-bridge/handshake":{"post":{"tags":["mobile"],"summary":"Native Bridge Handshake","description":"SwiftUI (iOS) / Compose (Android) bridge handshake.\n\nCalled once per app launch by the native layer to negotiate capabilities\n(HEIF capture, Secure Enclave, Face ID, HEVC encode) with the backend.\nReturns the server-side feature flags the native layer should enable.","operationId":"native_bridge_handshake_mobile_devices__device_id__native_bridge_handshake_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NativeBridgeHandshakeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Native Bridge Handshake Mobile Devices  Device Id  Native Bridge Handshake Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mobile/sync/pull":{"post":{"tags":["mobile"],"summary":"Sync Pull","description":"Pull a changeset since the last sync cursor.\n\nReturns FHIR resources the user has access to, filtered by resource type\nand optional patient list.  In production, queries Cloud Spanner /\nFHIR subscription event log.","operationId":"sync_pull_mobile_sync_pull_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncPullRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync Pull Mobile Sync Pull Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mobile/sync/push":{"post":{"tags":["mobile"],"summary":"Sync Push","description":"Push offline mutations with three-way merge conflict resolution.\n\nEach mutation carries an optional client_version (ETag at time of\noffline edit) and ancestor_version (common ancestor tag).  The server\napplies three-way merge:\n  - Auto-merges non-overlapping field changes.\n  - Returns CONFLICT status for overlapping concurrent edits so the\n    mobile client can present a resolution UI.","operationId":"sync_push_mobile_sync_push_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MutationRequest"},"title":"Mutations"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync Push Mobile Sync Push Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mobile/media/upload":{"post":{"tags":["mobile"],"summary":"Upload Media","description":"Attach a HEIF/HEVC (or JPEG fallback) photo/video to a FHIR Media resource.\n\niOS clients capture with AVAssetWriter (HEIF/HEVC) and send Base64\npayload.  Android clients use MediaCodec API 29+ for HEVC; earlier\ndevices send JPEG.  The backend stores the binary and creates a FHIR R4\nMedia resource referencing the patient.","operationId":"upload_media_mobile_media_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUploadRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Media Mobile Media Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mobile/media/{media_id}/content":{"get":{"tags":["mobile"],"summary":"Get Media Content","description":"Retrieve a previously-uploaded media binary (Base64).\n\nIn production this endpoint issues a signed Cloud Storage URL instead\nof returning the raw bytes.","operationId":"get_media_content_mobile_media__media_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_id","in":"path","required":true,"schema":{"type":"string","title":"Media Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Media Content Mobile Media  Media Id  Content Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mobile/devices":{"get":{"tags":["mobile"],"summary":"List Devices","description":"List devices registered to the authenticated user.","operationId":"list_devices_mobile_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Devices Mobile Devices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-portal-v2/proxy-access":{"post":{"tags":["patient-portal-v2"],"summary":"Grant Proxy Access","description":"Patient grants proxy access to a delegate.  IAL2 proofing required before activation.","operationId":"grant_proxy_access_patient_portal_v2_proxy_access_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantProxyAccessRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Grant Proxy Access Patient Portal V2 Proxy Access Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["patient-portal-v2"],"summary":"List Proxy Relationships","operationId":"list_proxy_relationships_patient_portal_v2_proxy_access_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Proxy Relationships Patient Portal V2 Proxy Access Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-portal-v2/proxy-access/proofing":{"post":{"tags":["patient-portal-v2"],"summary":"Submit Identity Proofing","description":"Record the outcome of an IAL2 identity proofing session.","operationId":"submit_identity_proofing_patient_portal_v2_proxy_access_proofing_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitProofingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Identity Proofing Patient Portal V2 Proxy Access Proofing Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-portal-v2/proxy-access/{relationship_id}":{"delete":{"tags":["patient-portal-v2"],"summary":"Revoke Proxy Access","description":"Revoke a proxy relationship.","operationId":"revoke_proxy_access_patient_portal_v2_proxy_access__relationship_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"relationship_id","in":"path","required":true,"schema":{"type":"string","title":"Relationship Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-portal-v2/minor-confidentiality":{"post":{"tags":["patient-portal-v2"],"summary":"Create Minor Profile","description":"Create / update a minor confidentiality profile for a patient.","operationId":"create_minor_profile_patient_portal_v2_minor_confidentiality_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinorProfileRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Minor Profile Patient Portal V2 Minor Confidentiality Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-portal-v2/minor-confidentiality/{patient_id}":{"get":{"tags":["patient-portal-v2"],"summary":"Get Minor Profile","operationId":"get_minor_profile_patient_portal_v2_minor_confidentiality__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Minor Profile Patient Portal V2 Minor Confidentiality  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-portal-v2/access-check":{"get":{"tags":["patient-portal-v2"],"summary":"Check Delegate Access","description":"Check whether a delegate has access to a specific resource category.","operationId":"check_delegate_access_patient_portal_v2_access_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"grantor_patient_id","in":"query","required":true,"schema":{"type":"string","title":"Grantor Patient Id"}},{"name":"delegate_uid","in":"query","required":true,"schema":{"type":"string","title":"Delegate Uid"}},{"name":"resource_category","in":"query","required":false,"schema":{"type":"string","default":"general","title":"Resource Category"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Delegate Access Patient Portal V2 Access Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/messages":{"post":{"tags":["patient-portal-c13"],"summary":"Send Message","description":"Send a secure message between patient / delegate and care team.","operationId":"send_message_c13_messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Message C13 Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/messages/{patient_id}":{"get":{"tags":["patient-portal-c13"],"summary":"List Messages","description":"List all messages for a patient.","operationId":"list_messages_c13_messages__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Messages C13 Messages  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/messages/{message_id}/read":{"put":{"tags":["patient-portal-c13"],"summary":"Mark Message Read","description":"Mark a message as read.","operationId":"mark_message_read_c13_messages__message_id__read_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Message Read C13 Messages  Message Id  Read Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/triage":{"post":{"tags":["patient-portal-c13"],"summary":"Submit Triage","description":"Submit a symptom triage request.  Returns immediate disposition.","operationId":"submit_triage_c13_triage_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitTriageRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Triage C13 Triage Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/triage/{session_id}":{"get":{"tags":["patient-portal-c13"],"summary":"Get Triage Session","operationId":"get_triage_session_c13_triage__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Triage Session C13 Triage  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/identity-proofing/kba/initiate":{"post":{"tags":["patient-portal-c13"],"summary":"Initiate Kba","description":"Initiate a KBA session for NIST 800-63 IAL2 proofing of a proxy delegate.","operationId":"initiate_kba_c13_identity_proofing_kba_initiate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateKBARequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Initiate Kba C13 Identity Proofing Kba Initiate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/identity-proofing/kba/verify":{"post":{"tags":["patient-portal-c13"],"summary":"Verify Kba","description":"Submit KBA answers.  3+ correct answers out of 3 = pass.","operationId":"verify_kba_c13_identity_proofing_kba_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyKBARequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Kba C13 Identity Proofing Kba Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/identity-proofing/document":{"post":{"tags":["patient-portal-c13"],"summary":"Submit Document Verification","description":"Submit document verification evidence for IAL2 proofing.","operationId":"submit_document_verification_c13_identity_proofing_document_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitDocumentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Document Verification C13 Identity Proofing Document Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/identity-proofing/document/review":{"post":{"tags":["patient-portal-c13"],"summary":"Review Document Verification","description":"Admin reviews and approves/rejects a submitted document.","operationId":"review_document_verification_c13_identity_proofing_document_review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDocumentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review Document Verification C13 Identity Proofing Document Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/translate":{"post":{"tags":["patient-portal-c13"],"summary":"Translate Content","description":"Translate patient-facing content into the requested locale and reading level.","operationId":"translate_content_c13_translate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Translate Content C13 Translate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/records/{patient_id}/download":{"get":{"tags":["patient-portal-c13"],"summary":"Download Patient Records","description":"Generate a patient record download package.\n\nReturns a stub payload describing the record bundle.\nProduction: assembles from FHIR store via fhir_client.py,\ngenerates C-CDA via ccda_builder, renders PDF via reportlab/WeasyPrint.","operationId":"download_patient_records_c13_records__patient_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"format","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DownloadFormat","default":"fhir_bundle"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Patient Records C13 Records  Patient Id  Download Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/outreach":{"post":{"tags":["patient-portal-c13"],"summary":"Create Outreach","description":"Create a CRM outreach campaign entry for a patient.","operationId":"create_outreach_c13_outreach_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOutreachRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Outreach C13 Outreach Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/outreach/{patient_id}":{"get":{"tags":["patient-portal-c13"],"summary":"List Outreach","description":"List outreach history for a patient.","operationId":"list_outreach_c13_outreach__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Outreach C13 Outreach  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c13/outreach/{outreach_id}/response":{"post":{"tags":["patient-portal-c13"],"summary":"Record Outreach Response","description":"Record a patient's response to an outreach message.","operationId":"record_outreach_response_c13_outreach__outreach_id__response_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outreach_id","in":"path","required":true,"schema":{"type":"string","title":"Outreach Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Outreach Response C13 Outreach  Outreach Id  Response Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpm-ccm/rpm/devices":{"post":{"tags":["rpm-ccm"],"summary":"Enroll Device","description":"Enroll a remote monitoring device for a patient.","operationId":"enroll_device_rpm_ccm_rpm_devices_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollDeviceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enroll Device Rpm Ccm Rpm Devices Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpm-ccm/rpm/readings":{"post":{"tags":["rpm-ccm"],"summary":"Ingest Reading","description":"Ingest a device reading and evaluate against alert thresholds.","operationId":"ingest_reading_rpm_ccm_rpm_readings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestReadingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Reading Rpm Ccm Rpm Readings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["rpm-ccm"],"summary":"List Readings","operationId":"list_readings_rpm_ccm_rpm_readings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"device_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Readings Rpm Ccm Rpm Readings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpm-ccm/rpm/thresholds":{"post":{"tags":["rpm-ccm"],"summary":"Set Threshold","operationId":"set_threshold_rpm_ccm_rpm_thresholds_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetThresholdRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Threshold Rpm Ccm Rpm Thresholds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpm-ccm/ccm/enroll":{"post":{"tags":["rpm-ccm"],"summary":"Enroll Ccm","description":"Enroll a patient in a CCM program.","operationId":"enroll_ccm_rpm_ccm_ccm_enroll_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollCCMRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enroll Ccm Rpm Ccm Ccm Enroll Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpm-ccm/ccm/time":{"post":{"tags":["rpm-ccm"],"summary":"Log Time","description":"Log care coordinator time for CCM billing.","operationId":"log_time_rpm_ccm_ccm_time_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogTimeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Log Time Rpm Ccm Ccm Time Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpm-ccm/ccm/enrollments":{"get":{"tags":["rpm-ccm"],"summary":"List Ccm Enrollments","operationId":"list_ccm_enrollments_rpm_ccm_ccm_enrollments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ccm Enrollments Rpm Ccm Ccm Enrollments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rpm-ccm/ccm/time-summary":{"get":{"tags":["rpm-ccm"],"summary":"Ccm Time Summary","description":"Return total time logged for a CCM enrollment in a billing month.","operationId":"ccm_time_summary_rpm_ccm_ccm_time_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"enrollment_id","in":"query","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"billing_month","in":"query","required":true,"schema":{"type":"string","title":"Billing Month"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ccm Time Summary Rpm Ccm Ccm Time Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phone-triage/calls":{"post":{"tags":["phone-triage"],"summary":"Open Call","description":"Open a new triage call.","operationId":"open_call_phone_triage_calls_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenCallRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open Call Phone Triage Calls Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phone-triage"],"summary":"List Calls","operationId":"list_calls_phone_triage_calls_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TriageCallStatus"},{"type":"null"}],"title":"Status Filter"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Calls Phone Triage Calls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phone-triage/calls/{call_id}/symptoms":{"post":{"tags":["phone-triage"],"summary":"Add Symptoms","operationId":"add_symptoms_phone_triage_calls__call_id__symptoms_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSymptomsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Symptoms Phone Triage Calls  Call Id  Symptoms Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phone-triage/calls/{call_id}/triage":{"post":{"tags":["phone-triage"],"summary":"Assign Acuity","description":"Assign an acuity level to a call.","operationId":"assign_acuity_phone_triage_calls__call_id__triage_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assign Acuity Phone Triage Calls  Call Id  Triage Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phone-triage/calls/{call_id}/close":{"post":{"tags":["phone-triage"],"summary":"Close Call","operationId":"close_call_phone_triage_calls__call_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Close Call Phone Triage Calls  Call Id  Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/phone-triage/calls/{call_id}":{"get":{"tags":["phone-triage"],"summary":"Get Call","operationId":"get_call_phone_triage_calls__call_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Call Phone Triage Calls  Call Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/specialty-templates/":{"get":{"tags":["specialty-templates"],"summary":"List Templates","operationId":"list_templates_specialty_templates__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"specialty","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Specialty"},{"type":"null"}],"title":"Specialty"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Templates Specialty Templates  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["specialty-templates"],"summary":"Create Template","description":"Create a new specialty template (starts in DRAFT status).","operationId":"create_template_specialty_templates__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Template Specialty Templates  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/specialty-templates/{template_id}":{"get":{"tags":["specialty-templates"],"summary":"Get Template","operationId":"get_template_specialty_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Template Specialty Templates  Template Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["specialty-templates"],"summary":"Deprecate Template","description":"Deprecate a template (soft delete).","operationId":"deprecate_template_specialty_templates__template_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/specialty-templates/{template_id}/approve":{"post":{"tags":["specialty-templates"],"summary":"Approve Template","description":"Promote a template from DRAFT to ACTIVE (QMS approval step).","operationId":"approve_template_specialty_templates__template_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Template Specialty Templates  Template Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/":{"post":{"tags":["referrals"],"summary":"Create Referral","description":"Create and send a referral order.","operationId":"create_referral_referrals__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReferralRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Referral Referrals  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["referrals"],"summary":"List Referrals","operationId":"list_referrals_referrals__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ReferralStatus"},{"type":"null"}],"title":"Status Filter"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Referrals Referrals  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/{referral_id}/accept":{"post":{"tags":["referrals"],"summary":"Accept Referral","operationId":"accept_referral_referrals__referral_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptReferralRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Referral Referrals  Referral Id  Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/{referral_id}/decline":{"post":{"tags":["referrals"],"summary":"Decline Referral","operationId":"decline_referral_referrals__referral_id__decline_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineReferralRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decline Referral Referrals  Referral Id  Decline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/{referral_id}/schedule":{"post":{"tags":["referrals"],"summary":"Schedule Appointment","description":"Record that an appointment has been scheduled for the referral.","operationId":"schedule_appointment_referrals__referral_id__schedule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleAppointmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Schedule Appointment Referrals  Referral Id  Schedule Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/{referral_id}/consultation":{"post":{"tags":["referrals"],"summary":"Receive Consultation","description":"Record the consultation note — closes the loop.","operationId":"receive_consultation_referrals__referral_id__consultation_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiveConsultationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Receive Consultation Referrals  Referral Id  Consultation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/{referral_id}/complete":{"post":{"tags":["referrals"],"summary":"Complete Referral","description":"Mark referral as completed by the referring clinician.","operationId":"complete_referral_referrals__referral_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Referral Referrals  Referral Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/{referral_id}":{"get":{"tags":["referrals"],"summary":"Get Referral","operationId":"get_referral_referrals__referral_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Referral Referrals  Referral Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/script/new-rx":{"post":{"tags":["rtpb-epcs"],"summary":"Send New Rx","description":"Send a NewRx message via Surescripts (NCPDP SCRIPT 2017071).","operationId":"send_new_rx_rtpb_epcs_script_new_rx_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__rtpb_epcs__NewRxRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send New Rx Rtpb Epcs Script New Rx Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/script/refill-request":{"post":{"tags":["rtpb-epcs"],"summary":"Send Refill Request","description":"Send an RxRenewalRequest (refill) message via Surescripts.","operationId":"send_refill_request_rtpb_epcs_script_refill_request_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefillRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Refill Request Rtpb Epcs Script Refill Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/script/refill-response/{message_id}":{"post":{"tags":["rtpb-epcs"],"summary":"Send Refill Response","description":"Send an RxRenewalResponse (approve/deny refill).","operationId":"send_refill_response_rtpb_epcs_script_refill_response__message_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"response_code","in":"query","required":true,"schema":{"$ref":"#/components/schemas/NCPDPResponseCode"}},{"name":"response_reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Reason"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Refill Response Rtpb Epcs Script Refill Response  Message Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/script/change-request":{"post":{"tags":["rtpb-epcs"],"summary":"Send Change Request","description":"Send an RxChangeRequest (modify existing Rx).","operationId":"send_change_request_rtpb_epcs_script_change_request_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__rtpb_epcs__ChangeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Change Request Rtpb Epcs Script Change Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/script/change-response/{message_id}":{"post":{"tags":["rtpb-epcs"],"summary":"Send Change Response","description":"Send an RxChangeResponse.","operationId":"send_change_response_rtpb_epcs_script_change_response__message_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"response_code","in":"query","required":true,"schema":{"$ref":"#/components/schemas/NCPDPResponseCode"}},{"name":"response_reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Reason"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Change Response Rtpb Epcs Script Change Response  Message Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/script/cancel":{"post":{"tags":["rtpb-epcs"],"summary":"Cancel Rx","description":"Send a CancelRx + receive stub CancelRxResponse.","operationId":"cancel_rx_rtpb_epcs_script_cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Rx Rtpb Epcs Script Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/script/rx-fill":{"post":{"tags":["rtpb-epcs"],"summary":"Record Rx Fill","description":"Record an RxFill notification (pharmacy filled the prescription).","operationId":"record_rx_fill_rtpb_epcs_script_rx_fill_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefillRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Rx Fill Rtpb Epcs Script Rx Fill Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/script/medication-history":{"post":{"tags":["rtpb-epcs"],"summary":"Medication History","description":"Request medication history via Surescripts (NCPDP SCRIPT MedHistory).","operationId":"medication_history_rtpb_epcs_script_medication_history_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedHistoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Medication History Rtpb Epcs Script Medication History Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/rtpb/query":{"post":{"tags":["rtpb-epcs"],"summary":"Rtpb Query","description":"Query the PBM for real-time prescription benefit (NCPDP RTPB 13).\n\nIn production, delegates to the NCPDP RTPB endpoint of the configured PBM.\nReturns a stub response when RTPB_PBM_ENDPOINT is not configured.","operationId":"rtpb_query_rtpb_epcs_rtpb_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RTPBQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rtpb Query Rtpb Epcs Rtpb Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/epcs/credentials":{"post":{"tags":["rtpb-epcs"],"summary":"Register Epcs Credential","description":"Register a clinician's DEA number + DEA-certified identity proofing for EPCS.\n\nIdentity proofing must use a DEA-approved IDP (21 CFR § 1311.115).","operationId":"register_epcs_credential_rtpb_epcs_epcs_credentials_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterEPCSRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Epcs Credential Rtpb Epcs Epcs Credentials Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/epcs/prescriptions":{"post":{"tags":["rtpb-epcs"],"summary":"Create Epcs Prescription","description":"Create a controlled substance prescription (unsigned).\n\nClinician must have an active EPCS credential (21 CFR § 1311.115).","operationId":"create_epcs_prescription_rtpb_epcs_epcs_prescriptions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEPCSPrescriptionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Epcs Prescription Rtpb Epcs Epcs Prescriptions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["rtpb-epcs"],"summary":"List Epcs Prescriptions","description":"List EPCS prescriptions, optionally filtered by patient or signed status.","operationId":"list_epcs_prescriptions_rtpb_epcs_epcs_prescriptions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"signed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Signed"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Epcs Prescriptions Rtpb Epcs Epcs Prescriptions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/epcs/prescriptions/{prescription_id}/sign":{"post":{"tags":["rtpb-epcs"],"summary":"Sign Epcs Prescription","description":"Apply two-factor signature to an EPCS prescription (DEA 21 CFR Part 1311).\n\nThe two_factor_response is validated but NEVER logged — only the method is recorded.\nAutomatically triggers PDMP check before transmitting to Surescripts.","operationId":"sign_epcs_prescription_rtpb_epcs_epcs_prescriptions__prescription_id__sign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prescription_id","in":"path","required":true,"schema":{"type":"string","title":"Prescription Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignEPCSRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sign Epcs Prescription Rtpb Epcs Epcs Prescriptions  Prescription Id  Sign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/epcs/audit-trail":{"get":{"tags":["rtpb-epcs"],"summary":"Get Epcs Audit Trail","description":"Return EPCS audit trail records (DEA 21 CFR § 1311.305 — archived ≥ 2 years).","operationId":"get_epcs_audit_trail_rtpb_epcs_epcs_audit_trail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prescription_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prescription Id"}},{"name":"uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Epcs Audit Trail Rtpb Epcs Epcs Audit Trail Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/pdmp/query":{"post":{"tags":["rtpb-epcs"],"summary":"Pdmp Query","description":"Query state PDMP for a patient's controlled substance history.\n\nUses NCPDP PMIX/ASAP 4.2 with state-specific adapters (FL, NY, TX, CA).\nReturns a stub response when PDMP_HUB_ENDPOINT is not configured.","operationId":"pdmp_query_rtpb_epcs_pdmp_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__rtpb_epcs__PDMPQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pdmp Query Rtpb Epcs Pdmp Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rtpb-epcs/pdmp/reports":{"get":{"tags":["rtpb-epcs"],"summary":"List Pdmp Reports","description":"List PDMP query reports for audit and clinical review.","operationId":"list_pdmp_reports_rtpb_epcs_pdmp_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Pdmp Reports Rtpb Epcs Pdmp Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eligibility/check":{"post":{"tags":["eligibility"],"summary":"Real-time eligibility inquiry (X12 270/271 or Da Vinci CRD)","description":"Submit a single eligibility inquiry.\n\nRoutes to:\n  - Da Vinci CRD FHIR endpoint when ``use_davinci_crd=true``\n  - CMS Patient Access API when ``use_cms_patient_access=true``\n  - Clearinghouse X12 270/271 gateway otherwise (default)\n\nPHI not logged per HIPAA / § 170.315(d)(2) audit policy.","operationId":"check_eligibility_eligibility_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityInquiryRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eligibility/{tracking_id}":{"get":{"tags":["eligibility"],"summary":"Retrieve a previously submitted eligibility response","operationId":"get_eligibility_response_eligibility__tracking_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tracking_id","in":"path","required":true,"schema":{"type":"string","title":"Tracking Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eligibility/patient/{patient_id}/coverage":{"get":{"tags":["eligibility"],"summary":"List all eligibility records for a patient","operationId":"get_patient_coverage_eligibility_patient__patient_id__coverage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EligibilityResponse"},"title":"Response Get Patient Coverage Eligibility Patient  Patient Id  Coverage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eligibility/batch":{"post":{"tags":["eligibility"],"summary":"Submit batch eligibility run (72h pre-arrival, day-of, or post-service)","description":"Enqueue a batch eligibility run for up to 500 patients.\n\nCadence semantics:\n  batch_72h   — run 72 hours before scheduled appointment (pre-arrival)\n  day_of      — run on the morning of service date\n  post_service — retroactive benefit reconciliation after encounter close","operationId":"submit_batch_eligibility_eligibility_batch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchEligibilityRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchEligibilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eligibility/batch/{batch_id}":{"get":{"tags":["eligibility"],"summary":"Poll batch eligibility job status","operationId":"get_batch_status_eligibility_batch__batch_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchEligibilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rcm/claims/submit":{"post":{"tags":["rcm"],"summary":"Submit Claim","description":"Submit an 837P/I/D claim to the clearinghouse.\n\nRuns the appropriate payment-model grouper (PDPM, PDGM, FQHC PPS, NHPCO)\nbefore transmission and records the clearinghouse tracking ID.","operationId":"submit_claim_rcm_claims_submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimSubmitRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Claim Rcm Claims Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rcm/claims/{claim_id}":{"get":{"tags":["rcm"],"summary":"Get Claim Status","description":"Retrieve current status and adjudication details for a claim.","operationId":"get_claim_status_rcm_claims__claim_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rcm/denials/worklist":{"get":{"tags":["rcm"],"summary":"Denial Worklist","description":"Return the AR denial worklist, optionally filtered by payer.","operationId":"denial_worklist_rcm_denials_worklist_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DenialWorklistItem"},"title":"Response Denial Worklist Rcm Denials Worklist Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rcm/denials/{claim_id}/appeal":{"post":{"tags":["rcm"],"summary":"Appeal Denial","description":"File an appeal for a denied claim with supporting documentation.","operationId":"appeal_denial_rcm_denials__claim_id__appeal_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DenialAppealRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Appeal Denial Rcm Denials  Claim Id  Appeal Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rcm/ar/aging":{"get":{"tags":["rcm"],"summary":"Ar Aging Dashboard","description":"Return AR aging buckets aggregated by payer (0-30, 31-60, 61-90, 91-120, 120+).","operationId":"ar_aging_dashboard_rcm_ar_aging_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ARAgingRow"},"title":"Response Ar Aging Dashboard Rcm Ar Aging Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rcm/claims/{claim_id}/void":{"post":{"tags":["rcm"],"summary":"Void Claim","description":"Void a submitted or denied claim (sends 837 void transaction).","operationId":"void_claim_rcm_claims__claim_id__void_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Void Claim Rcm Claims  Claim Id  Void Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coding/validate":{"post":{"tags":["coding-svc"],"summary":"Validate Codes","description":"Validate a batch of ICD-10-CM/PCS, CPT, or HCPCS codes.","operationId":"validate_codes_coding_validate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeValidationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CodeValidationResult"},"title":"Response Validate Codes Coding Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coding/ncci-check":{"post":{"tags":["coding-svc"],"summary":"Ncci Check","description":"Run NCCI column1/column2 and mutually-exclusive edit checks on a procedure set.","operationId":"ncci_check_coding_ncci_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NCCICheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NCCIEditResult"},"title":"Response Ncci Check Coding Ncci Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coding/mue-check":{"post":{"tags":["coding-svc"],"summary":"Mue Check","description":"Check billed units against CMS Medically Unlikely Edits.","operationId":"mue_check_coding_mue_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MUECheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MUECheckResult"},"title":"Response Mue Check Coding Mue Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coding/payer-edits":{"post":{"tags":["coding-svc"],"summary":"Payer Specific Edits","description":"Run payer-specific edit rules (LCD/NCD/proprietary edits) against a claim.","operationId":"payer_specific_edits_coding_payer_edits_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PayerEditResult"},"title":"Response Payer Specific Edits Coding Payer Edits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coding/cac/suggest":{"post":{"tags":["coding-svc"],"summary":"Cac Suggest","description":"Computer-assisted coding: extract suggested codes from clinical note text.","operationId":"cac_suggest_coding_cac_suggest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CACRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CACResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/charge-capture/charges":{"post":{"tags":["charge-capture"],"summary":"Capture Charge","description":"Capture a charge item against a patient encounter.","operationId":"capture_charge_charge_capture_charges_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeItemCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["charge-capture"],"summary":"List Charges For Encounter","description":"List all charge items for an encounter.","operationId":"list_charges_for_encounter_charge_capture_charges_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChargeItemResponse"},"title":"Response List Charges For Encounter Charge Capture Charges Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/charge-capture/charges/{charge_id}":{"get":{"tags":["charge-capture"],"summary":"Get Charge","description":"Retrieve a charge item by ID.","operationId":"get_charge_charge_capture_charges__charge_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"charge_id","in":"path","required":true,"schema":{"type":"string","title":"Charge Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/charge-capture/charges/{charge_id}/approve":{"post":{"tags":["charge-capture"],"summary":"Approve Charge","description":"Approve a pending charge for billing.","operationId":"approve_charge_charge_capture_charges__charge_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"charge_id","in":"path","required":true,"schema":{"type":"string","title":"Charge Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/charge-capture/cdm/{cdm_code}":{"get":{"tags":["charge-capture"],"summary":"Get Cdm Entry","description":"Look up a Charge Description Master entry.","operationId":"get_cdm_entry_charge_capture_cdm__cdm_code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cdm_code","in":"path","required":true,"schema":{"type":"string","title":"Cdm Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDMEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/charge-capture/good-faith-estimate":{"post":{"tags":["charge-capture"],"summary":"Good Faith Estimate","description":"Generate a No Surprises Act good-faith estimate for scheduled services.","operationId":"good_faith_estimate_charge_capture_good_faith_estimate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodFaithEstimateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodFaithEstimateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/statements":{"post":{"tags":["billing-svc"],"summary":"Create Statement","description":"Generate a patient statement from encounter charges.","operationId":"create_statement_billing_statements_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["billing-svc"],"summary":"List Patient Statements","operationId":"list_patient_statements_billing_statements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StatementResponse"},"title":"Response List Patient Statements Billing Statements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/statements/{statement_id}":{"get":{"tags":["billing-svc"],"summary":"Get Statement","operationId":"get_statement_billing_statements__statement_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","title":"Statement Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payment-plans":{"post":{"tags":["billing-svc"],"summary":"Create Payment Plan","description":"Enroll a patient in a payment plan for an outstanding balance.","operationId":"create_payment_plan_billing_payment_plans_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPlanCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payment-plans/{plan_id}/pay":{"post":{"tags":["billing-svc"],"summary":"Post Payment","description":"Post a payment to an active payment plan.","operationId":"post_payment_billing_payment_plans__plan_id__pay_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/contracts":{"post":{"tags":["billing-svc"],"summary":"Create Contract","description":"Create or import a payer-provider contract with fee schedule.","operationId":"create_contract_billing_contracts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerContractCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerContractResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/contracts/{contract_id}":{"get":{"tags":["billing-svc"],"summary":"Get Contract","operationId":"get_contract_billing_contracts__contract_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerContractResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/attachments":{"post":{"tags":["billing-svc"],"summary":"Submit Claim Attachment","description":"Submit a claims attachment (X12 275 or document) to support a claim.","operationId":"submit_claim_attachment_billing_attachments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimAttachmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimAttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/dashboard/metrics":{"get":{"tags":["billing-svc"],"summary":"Ar Dashboard Metrics","description":"Return high-level AR and billing performance metrics (stub data).","operationId":"ar_dashboard_metrics_billing_dashboard_metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ARDashboardMetrics"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/crd/hook":{"post":{"tags":["prior_auth"],"summary":"Crd Coverage Hook","description":"CRD CDS Hook — returns coverage cards at order/appointment time.\n\nCalled by the EHR at order-sign to surface real-time payer PA requirements.\nReturns SMART-on-FHIR DTR launch URLs when documentation is required.","operationId":"crd_coverage_hook_prior_auth_crd_hook_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CRDRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CRDResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/dtr/questionnaire":{"get":{"tags":["prior_auth"],"summary":"Get Dtr Questionnaire","description":"Return the payer-specific FHIR Questionnaire for PA documentation.\n\nIn production this calls the payer's DTR endpoint to fetch the\ncurrent Questionnaire resource.","operationId":"get_dtr_questionnaire_prior_auth_dtr_questionnaire_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payer_id","in":"query","required":true,"schema":{"type":"string","title":"Payer Id"}},{"name":"codes","in":"query","required":true,"schema":{"type":"string","title":"Codes"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dtr Questionnaire Prior Auth Dtr Questionnaire Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/dtr/questionnaire-response":{"post":{"tags":["prior_auth"],"summary":"Submit Dtr Response","description":"Store a completed DTR QuestionnaireResponse for attachment to a PAS request.","operationId":"submit_dtr_response_prior_auth_dtr_questionnaire_response_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DTRQuestionnaireResponse"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Submit Dtr Response Prior Auth Dtr Questionnaire Response Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/pas/request":{"post":{"tags":["prior_auth"],"summary":"Submit Pa Request","description":"Submit a prior authorization request via the Da Vinci PAS FHIR facade.\n\nTranslates to X12 278 Request and submits to the payer gateway.\nReturns a real-time decision where the payer supports it (HTI-4 mandate).","operationId":"submit_pa_request_prior_auth_pas_request_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PASRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Pa Request Prior Auth Pas Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/pas/{pa_id}":{"get":{"tags":["prior_auth"],"summary":"Get Pa Status","description":"Poll the current status of a prior authorization request.","operationId":"get_pa_status_prior_auth_pas__pa_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pa_id","in":"path","required":true,"schema":{"type":"string","title":"Pa Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PAStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/pas/{pa_id}/cancel":{"post":{"tags":["prior_auth"],"summary":"Cancel Pa Request","description":"Cancel a pending prior authorization request.","operationId":"cancel_pa_request_prior_auth_pas__pa_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pa_id","in":"path","required":true,"schema":{"type":"string","title":"Pa Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Cancel Pa Request Prior Auth Pas  Pa Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/dtr/prefill":{"post":{"tags":["prior_auth"],"summary":"Dtr Chart Prefill","description":"Pre-fill a DTR questionnaire from structured chart data.\n\nReads Condition, Observation, and DocumentReference FHIR resources for the\npatient and maps them to the questionnaire linkIds defined by the payer.\nClinician must review and attest before submission.","operationId":"dtr_chart_prefill_prior_auth_dtr_prefill_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartPrefillRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartPrefillResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/fax/ingest":{"post":{"tags":["prior_auth"],"summary":"Ingest Fax","description":"Ingest a fax response from a fax-based payer and convert to FHIR.\n\n1. Stores the raw text as a FHIR DocumentReference (type: fax-response).\n2. Extracts the PA decision and PA number via regex heuristics.\n3. If the fax is matched to an active PA request, updates its status.\n\nFor payers that do not support HL7 Da Vinci PAS this is the primary\nmechanism for receiving authorization decisions.","operationId":"ingest_fax_prior_auth_fax_ingest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxIngestionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxIngestionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/med-necessity/letter":{"post":{"tags":["prior_auth"],"summary":"Draft Med Necessity Letter","description":"Draft a medical necessity letter from chart-derived data.\n\nGenerates a structured letter suitable for fax or secure-message transmission\nto the payer's PA department.  The letter is stored and can be retrieved or\nattached to a PAS request.","operationId":"draft_med_necessity_letter_prior_auth_med_necessity_letter_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedNecessityRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedNecessityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prior-auth/med-necessity/letter/{letter_id}":{"get":{"tags":["prior_auth"],"summary":"Get Med Necessity Letter","description":"Retrieve a previously drafted medical necessity letter.","operationId":"get_med_necessity_letter_prior_auth_med_necessity_letter__letter_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"letter_id","in":"path","required":true,"schema":{"type":"string","title":"Letter Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MedNecessityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/cdm":{"get":{"tags":["cdm_supply_chain"],"summary":"List CDM items","operationId":"list_cdm_cdm_supply_chain_cdm_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"shoppable_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Shoppable Only"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ChargeStatus-Input"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CDMItem"},"title":"Response List Cdm Cdm Supply Chain Cdm Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cdm_supply_chain"],"summary":"Create CDM item","operationId":"create_cdm_item_cdm_supply_chain_cdm_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDMItemCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDMItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/cdm/{charge_code}":{"get":{"tags":["cdm_supply_chain"],"summary":"Get Cdm Item","operationId":"get_cdm_item_cdm_supply_chain_cdm__charge_code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"charge_code","in":"path","required":true,"schema":{"type":"string","title":"Charge Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDMItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["cdm_supply_chain"],"summary":"Update Cdm Item","operationId":"update_cdm_item_cdm_supply_chain_cdm__charge_code__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"charge_code","in":"path","required":true,"schema":{"type":"string","title":"Charge Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDMItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDMItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/cdm/{charge_code}/rates":{"put":{"tags":["cdm_supply_chain"],"summary":"Upsert payer-specific negotiated rate","operationId":"upsert_negotiated_rate_cdm_supply_chain_cdm__charge_code__rates_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"charge_code","in":"path","required":true,"schema":{"type":"string","title":"Charge Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NegotiatedRateUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDMItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/mrf":{"get":{"tags":["cdm_supply_chain"],"summary":"CMS 45 CFR § 180.50 machine-readable file","operationId":"get_machine_readable_file_cdm_supply_chain_mrf_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MachineReadableFile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/shoppable-services":{"get":{"tags":["cdm_supply_chain"],"summary":"CMS § 180.60 shoppable services list (top 300)","operationId":"list_shoppable_services_cdm_supply_chain_shoppable_services_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShoppableService"},"title":"Response List Shoppable Services Cdm Supply Chain Shoppable Services Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/estimate":{"post":{"tags":["cdm_supply_chain"],"summary":"Patient cost estimator","operationId":"estimate_patient_cost_cdm_supply_chain_estimate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/items":{"get":{"tags":["cdm_supply_chain"],"summary":"List item master","operationId":"list_items_cdm_supply_chain_items_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"below_par","in":"query","required":false,"schema":{"type":"boolean","description":"Show only items at or below par level","default":false,"title":"Below Par"},"description":"Show only items at or below par level"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ItemMaster"},"title":"Response List Items Cdm Supply Chain Items Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cdm_supply_chain"],"summary":"Create Item","operationId":"create_item_cdm_supply_chain_items_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemMasterCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemMaster"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/items/{item_id}":{"get":{"tags":["cdm_supply_chain"],"summary":"Get Item","operationId":"get_item_cdm_supply_chain_items__item_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemMaster"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/items/{item_id}/transactions":{"post":{"tags":["cdm_supply_chain"],"summary":"Record Transaction","operationId":"record_transaction_cdm_supply_chain_items__item_id__transactions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryTransactionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryTransaction"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cdm_supply_chain"],"summary":"List Item Transactions","operationId":"list_item_transactions_cdm_supply_chain_items__item_id__transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InventoryTransaction"},"title":"Response List Item Transactions Cdm Supply Chain Items  Item Id  Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/gudid/{udi}":{"get":{"tags":["cdm_supply_chain"],"summary":"FDA GUDID device lookup by UDI","operationId":"gudid_lookup_cdm_supply_chain_gudid__udi__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"udi","in":"path","required":true,"schema":{"type":"string","title":"Udi"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GUDIDDevice"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/recalls":{"post":{"tags":["cdm_supply_chain"],"summary":"Ingest recall alert (from FDA feed)","operationId":"ingest_recall_cdm_supply_chain_recalls_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallAlert"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallAlert"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/recalls/surveillance":{"get":{"tags":["cdm_supply_chain"],"summary":"Check open recalls against current patient population / dispensed devices","description":"Cross-reference open FDA recalls with dispensed UDIs/GTINs in transaction log.","operationId":"recall_surveillance_cdm_supply_chain_recalls_surveillance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallSurveillanceResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cdm-supply-chain/erp/messages":{"post":{"tags":["cdm_supply_chain"],"summary":"Receive ERP / materials management message","operationId":"receive_erp_message_cdm_supply_chain_erp_messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ERPMessageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ERPMessage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cdm_supply_chain"],"summary":"List ERP messages","operationId":"list_erp_messages_cdm_supply_chain_erp_messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ERPMessageType"},{"type":"null"}],"title":"Message Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ERPMessage"},"title":"Response List Erp Messages Cdm Supply Chain Erp Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/verification-queue":{"post":{"tags":["pharmacy_ops"],"summary":"Submit a medication order to the pharmacist verification queue","description":"Add a pending medication order to the pharmacist review queue.\nAccessible by nurses, clinicians, and pharmacists.","operationId":"submit_for_verification_pharmacy_ops_verification_queue_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__pharmacy_ops__VerificationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pharmacy_ops"],"summary":"List pending verification items","operationId":"list_verification_queue_pharmacy_ops_verification_queue_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VerificationRecord"},"title":"Response List Verification Queue Pharmacy Ops Verification Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/verification-queue/{verification_id}/decision":{"post":{"tags":["pharmacy_ops"],"summary":"Pharmacist verify, reject, or hold a queued order","description":"Only pharmacists (mapped to CLINICIAN role) or admins may make final\nverification decisions.","operationId":"decide_verification_pharmacy_ops_verification_queue__verification_id__decision_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"verification_id","in":"path","required":true,"schema":{"type":"string","title":"Verification Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/emar/scan":{"post":{"tags":["pharmacy_ops"],"summary":"Five-Rights barcode scan at bedside","description":"Validate barcode scan against active medication orders.\n\nIn production this performs a FHIR MedicationRequest search for the\nscanned medication against the patient's active orders.  The stub here\naccepts any matching barcodes and returns a pass result so the call\nchain is testable end-to-end.","operationId":"emar_scan_pharmacy_ops_emar_scan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmarScanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmarScanResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/cs-count":{"post":{"tags":["pharmacy_ops"],"summary":"Submit a controlled-substance shift count","description":"Witness-countersigned submission of a shift count.  Automatically\ncalculates discrepancy and flags records that require resolution.\n\nDEA 21 CFR § 1304 requires every Schedule II–V discrepancy to be\ninvestigated and documented within one business day.","operationId":"submit_cs_count_pharmacy_ops_cs_count_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CSCountSubmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CSCountRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/cs-count/{count_id}/resolve":{"post":{"tags":["pharmacy_ops"],"summary":"Resolve a controlled-substance count discrepancy","description":"Requires two signatures (submitter + second witness).  Sets status to\nresolved.","operationId":"resolve_cs_discrepancy_pharmacy_ops_cs_count__count_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"count_id","in":"path","required":true,"schema":{"type":"string","title":"Count Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CSDiscrepancyResolution"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CSCountRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/compounding":{"post":{"tags":["pharmacy_ops"],"summary":"Open a compounding batch record (USP 797/800)","description":"Initiates a compounding batch record.  USP 800 hazardous compounds require\nenvironment_monitoring_ok to be attested before release.","operationId":"create_compound_record_pharmacy_ops_compounding_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompoundRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompoundRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/compounding/{compound_id}/release":{"post":{"tags":["pharmacy_ops"],"summary":"Pharmacist release, quarantine, or discard a compound batch","operationId":"release_compound_pharmacy_ops_compounding__compound_id__release_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"compound_id","in":"path","required":true,"schema":{"type":"string","title":"Compound Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompoundReleaseDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompoundRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/adc/event":{"post":{"tags":["pharmacy_ops"],"summary":"Ingest an ADC dispense / return / waste event","description":"Receives lifecycle events from Pyxis / Omnicell cabinets.  In production\nthis stub would be called by the ADC integration engine (HL7 v2 RAS/RDE\nor the ADC vendor REST webhook), validated against the active\nMedicationRequest for the patient, and persisted as a MedicationDispense\nFHIR resource.","operationId":"ingest_adc_event_pharmacy_ops_adc_event_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdcEvent"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Adc Event Pharmacy Ops Adc Event Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/adc/events":{"get":{"tags":["pharmacy_ops"],"summary":"List recent ADC events","operationId":"list_adc_events_pharmacy_ops_adc_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Adc Events Pharmacy Ops Adc Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/iv-compounder/event":{"post":{"tags":["pharmacy_ops"],"summary":"Ingest an IV-compounder robot event","description":"Receives events from IV-compounding robots (Baxter IVX, BD Alaris, etc.).\nGravimetric failures are flagged and require pharmacist acknowledgement\nbefore the batch is released.  In production this writes a FHIR\nMedicationDispense resource with status=preparation and links to the\ncompounding batch record.","operationId":"ingest_iv_event_pharmacy_ops_iv_compounder_event_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IvCompounderEvent"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Iv Event Pharmacy Ops Iv Compounder Event Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pharmacy-ops/iv-compounder/events":{"get":{"tags":["pharmacy_ops"],"summary":"List recent IV-compounder events","operationId":"list_iv_events_pharmacy_ops_iv_compounder_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Iv Events Pharmacy Ops Iv Compounder Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/specimens":{"post":{"tags":["lab_ops"],"summary":"Record specimen collection event","description":"Log a new specimen collection.  Creates a chain-of-custody record\ninitialised with the collector's identity and timestamp.\n\nONC § 170.315(d)(2): audit event emitted on every collection.\nCLIA § 493.1241: specimen identity / integrity requirements.","operationId":"collect_specimen_lab_ops_specimens_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecimenCollectionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecimenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/specimens/{specimen_id}/transfer":{"post":{"tags":["lab_ops"],"summary":"Record chain-of-custody transfer","description":"Add a chain-of-custody transfer event to an existing specimen.\nTransitions status to in_transit.\n\nCAP LAP.GEN checklist: specimen tracking / chain-of-custody.","operationId":"transfer_specimen_lab_ops_specimens__specimen_id__transfer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"specimen_id","in":"path","required":true,"schema":{"type":"string","title":"Specimen Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustodyTransferRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Transfer Specimen Lab Ops Specimens  Specimen Id  Transfer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/specimens/{specimen_id}/accession":{"post":{"tags":["lab_ops"],"summary":"Accession specimen into the LIS","description":"Record receipt and accessioning of a specimen into the LIS.  If the\nspecimen is unacceptable (haemolysed, wrong tube, quantity not sufficient)\nmark it rejected and record reason.\n\nCLIA § 493.1242: specimen rejection criteria must be documented.","operationId":"accession_specimen_lab_ops_specimens__specimen_id__accession_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"specimen_id","in":"path","required":true,"schema":{"type":"string","title":"Specimen Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accession Specimen Lab Ops Specimens  Specimen Id  Accession Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/specimens/{specimen_id}/chain-of-custody":{"get":{"tags":["lab_ops"],"summary":"Get chain-of-custody log","description":"Return the full chain-of-custody event log for a specimen.","operationId":"get_chain_of_custody_lab_ops_specimens__specimen_id__chain_of_custody_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"specimen_id","in":"path","required":true,"schema":{"type":"string","title":"Specimen Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Chain Of Custody Lab Ops Specimens  Specimen Id  Chain Of Custody Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/reference-lab/orders":{"post":{"tags":["lab_ops"],"summary":"Submit order to reference laboratory","description":"Submit a send-out order to a reference laboratory (Quest, LabCorp, ARUP,\nMayo, or BioReference).  Returns a normalised order record with the\nvendor-assigned external order ID stub.\n\nIn production each vendor's adapter translates to its proprietary API\n(Quest Care360, LabCorp Link, ARUP Connect, Mayo Test Catalog, etc.).","operationId":"submit_reference_lab_order_lab_ops_reference_lab_orders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceLabOrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceLabOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/reference-lab/orders/{order_id}":{"get":{"tags":["lab_ops"],"summary":"Get reference lab order status","description":"Return the reference lab order record including any received results.","operationId":"get_reference_lab_order_lab_ops_reference_lab_orders__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Reference Lab Order Lab Ops Reference Lab Orders  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/critical-alerts":{"post":{"tags":["lab_ops"],"summary":"Fire critical-value alert","description":"Fire a critical-value alert and initiate the closed-loop acknowledgement\nworkflow.  In production this triggers a push notification / pager message\nto the responsible clinician.\n\nThe Joint Commission NPSG.02.03.01: critical test results must be\nreported to the responsible caregiver within a defined time frame.\nCLIA § 493.1291(g): critical result notification requirements.","operationId":"create_critical_alert_lab_ops_critical_alerts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriticalAlertRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriticalAlertResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/critical-alerts/{alert_id}/acknowledge":{"post":{"tags":["lab_ops"],"summary":"Acknowledge critical-value alert (closed-loop)","description":"Record closed-loop acknowledgement: the clinician reads back the value,\nwhich is stored alongside the acknowledging user ID and timestamp.\n\nThe Joint Commission NPSG.02.03.01: read-back verification required.","operationId":"acknowledge_critical_alert_lab_ops_critical_alerts__alert_id__acknowledge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgeAlertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriticalAlertResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/critical-alerts/{alert_id}/escalate":{"post":{"tags":["lab_ops"],"summary":"Escalate unacknowledged critical alert","description":"Escalate an alert that has exceeded the ack timeout window.","operationId":"escalate_critical_alert_lab_ops_critical_alerts__alert_id__escalate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriticalAlertResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/autoverify/rules":{"post":{"tags":["lab_ops"],"summary":"Create autoverify rule","description":"Create an autoverify rule for a specific LOINC code.  Rules specify delta-\ncheck thresholds and QC requirements; results meeting all criteria are\nautomatically released without manual pathologist review.\n\nCAP LAP.GEN checklist: autoverification policy required.\nCLIA § 493.1291: result verification requirements.","operationId":"create_autoverify_rule_lab_ops_autoverify_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoverifyRuleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Autoverify Rule Lab Ops Autoverify Rules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/reflex/rules":{"post":{"tags":["lab_ops"],"summary":"Create reflex testing rule","description":"Create a reflex testing rule.  When the trigger LOINC code produces a\nresult matching the condition, the listed reflex tests are automatically\nordered.\n\nExample: UA with culture reflex — if UA indicates infection markers\n(nitrite positive, LE ≥ 2+), automatically order urine culture.","operationId":"create_reflex_rule_lab_ops_reflex_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReflexRuleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Reflex Rule Lab Ops Reflex Rules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/autoverify/evaluate":{"post":{"tags":["lab_ops"],"summary":"Evaluate result against autoverify rules","description":"Evaluate a result against configured autoverify rules for its LOINC code.\nReturns the outcome (auto_released / held_for_review / delta_check_failed /\nqc_failed) and the matching rule ID if applicable.","operationId":"evaluate_autoverify_lab_ops_autoverify_evaluate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoverifyResultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Evaluate Autoverify Lab Ops Autoverify Evaluate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/compliance/qc":{"post":{"tags":["lab_ops"],"summary":"Record QC lot run","description":"Record an in-run QC lot measurement.  Used as CLIA / CAP compliance\nevidence of daily quality control.\n\nCLIA § 493.1256: QC must be performed for each analyte, each day of\ntesting, using at least two levels of controls.\nCAP LAP.GEN checklist: QC records must be retained ≥ 2 years.","operationId":"record_qc_lab_ops_compliance_qc_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QCLotRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Qc Lab Ops Compliance Qc Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/compliance/proficiency-testing":{"post":{"tags":["lab_ops"],"summary":"Record proficiency testing event","description":"Record a proficiency testing (PT) event outcome.  CAP and CMS require\nlabs to participate in PT programmes and achieve acceptable performance.\n\nCLIA § 493.801: enrollment in PT required.\nCLIA § 493.855/901/945: discipline-specific PT requirements.","operationId":"record_pt_event_lab_ops_compliance_proficiency_testing_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PTEventRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Pt Event Lab Ops Compliance Proficiency Testing Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/compliance/calibration":{"post":{"tags":["lab_ops"],"summary":"Record instrument calibration","description":"Record an instrument calibration event.\n\nCLIA § 493.1255: calibration must be performed per manufacturer\nspecifications, with results documented.","operationId":"record_calibration_lab_ops_compliance_calibration_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalibrationRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Calibration Lab Ops Compliance Calibration Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lab-ops/compliance/summary":{"get":{"tags":["lab_ops"],"summary":"CLIA/CAP compliance summary","description":"Aggregate compliance evidence for inspector review.  Returns counts and\nrecent records for QC lots, PT events, and calibrations.\n\nFiltered by analyte LOINC code when provided.","operationId":"compliance_summary_lab_ops_compliance_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"analyte_loinc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by LOINC code","title":"Analyte Loinc"},"description":"Filter by LOINC code"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Compliance Summary Lab Ops Compliance Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/dicomweb/studies":{"post":{"tags":["imaging_ops"],"summary":"Stow Rs Store Study","description":"STOW-RS: Store a DICOM study (PS3.18 §6.6.1).","operationId":"stow_rs_store_study_imaging_ops_dicomweb_studies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StowRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["imaging_ops"],"summary":"Qido Rs Query Studies","description":"QIDO-RS: Query study metadata (PS3.18 §6.7.1).","operationId":"qido_rs_query_studies_imaging_ops_dicomweb_studies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"accession_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accession Number"}},{"name":"modality","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Modality"},{"type":"null"}],"title":"Modality"}},{"name":"study_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYYMMDD or YYYYMMDD-YYYYMMDD range","title":"Study Date"},"description":"YYYYMMDD or YYYYMMDD-YYYYMMDD range"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QidoStudyResult"},"title":"Response Qido Rs Query Studies Imaging Ops Dicomweb Studies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/dicomweb/studies/{study_uid}":{"get":{"tags":["imaging_ops"],"summary":"Qido Rs Get Study","description":"QIDO-RS: Retrieve a specific study's metadata.","operationId":"qido_rs_get_study_imaging_ops_dicomweb_studies__study_uid__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"study_uid","in":"path","required":true,"schema":{"type":"string","title":"Study Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QidoStudyResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/dicomweb/studies/{study_uid}/series":{"get":{"tags":["imaging_ops"],"summary":"Qido Rs Query Series","description":"QIDO-RS: Query series for a study.","operationId":"qido_rs_query_series_imaging_ops_dicomweb_studies__study_uid__series_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"study_uid","in":"path","required":true,"schema":{"type":"string","title":"Study Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Qido Rs Query Series Imaging Ops Dicomweb Studies  Study Uid  Series Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/dicomweb/studies/{study_uid}/rendered":{"get":{"tags":["imaging_ops"],"summary":"Wado Rs Rendered Study","description":"WADO-RS: Retrieve rendered study metadata / redirect (PS3.18 §6.5.8).\n\nIn production this would return multipart/related DICOM or rendered images.\nThis stub returns a JSON manifest with WADO-RS URLs for each series.","operationId":"wado_rs_rendered_study_imaging_ops_dicomweb_studies__study_uid__rendered_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"study_uid","in":"path","required":true,"schema":{"type":"string","title":"Study Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Wado Rs Rendered Study Imaging Ops Dicomweb Studies  Study Uid  Rendered Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/mwl":{"post":{"tags":["imaging_ops"],"summary":"Create Mwl Item","description":"Create a Modality Worklist (MWL) scheduled procedure step.","operationId":"create_mwl_item_imaging_ops_mwl_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MWLItem"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MWLResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["imaging_ops"],"summary":"Query Mwl","description":"Query Modality Worklist — C-FIND MWL over HTTP.","operationId":"query_mwl_imaging_ops_mwl_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ae_title","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Scheduled Station AE Title","title":"Ae Title"},"description":"Scheduled Station AE Title"},{"name":"modality","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Modality"},{"type":"null"}],"title":"Modality"}},{"name":"scheduled_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYYMMDD","title":"Scheduled Date"},"description":"YYYYMMDD"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MWLResponse"},"title":"Response Query Mwl Imaging Ops Mwl Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/mwl/{item_id}":{"delete":{"tags":["imaging_ops"],"summary":"Delete Mwl Item","description":"Remove a completed or cancelled MWL item.","operationId":"delete_mwl_item_imaging_ops_mwl__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/pacs/routes":{"post":{"tags":["imaging_ops"],"summary":"Create Pacs Route","description":"Register a PACS / VNA adapter route.","operationId":"create_pacs_route_imaging_ops_pacs_routes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PACSRouteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PACSRouteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["imaging_ops"],"summary":"List Pacs Routes","description":"List configured PACS / VNA adapter routes.","operationId":"list_pacs_routes_imaging_ops_pacs_routes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PACSRouteResponse"},"title":"Response List Pacs Routes Imaging Ops Pacs Routes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/pacs/transfer":{"post":{"tags":["imaging_ops"],"summary":"Pacs Transfer Study","description":"Initiate a study transfer to a registered PACS / VNA adapter.","operationId":"pacs_transfer_study_imaging_ops_pacs_transfer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PACSTransferRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PACSTransferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/auc/evaluate":{"post":{"tags":["imaging_ops"],"summary":"Evaluate Auc","description":"PAMA § 218: Evaluate imaging order against AUC guidelines (ACR Select / CDS Connect).","operationId":"evaluate_auc_imaging_ops_auc_evaluate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AUCRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AUCResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/auc/{order_id}":{"get":{"tags":["imaging_ops"],"summary":"Get Auc Result","description":"Retrieve a stored AUC evaluation result.","operationId":"get_auc_result_imaging_ops_auc__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AUCResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/viewer/{study_uid}/manifest":{"get":{"tags":["imaging_ops"],"summary":"Get Viewer Manifest","description":"Return a viewer manifest for the zero-footprint DICOM viewer (OHIF / Cornerstone.js).","operationId":"get_viewer_manifest_imaging_ops_viewer__study_uid__manifest_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"study_uid","in":"path","required":true,"schema":{"type":"string","title":"Study Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewerManifest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/structured-reports":{"post":{"tags":["imaging_ops"],"summary":"Create Structured Report","description":"Create a structured radiology report (RadLex / BI-RADS / LI-RADS / PI-RADS).","operationId":"create_structured_report_imaging_ops_structured_reports_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredReportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["imaging_ops"],"summary":"List Structured Reports","description":"List structured reports with optional filters.","operationId":"list_structured_reports_imaging_ops_structured_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"study_instance_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Study Instance Uid"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"template","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SRTemplate"},{"type":"null"}],"title":"Template"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StructuredReportResponse"},"title":"Response List Structured Reports Imaging Ops Structured Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/structured-reports/{report_id}":{"get":{"tags":["imaging_ops"],"summary":"Get Structured Report","description":"Retrieve a structured report by ID.","operationId":"get_structured_report_imaging_ops_structured_reports__report_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/devices":{"post":{"tags":["imaging_ops"],"summary":"Register Device","description":"Register an imaging device (modality) by AE Title.","operationId":"register_device_imaging_ops_devices_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRegistration"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["imaging_ops"],"summary":"List Devices","description":"List registered imaging devices.","operationId":"list_devices_imaging_ops_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceResponse"},"title":"Response List Devices Imaging Ops Devices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/devices/{ae_title}/heartbeat":{"post":{"tags":["imaging_ops"],"summary":"Device Heartbeat","description":"Record a device heartbeat / keepalive ping.","operationId":"device_heartbeat_imaging_ops_devices__ae_title__heartbeat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ae_title","in":"path","required":true,"schema":{"type":"string","title":"Ae Title"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imaging-ops/devices/mpps":{"post":{"tags":["imaging_ops"],"summary":"Mpps Update","description":"DICOM MPPS: Modality Performed Procedure Step status update.","operationId":"mpps_update_imaging_ops_devices_mpps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MPPSUpdate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MPPSResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lis-ris/lis/orders":{"post":{"tags":["lis_ris"],"summary":"Create Lis Order","description":"Create a lab order transmitted to the LIS via HL7 v2 OML^O21.\n\nThe order is translated to HL7 v2.5.1 OML^O21, placed on the outbound\ninterface engine queue, and confirmed with an OML^O21 ACK.","operationId":"create_lis_order_lis_ris_lis_orders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LISOrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Lis Order Lis Ris Lis Orders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lis-ris/lis/results/ingest":{"post":{"tags":["lis_ris"],"summary":"Ingest Lis Result","description":"Ingest an HL7 v2 ORU^R01 result from the LIS (translated to JSON by interface engine).\n\nCreates FHIR DiagnosticReport + Observation resources and triggers critical\nvalue notification if any observation has HH/LL criticality.","operationId":"ingest_lis_result_lis_ris_lis_results_ingest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LISResultIngest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Lis Result Lis Ris Lis Results Ingest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lis-ris/lis/results/{order_id}":{"get":{"tags":["lis_ris"],"summary":"Get Lis Result","description":"Retrieve lab results for a LIS order.","operationId":"get_lis_result_lis_ris_lis_results__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Lis Result Lis Ris Lis Results  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lis-ris/ris/studies":{"post":{"tags":["lis_ris"],"summary":"Register Dicom Study","description":"Register a DICOM study received via STOW-RS from the PACS.\n\nStores study metadata and makes it retrievable via WADO-RS URLs.","operationId":"register_dicom_study_lis_ris_ris_studies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DICOMStudy"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Register Dicom Study Lis Ris Ris Studies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lis-ris/ris/studies/{study_uid}":{"get":{"tags":["lis_ris"],"summary":"Get Dicom Study","description":"Retrieve DICOM study metadata and WADO-RS access URL.","operationId":"get_dicom_study_lis_ris_ris_studies__study_uid__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"study_uid","in":"path","required":true,"schema":{"type":"string","title":"Study Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dicom Study Lis Ris Ris Studies  Study Uid  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lis-ris/ris/reports":{"post":{"tags":["lis_ris"],"summary":"Create Radiology Report","description":"Create or update a structured radiology report for a DICOM study.\n\nStores findings, impression, and RadLex codes. Triggers critical finding\nnotification workflow if critical_finding=True.","operationId":"create_radiology_report_lis_ris_ris_reports_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RadiologyReportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Radiology Report Lis Ris Ris Reports Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lis-ris/devices/observation":{"post":{"tags":["lis_ris"],"summary":"Ingest Device Observation","description":"Ingest a single observation from a connected medical device (ICU, glucometer, etc.).","operationId":"ingest_device_observation_lis_ris_devices_observation_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceObservation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Ingest Device Observation Lis Ris Devices Observation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lis-ris/devices/observations":{"get":{"tags":["lis_ris"],"summary":"List Device Observations","description":"List recent device observations for a patient.","operationId":"list_device_observations_lis_ris_devices_observations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":50,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Device Observations Lis Ris Devices Observations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops/beds":{"get":{"tags":["hospital_ops"],"summary":"List Beds","description":"List all beds with current status, optionally filtered by unit or status.","operationId":"list_beds_hospital_ops_beds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"}},{"name":"bed_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BedStatus"},{"type":"null"}],"title":"Bed Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Beds Hospital Ops Beds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops/beds/{bed_id}/status":{"patch":{"tags":["hospital_ops"],"summary":"Update Bed Status","description":"Update bed status (e.g., mark as housekeeping after discharge).","operationId":"update_bed_status_hospital_ops_beds__bed_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bed_id","in":"path","required":true,"schema":{"type":"string","title":"Bed Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BedUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Bed Status Hospital Ops Beds  Bed Id  Status Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops/beds/assign":{"post":{"tags":["hospital_ops"],"summary":"Assign Bed","description":"Assign a patient to a bed (triggers HL7 ADT A01/A02 event).","operationId":"assign_bed_hospital_ops_beds_assign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BedAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assign Bed Hospital Ops Beds Assign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops/census":{"get":{"tags":["hospital_ops"],"summary":"Get Census","description":"Return real-time census snapshot per unit.","operationId":"get_census_hospital_ops_census_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CensusSnapshot"},"title":"Response Get Census Hospital Ops Census Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops/transport/orders":{"post":{"tags":["hospital_ops"],"summary":"Create Transport Order","description":"Create an internal patient transport order.","operationId":"create_transport_order_hospital_ops_transport_orders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportOrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Transport Order Hospital Ops Transport Orders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops/transport/orders/{order_id}/status":{"patch":{"tags":["hospital_ops"],"summary":"Update Transport Status","description":"Update transport order status (assign, start, complete).","operationId":"update_transport_status_hospital_ops_transport_orders__order_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"new_status","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TransportStatus"}},{"name":"transporter_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transporter Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Transport Status Hospital Ops Transport Orders  Order Id  Status Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops/workforce/shifts":{"post":{"tags":["hospital_ops"],"summary":"Create Staff Shift","description":"Schedule a staff shift for a unit.","operationId":"create_staff_shift_hospital_ops_workforce_shifts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffShiftRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Staff Shift Hospital Ops Workforce Shifts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hospital_ops"],"summary":"List Shifts","description":"List scheduled shifts, optionally filtered by unit and date.","operationId":"list_shifts_hospital_ops_workforce_shifts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"}},{"name":"shift_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shift Date"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Shifts Hospital Ops Workforce Shifts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops/workforce/staffing-ratios":{"get":{"tags":["hospital_ops"],"summary":"Staffing Ratios","description":"Return nurse-to-patient ratios per unit for the current shift.","operationId":"staffing_ratios_hospital_ops_workforce_staffing_ratios_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Staffing Ratios Hospital Ops Workforce Staffing Ratios Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/command-centre/snapshot":{"get":{"tags":["hospital_ops_d8"],"summary":"Command Centre Snapshot","description":"Real-time facility operations snapshot for the command centre dashboard.","operationId":"command_centre_snapshot_hospital_ops_d8_command_centre_snapshot_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandCentreSnapshot"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/command-centre/alerts":{"post":{"tags":["hospital_ops_d8"],"summary":"Create Alert","description":"Create a facility-level operational alert.","operationId":"create_alert_hospital_ops_d8_command_centre_alerts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandCentreAlert"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandCentreAlert"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/command-centre/alerts/{alert_id}":{"delete":{"tags":["hospital_ops_d8"],"summary":"Dismiss Alert","description":"Dismiss (deactivate) a command-centre alert.","operationId":"dismiss_alert_hospital_ops_d8_command_centre_alerts__alert_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/evs/tasks":{"post":{"tags":["hospital_ops_d8"],"summary":"Create Evs Task","description":"Create an EVS / housekeeping task for a bed (triggered on discharge).","operationId":"create_evs_task_hospital_ops_d8_evs_tasks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EVSTaskCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EVSTaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hospital_ops_d8"],"summary":"List Evs Tasks","description":"List EVS tasks, optionally filtered by unit or status.","operationId":"list_evs_tasks_hospital_ops_d8_evs_tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"}},{"name":"task_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EVSTaskStatus"},{"type":"null"}],"title":"Task Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EVSTaskResponse"},"title":"Response List Evs Tasks Hospital Ops D8 Evs Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/evs/tasks/{task_id}":{"patch":{"tags":["hospital_ops_d8"],"summary":"Update Evs Task","description":"Update EVS task status (assign, start, complete, verify).","operationId":"update_evs_task_hospital_ops_d8_evs_tasks__task_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EVSTaskUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EVSTaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/workforce/employees":{"post":{"tags":["hospital_ops_d8"],"summary":"Create Employee","description":"Add an employee to the workforce roster.","operationId":"create_employee_hospital_ops_d8_workforce_employees_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hospital_ops_d8"],"summary":"List Employees","description":"List workforce employees, optionally filtered by unit or role.","operationId":"list_employees_hospital_ops_d8_workforce_employees_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeResponse"},"title":"Response List Employees Hospital Ops D8 Workforce Employees Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/workforce/shifts":{"post":{"tags":["hospital_ops_d8"],"summary":"Schedule Shift","description":"Schedule a workforce shift for an employee.","operationId":"schedule_shift_hospital_ops_d8_workforce_shifts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShiftScheduleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShiftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hospital_ops_d8"],"summary":"List Shifts","description":"List scheduled shifts with optional filters.","operationId":"list_shifts_hospital_ops_d8_workforce_shifts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"}},{"name":"shift_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shift Date"}},{"name":"employee_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Employee Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShiftResponse"},"title":"Response List Shifts Hospital Ops D8 Workforce Shifts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/workforce/clock-in":{"post":{"tags":["hospital_ops_d8"],"summary":"Clock In","description":"Record employee clock-in for a shift.","operationId":"clock_in_hospital_ops_d8_workforce_clock_in_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClockRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShiftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/workforce/clock-out":{"post":{"tags":["hospital_ops_d8"],"summary":"Clock Out","description":"Record employee clock-out for a shift.","operationId":"clock_out_hospital_ops_d8_workforce_clock_out_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClockRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShiftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/workforce/swaps":{"post":{"tags":["hospital_ops_d8"],"summary":"Request Shift Swap","description":"Submit a shift swap request between two employees.","operationId":"request_shift_swap_hospital_ops_d8_workforce_swaps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShiftSwapRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShiftSwapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/workforce/swaps/{swap_id}":{"patch":{"tags":["hospital_ops_d8"],"summary":"Resolve Shift Swap","description":"Approve or reject a shift swap request (admin only).","operationId":"resolve_shift_swap_hospital_ops_d8_workforce_swaps__swap_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"swap_id","in":"path","required":true,"schema":{"type":"string","title":"Swap Id"}},{"name":"new_status","in":"query","required":true,"schema":{"$ref":"#/components/schemas/SwapStatus"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShiftSwapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/workforce/credentials":{"post":{"tags":["hospital_ops_d8"],"summary":"Add Credential","description":"Register a license or training credential for an employee.","operationId":"add_credential_hospital_ops_d8_workforce_credentials_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hospital_ops_d8"],"summary":"List Credentials","description":"List credentials, optionally filtered by employee or status.","operationId":"list_credentials_hospital_ops_d8_workforce_credentials_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"employee_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Employee Id"}},{"name":"cred_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CredentialStatus"},{"type":"null"}],"title":"Cred Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CredentialResponse"},"title":"Response List Credentials Hospital Ops D8 Workforce Credentials Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/workforce/credentials/expiring":{"get":{"tags":["hospital_ops_d8"],"summary":"Expiring Credentials","description":"Return credentials expiring within the given number of days.","operationId":"expiring_credentials_hospital_ops_d8_workforce_credentials_expiring_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"within_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":90,"title":"Within Days"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CredentialResponse"},"title":"Response Expiring Credentials Hospital Ops D8 Workforce Credentials Expiring Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hospital-ops-d8/workforce/staffing-forecast":{"post":{"tags":["hospital_ops_d8"],"summary":"Staffing Forecast","description":"Generate an acuity-based staffing forecast for a unit on a given date.\n\nUses NDNQI HPPD targets and acuity-tier RN-ratio tables to recommend\nRN and CNA headcount for a 12-hour shift.","operationId":"staffing_forecast_hospital_ops_d8_workforce_staffing_forecast_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffingForecastRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffingForecastResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/inbound":{"post":{"tags":["hl7v2"],"summary":"Ingest Hl7 Message","description":"Ingest an inbound HL7 v2 message (from MLLP/TLS gateway, HTTPS bridge, or SFTP).\n\nParses the raw message, translates to FHIR R4 per the v2-to-FHIR IG, routes\nto the appropriate downstream system, and returns a structured HL7 ACK.\nSupports all ADT (A01-A60), ORM/OML, ORU, RDE/RAS/RGV, SIU, DFT, VXU/VXR,\nMDM, REF, BAR, and ACK message types.","operationId":"ingest_hl7_message_hl7v2_inbound_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HL7InboundMessage"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HL7ParsedMessage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/inbound/batch":{"post":{"tags":["hl7v2"],"summary":"Ingest Hl7 Batch","description":"Ingest a batch of HL7 v2 messages asynchronously (SFTP/file-drop use case).\n\nMessages are processed concurrently in the background. Returns a batch ID\nand estimated count.","operationId":"ingest_hl7_batch_hl7v2_inbound_batch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HL7InboundMessage"},"title":"Messages"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Hl7 Batch Hl7V2 Inbound Batch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/routes":{"post":{"tags":["hl7v2"],"summary":"Create Route","description":"Create or update an HL7 v2 interface routing rule.","operationId":"create_route_hl7v2_routes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HL7RouteConfig"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Create Route Hl7V2 Routes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hl7v2"],"summary":"List Routes","description":"List all HL7 v2 routing configurations.","operationId":"list_routes_hl7v2_routes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Routes Hl7V2 Routes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/messages/recent":{"get":{"tags":["hl7v2"],"summary":"Recent Messages","description":"Return the most recent inbound HL7 v2 messages (ring buffer).","operationId":"recent_messages_hl7v2_messages_recent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Recent Messages Hl7V2 Messages Recent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/stats":{"get":{"tags":["hl7v2"],"summary":"Throughput Stats","description":"Return live throughput statistics for the HL7 v2 engine.\n\nThe msg/s figure is computed over the last 60 seconds using the ring buffer\nof arrival timestamps — aligned with the 5 000 msg/s/pod target.","operationId":"throughput_stats_hl7v2_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThroughputStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/transports/mllp":{"post":{"tags":["hl7v2"],"summary":"Configure Mllp Endpoint","description":"Register an MLLP listener endpoint configuration.\n\nThe actual MLLP/TLS socket server is managed by the hl7v2-mllp sidecar\n(deployed as a separate Kubernetes container sharing a localhost socket).\nThis endpoint persists the configuration consumed by that sidecar.","operationId":"configure_mllp_endpoint_hl7v2_transports_mllp_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MLLPEndpointConfig"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Configure Mllp Endpoint Hl7V2 Transports Mllp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hl7v2"],"summary":"List Mllp Endpoints","description":"List all configured MLLP listener endpoints.","operationId":"list_mllp_endpoints_hl7v2_transports_mllp_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Mllp Endpoints Hl7V2 Transports Mllp Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/transports/sftp":{"post":{"tags":["hl7v2"],"summary":"Configure Sftp Endpoint","description":"Register an SFTP batch ingest endpoint configuration.\n\nThe SFTP poll worker runs as a Cloud Run Job on a schedule, drops files into\nthe /inbound/batch HTTP endpoint, then archives to the configured path.","operationId":"configure_sftp_endpoint_hl7v2_transports_sftp_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SFTPEndpointConfig"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Configure Sftp Endpoint Hl7V2 Transports Sftp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hl7v2"],"summary":"List Sftp Endpoints","description":"List all configured SFTP batch ingest endpoints.","operationId":"list_sftp_endpoints_hl7v2_transports_sftp_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Sftp Endpoints Hl7V2 Transports Sftp Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/tefca/patient-discovery":{"post":{"tags":["hl7v2"],"summary":"Tefca Patient Discovery","description":"Submit a TEFCA XCPD patient discovery query to one or more QHINs.\n\nBroadcasts an IHE XCPD ITI-55 Cross Gateway Patient Discovery request\nto TEFCA-participating QHINs. Returns a correlation ID for async polling.","operationId":"tefca_patient_discovery_hl7v2_tefca_patient_discovery_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TEFCAPatientQueryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Tefca Patient Discovery Hl7V2 Tefca Patient Discovery Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/tefca/document-query":{"post":{"tags":["hl7v2"],"summary":"Tefca Document Query","description":"Submit a TEFCA XCA document query (ITI-18) to retrieve clinical documents.\n\nQueries the patient's home community via TEFCA for available documents\nmatching the requested types and date range.","operationId":"tefca_document_query_hl7v2_tefca_document_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TEFCADocumentQueryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Tefca Document Query Hl7V2 Tefca Document Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hl7v2/tefca/queries/{query_id}":{"get":{"tags":["hl7v2"],"summary":"Get Tefca Query","description":"Poll the status and results of a TEFCA query.","operationId":"get_tefca_query_hl7v2_tefca_queries__query_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Tefca Query Hl7V2 Tefca Queries  Query Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/queries/outbound":{"post":{"tags":["tefca-qhin"],"summary":"Submit Outbound Qhin Query","description":"Submit an outbound TEFCA QHIN query by demographics and/or patient identifiers.\n\nBroadcasts an IHE XCPD ITI-55 patient discovery message to the specified\n(or all) TEFCA-connected QHINs, followed by an XCA ITI-38 document query\nfor any discovered patients.  Returns a query_id for async polling.","operationId":"submit_outbound_qhin_query_tefca_qhin_queries_outbound_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QHINOutboundQueryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Outbound Qhin Query Tefca Qhin Queries Outbound Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/queries/{query_id}":{"get":{"tags":["tefca-qhin"],"summary":"Get Query Status","description":"Poll the status and results of any TEFCA-QHIN or IHE query.","operationId":"get_query_status_tefca_qhin_queries__query_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Query Status Tefca Qhin Queries  Query Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/inbound/fhir":{"post":{"tags":["tefca-qhin"],"summary":"Serve Inbound Qhin Query","description":"Serve an inbound QHIN query via the FHIR R4 API.\n\nValidates the QHIN-asserted Purpose of Use, authorises disclosure under\nTEFCA QTF § 4 (Permitted Purposes), and returns a FHIR Bundle reference.","operationId":"serve_inbound_qhin_query_tefca_qhin_inbound_fhir_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Patient Id"}},{"name":"purpose_of_use","in":"query","required":false,"schema":{"$ref":"#/components/schemas/app__serving__tefca_qhin__PurposeOfUse","default":"TREATMENT"}},{"name":"qhin_asserted_pou","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qhin Asserted Pou"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Serve Inbound Qhin Query Tefca Qhin Inbound Fhir Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/bridges/query":{"post":{"tags":["tefca-qhin"],"summary":"Legacy Bridge Query","description":"Query a Carequality or CommonWell legacy bridge network.\n\nBoth networks are sunsetting under TEFCA; this endpoint provides\nbackward compatibility during the migration period. New deployments\nshould use /tefca-qhin/queries/outbound with TEFCA QTF v2 directly.","operationId":"legacy_bridge_query_tefca_qhin_bridges_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyBridgeQueryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Legacy Bridge Query Tefca Qhin Bridges Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/bridges":{"get":{"tags":["tefca-qhin"],"summary":"List Bridge Networks","description":"List available legacy bridge networks and their TEFCA migration status.","operationId":"list_bridge_networks_tefca_qhin_bridges_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Bridge Networks Tefca Qhin Bridges Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/xds/documents":{"post":{"tags":["tefca-qhin","xds"],"summary":"Xds Provide Document","description":"IHE XDS.b ITI-41 — Provide and Register Document Set.\n\nAccepts a document submission, assigns a unique ID, registers the document\nin the XDS Registry, and stores it in the Repository.","operationId":"xds_provide_document_tefca_qhin_xds_documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XDSDocumentEntry"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xds Provide Document Tefca Qhin Xds Documents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/xds/queries":{"post":{"tags":["tefca-qhin","xds"],"summary":"Xds Stored Query","description":"IHE XDS.b ITI-18 — Registry Stored Query (FindDocuments).\n\nReturns document metadata entries from the local XDS Registry matching\nthe requested patient, class codes, and status.","operationId":"xds_stored_query_tefca_qhin_xds_queries_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XDSQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xds Stored Query Tefca Qhin Xds Queries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/xds/documents/{document_unique_id}":{"get":{"tags":["tefca-qhin","xds"],"summary":"Xds Retrieve Document","description":"IHE XDS.b ITI-43 — Retrieve Document Set.","operationId":"xds_retrieve_document_tefca_qhin_xds_documents__document_unique_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_unique_id","in":"path","required":true,"schema":{"type":"string","title":"Document Unique Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xds Retrieve Document Tefca Qhin Xds Documents  Document Unique Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/xds/documents/{document_unique_id}/deprecate":{"patch":{"tags":["tefca-qhin","xds"],"summary":"Xds Deprecate Document","description":"IHE XDS.b ITI-57 — Update Document Set (deprecate).","operationId":"xds_deprecate_document_tefca_qhin_xds_documents__document_unique_id__deprecate_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_unique_id","in":"path","required":true,"schema":{"type":"string","title":"Document Unique Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xds Deprecate Document Tefca Qhin Xds Documents  Document Unique Id  Deprecate Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/xcpd/discover":{"post":{"tags":["tefca-qhin","xcpd"],"summary":"Xcpd Patient Discovery","description":"IHE XCPD ITI-55 — Cross Gateway Patient Discovery.\n\nBroadcasts patient demographics to target health communities to locate\nmatching patient identifiers across organisational boundaries.","operationId":"xcpd_patient_discovery_tefca_qhin_xcpd_discover_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XCPDPatientDiscoveryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xcpd Patient Discovery Tefca Qhin Xcpd Discover Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/xcpd/queries/{query_id}":{"get":{"tags":["tefca-qhin","xcpd"],"summary":"Xcpd Get Query","description":"Retrieve XCPD patient discovery query results.","operationId":"xcpd_get_query_tefca_qhin_xcpd_queries__query_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xcpd Get Query Tefca Qhin Xcpd Queries  Query Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/xca/query":{"post":{"tags":["tefca-qhin","xca"],"summary":"Xca Cross Gateway Query","description":"IHE XCA ITI-38 — Cross Gateway Query.\n\nRoutes an XDS.b FindDocuments stored query to a responding gateway in\nanother health community. Results are collated and returned asynchronously.","operationId":"xca_cross_gateway_query_tefca_qhin_xca_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XCACrossGatewayQueryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xca Cross Gateway Query Tefca Qhin Xca Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/xca/retrieve":{"post":{"tags":["tefca-qhin","xca"],"summary":"Xca Cross Gateway Retrieve","description":"IHE XCA ITI-39 — Cross Gateway Retrieve.\n\nRetrieves specific documents identified by ITI-38 from remote community\nrepositories. Documents are streamed back as a multi-part response\n(represented here as a JSON envelope for API compatibility).","operationId":"xca_cross_gateway_retrieve_tefca_qhin_xca_retrieve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XCARetrieveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xca Cross Gateway Retrieve Tefca Qhin Xca Retrieve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/xca/queries/{query_id}":{"get":{"tags":["tefca-qhin","xca"],"summary":"Xca Get Query","description":"Retrieve XCA cross-gateway query status and results.","operationId":"xca_get_query_tefca_qhin_xca_queries__query_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xca Get Query Tefca Qhin Xca Queries  Query Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/ias/sessions":{"post":{"tags":["tefca-qhin","ias"],"summary":"Initiate Ias Session","description":"Initiate an Individual Access Services session with IAL2 identity proofing.\n\nCreates a proofing session following NIST SP 800-63A IAL2 requirements:\nidentity evidence collection, document verification, and biometric matching.","operationId":"initiate_ias_session_tefca_qhin_ias_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IAL2IdentityRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Initiate Ias Session Tefca Qhin Ias Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/ias/sessions/{session_id}/evidence":{"post":{"tags":["tefca-qhin","ias"],"summary":"Submit Ias Evidence","description":"Submit identity evidence (government ID + optional liveness selfie) for IAL2 proofing.","operationId":"submit_ias_evidence_tefca_qhin_ias_sessions__session_id__evidence_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IAL2EvidenceSubmission"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Ias Evidence Tefca Qhin Ias Sessions  Session Id  Evidence Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/ias/sessions/{session_id}/verify":{"post":{"tags":["tefca-qhin","ias"],"summary":"Verify Ias Identity","description":"Trigger IAL2 automated document + biometric verification.\n\nIn production: delegates to a NIST-approved identity verification provider.\nSets session status to 'verified' on success; issues TEFCA IAS credential.","operationId":"verify_ias_identity_tefca_qhin_ias_sessions__session_id__verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Ias Identity Tefca Qhin Ias Sessions  Session Id  Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tefca-qhin/ias/sessions/{session_id}":{"get":{"tags":["tefca-qhin","ias"],"summary":"Get Ias Session","description":"Retrieve an IAS session status.","operationId":"get_ias_session_tefca_qhin_ias_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Ias Session Tefca Qhin Ias Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/patient-access/$patient-access":{"post":{"tags":["payer-interop"],"summary":"CARIN Blue Button — patient-directed access bundle","description":"Return a FHIR Bundle containing EOB, Coverage, and Patient per CARIN BB IG.","operationId":"patient_access_payer_patient_access__patient_access_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/crd/hook":{"post":{"tags":["payer-interop"],"summary":"Da Vinci CRD — CDS Hooks decision support","description":"Process a CDS Hooks call and return CRD coverage requirement cards.","operationId":"crd_hook_payer_crd_hook_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrdHookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrdHookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/dtr/questionnaire":{"get":{"tags":["payer-interop"],"summary":"Da Vinci DTR — fetch coverage-specific questionnaire","description":"Return a FHIR Questionnaire for documentation template and rules (DTR).","operationId":"dtr_questionnaire_payer_dtr_questionnaire_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"coverage_type","in":"query","required":false,"schema":{"type":"string","default":"prior-auth","title":"Coverage Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtrQuestionnaireResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/pas/submit":{"post":{"tags":["payer-interop"],"summary":"Da Vinci PAS — prior authorization submission","description":"Submit a prior authorization request via Da Vinci PAS IG.","operationId":"pas_submit_payer_pas_submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/pdex/member/{member_id}":{"get":{"tags":["payer-interop"],"summary":"Da Vinci PDex — member health history","description":"Return the payer-held health history for a member (PDex IG).","operationId":"pdex_member_payer_pdex_member__member_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdexMemberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/provider-directory/practitioners":{"get":{"tags":["payer-interop"],"summary":"CMS Provider Directory — search practitioners","description":"Query the CMS FHIR-based provider directory (DaVinci Plan-Net IG).","operationId":"provider_directory_payer_provider_directory_practitioners_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"specialty","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"}},{"name":"accepting_patients","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepting Patients"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderDirectoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/payer-to-payer/member-attribution":{"post":{"tags":["payer-interop"],"summary":"CMS Payer-to-Payer — member attribution","description":"Create a CMS Payer-to-Payer member attribution record.","operationId":"p2p_member_attribution_payer_payer_to_payer_member_attribution_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/P2pAttributionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/P2pAttributionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/webhooks/subscriptions":{"post":{"tags":["payer-interop","webhooks"],"summary":"Create a webhook subscription","operationId":"create_subscription_payer_webhooks_subscriptions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__d13_payer_interop__SubscriptionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__d13_payer_interop__SubscriptionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["payer-interop","webhooks"],"summary":"List webhook subscriptions","operationId":"list_subscriptions_payer_webhooks_subscriptions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__serving__d13_payer_interop__SubscriptionSummary"},"title":"Response List Subscriptions Payer Webhooks Subscriptions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/webhooks/subscriptions/{sub_id}":{"get":{"tags":["payer-interop","webhooks"],"summary":"Get a webhook subscription","operationId":"get_subscription_payer_webhooks_subscriptions__sub_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__d13_payer_interop__SubscriptionSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["payer-interop","webhooks"],"summary":"Delete a webhook subscription","operationId":"delete_subscription_payer_webhooks_subscriptions__sub_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/webhooks/subscriptions/{sub_id}/test":{"post":{"tags":["payer-interop","webhooks"],"summary":"Send a test ping to the subscription endpoint","operationId":"test_subscription_payer_webhooks_subscriptions__sub_id__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Test Subscription Payer Webhooks Subscriptions  Sub Id  Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/webhooks/notify":{"post":{"tags":["payer-interop","webhooks"],"summary":"Internal: trigger subscription delivery for a FHIR event","description":"Fan-out to all active subscriptions matching the event resource type.","operationId":"notify_payer_webhooks_notify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Notify Payer Webhooks Notify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payer/webhooks/subscriptions/{sub_id}/dlq":{"get":{"tags":["payer-interop","webhooks"],"summary":"Inspect the dead-letter queue for a subscription","operationId":"get_dlq_payer_webhooks_subscriptions__sub_id__dlq_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DlqResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["payer-interop","webhooks"],"summary":"Replay DLQ entries and clear the queue","operationId":"replay_dlq_payer_webhooks_subscriptions__sub_id__dlq_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Replay Dlq Payer Webhooks Subscriptions  Sub Id  Dlq Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/events/publish":{"post":{"tags":["polyglot-dataplane"],"summary":"Publish Event","description":"Publish a clinical event to the Kafka event log.","operationId":"publish_event_dataplane_events_publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KafkaEvent"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KafkaEventReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/events/topics":{"get":{"tags":["polyglot-dataplane"],"summary":"List Topics","description":"List registered Kafka topics and their current depth.","operationId":"list_topics_dataplane_events_topics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Topics Dataplane Events Topics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/lakehouse/snapshot":{"post":{"tags":["polyglot-dataplane"],"summary":"Create Snapshot","description":"Trigger an Iceberg table snapshot (compaction checkpoint).","operationId":"create_snapshot_dataplane_lakehouse_snapshot_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcebergSnapshotRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcebergSnapshotReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/lakehouse/tables":{"get":{"tags":["polyglot-dataplane"],"summary":"List Iceberg Tables","description":"List Iceberg tables that have been snapshotted.","operationId":"list_iceberg_tables_dataplane_lakehouse_tables_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Iceberg Tables Dataplane Lakehouse Tables Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/vectors/upsert":{"post":{"tags":["polyglot-dataplane"],"summary":"Upsert Vector","description":"Upsert a document embedding into the pgvector store.","operationId":"upsert_vector_dataplane_vectors_upsert_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VectorUpsertRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/vectors/search":{"post":{"tags":["polyglot-dataplane"],"summary":"Search Vectors","description":"kNN similarity search over pgvector collection (cosine distance).","operationId":"search_vectors_dataplane_vectors_search_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VectorSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VectorSearchResult"},"title":"Response Search Vectors Dataplane Vectors Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/search/index":{"post":{"tags":["polyglot-dataplane"],"summary":"Index Document","description":"Index a clinical document in OpenSearch.","operationId":"index_document_dataplane_search_index_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchIndexRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/search/query":{"post":{"tags":["polyglot-dataplane"],"summary":"Query Search","description":"Full-text query over OpenSearch index (substring match for stub).","operationId":"query_search_dataplane_search_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__serving__d19_polyglot_dataplane__SearchHit"},"title":"Response Query Search Dataplane Search Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/vitals/ingest":{"post":{"tags":["polyglot-dataplane"],"summary":"Ingest Vitals","description":"Ingest a vitals observation into the TimescaleDB hypertable.","operationId":"ingest_vitals_dataplane_vitals_ingest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VitalsObservation"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/vitals/range":{"get":{"tags":["polyglot-dataplane"],"summary":"Get Vitals Range","description":"Range query over the TimescaleDB vitals hypertable.","operationId":"get_vitals_range_dataplane_vitals_range_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"loinc_code","in":"query","required":true,"schema":{"type":"string","title":"Loinc Code"}},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Range start (ISO 8601)","title":"Start"},"description":"Range start (ISO 8601)"},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Range end (ISO 8601)","title":"End"},"description":"Range end (ISO 8601)"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VitalsRangeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/graph/nodes":{"post":{"tags":["polyglot-dataplane"],"summary":"Upsert Node","description":"Upsert a node into the Neo4j property graph.","operationId":"upsert_node_dataplane_graph_nodes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphNode"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/graph/relationships":{"post":{"tags":["polyglot-dataplane"],"summary":"Upsert Relationship","description":"Upsert a directed relationship in the Neo4j property graph.","operationId":"upsert_relationship_dataplane_graph_relationships_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphRelationship"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/graph/neighbors/{node_id}":{"get":{"tags":["polyglot-dataplane"],"summary":"Get Neighbors","description":"Traverse immediate (or shallow) neighbors of a node in Neo4j.","operationId":"get_neighbors_dataplane_graph_neighbors__node_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","title":"Node Id"}},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","maximum":3,"minimum":1,"default":1,"title":"Depth"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphNeighborsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataplane/health":{"get":{"tags":["polyglot-dataplane"],"summary":"Health","description":"Return per-store liveness status (stub: all healthy in dev mode).","operationId":"health_dataplane_health_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Health Dataplane Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/ecqm/run":{"post":{"tags":["quality_depth"],"summary":"Run Ecqm","description":"Trigger an eCQM calculation run for specified measures and reporting period.\n\nProduces QRDA Category I (per-patient) and Category III (aggregate) outputs.","operationId":"run_ecqm_quality_depth_ecqm_run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/eCQMRunRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Ecqm Quality Depth Ecqm Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/ecqm/runs/{run_id}":{"get":{"tags":["quality_depth"],"summary":"Get Ecqm Run","description":"Get results for all measures in an eCQM run.","operationId":"get_ecqm_run_quality_depth_ecqm_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Ecqm Run Quality Depth Ecqm Runs  Run Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/nhsn/report":{"post":{"tags":["quality_depth"],"summary":"Submit Nhsn Report","description":"Submit an NHSN HAI surveillance report for a reporting month.\n\nTranslates to a NHSN CDA document and submits via the NHSN API.","operationId":"submit_nhsn_report_quality_depth_nhsn_report_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NHSNReportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Nhsn Report Quality Depth Nhsn Report Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/nhsn/reports":{"get":{"tags":["quality_depth"],"summary":"List Nhsn Reports","description":"List submitted NHSN reports.","operationId":"list_nhsn_reports_quality_depth_nhsn_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"facility_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Id"}},{"name":"report_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/NHSNReportType"},{"type":"null"}],"title":"Report Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Nhsn Reports Quality Depth Nhsn Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/nhsn/au-ar":{"post":{"tags":["quality_depth"],"summary":"Submit NHSN Antimicrobial Use and Resistance report — (f)(6)","description":"Submit a monthly NHSN Antimicrobial Use and Resistance report.\n\nImplements ONC § 170.315(f)(6) — electronic submission to NHSN AU/AR components.\n\nCalculates Standardised Antimicrobial Administration Ratios (SAAR) for each\nagent/location pair and packages the submission as an NHSN CDA message.","operationId":"submit_nhsn_au_ar_quality_depth_nhsn_au_ar_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NHSNAntimicrobialReport"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Nhsn Au Ar Quality Depth Nhsn Au Ar Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/nhsn/au-ar/{report_id}":{"get":{"tags":["quality_depth"],"summary":"Get NHSN AU/AR report — (f)(6)","description":"Retrieve a submitted NHSN AU/AR report by ID.","operationId":"get_nhsn_au_ar_report_quality_depth_nhsn_au_ar__report_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Nhsn Au Ar Report Quality Depth Nhsn Au Ar  Report Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/cancer-registry/cases":{"post":{"tags":["quality_depth"],"summary":"Submit cancer registry case — NAACCR XML / HL7 v2 (f)(4)","description":"Submit a new cancer case to the state cancer registry.\n\nImplements ONC § 170.315(f)(4) — cancer registry reporting.\n\nGenerates either a NAACCR v23 XML document or an HL7 v2.5.1 ORU^R01 message\ndepending on the requested transmission_format, then transmits to the state\nregistry via sFTP drop-zone or real-time HTTPS endpoint.","operationId":"submit_cancer_case_quality_depth_cancer_registry_cases_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancerCaseReport"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Cancer Case Quality Depth Cancer Registry Cases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/cancer-registry/cases/{case_id}":{"get":{"tags":["quality_depth"],"summary":"Get cancer registry case","description":"Retrieve a cancer case submission record.","operationId":"get_cancer_case_quality_depth_cancer_registry_cases__case_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Cancer Case Quality Depth Cancer Registry Cases  Case Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/pdmp/query":{"post":{"tags":["quality_depth"],"summary":"Pdmp Query","description":"Query the PDMP for a patient's controlled substance prescription history.\n\nSends an NCPDP SCRIPT RxHistoryRequest (v2017071), FHIR $pdmp-history operation,\nor state-proprietary PMIX/ASAP message depending on the state hub configuration\nand requested preferred_protocol.\n\nReturns a query ID for polling (most state PDMPs respond within 3 seconds).\nONC § 170.315(f)(7) — controlled substance e-prescribing / PDMP integration.","operationId":"pdmp_query_quality_depth_pdmp_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__quality_depth__PDMPQueryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pdmp Query Quality Depth Pdmp Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/pdmp/queries/{query_id}":{"get":{"tags":["quality_depth"],"summary":"Poll PDMP query result","description":"Poll PDMP query result.","operationId":"get_pdmp_query_quality_depth_pdmp_queries__query_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Pdmp Query Quality Depth Pdmp Queries  Query Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/pdmp/state-configs/{state_code}":{"put":{"tags":["quality_depth"],"summary":"Configure state PDMP hub — state-specific","description":"Create or update the PDMP hub configuration for a given state.\n\nStores protocol, mandatory-query rules, and hub credentials metadata.\nUsed to drive state-specific NCPDP / FHIR / PMIX routing at query time.","operationId":"upsert_pdmp_state_config_quality_depth_pdmp_state_configs__state_code__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"state_code","in":"path","required":true,"schema":{"type":"string","title":"State Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PDMPStateConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Pdmp State Config Quality Depth Pdmp State Configs  State Code  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/pdmp/state-configs":{"get":{"tags":["quality_depth"],"summary":"List PDMP state configurations","description":"List all configured state PDMP hub entries.","operationId":"list_pdmp_state_configs_quality_depth_pdmp_state_configs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Pdmp State Configs Quality Depth Pdmp State Configs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/birth-defects/cases":{"post":{"tags":["quality_depth"],"summary":"Submit birth defect registry case (state-specific)","description":"Submit a birth defect case to the state birth defect registry.\n\nState registries use varied electronic submission formats; this endpoint\nnormalises to an ICD-10-CM coded FHIR Condition resource for the registry\nFHIR endpoint or produces a state-specific flat-file for sFTP drop-zones.","operationId":"submit_birth_defect_case_quality_depth_birth_defects_cases_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BirthDefectCase"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Birth Defect Case Quality Depth Birth Defects Cases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/birth-defects/cases/{case_id}":{"get":{"tags":["quality_depth"],"summary":"Get birth defect case","description":"Retrieve a birth defect case submission record.","operationId":"get_birth_defect_case_quality_depth_birth_defects_cases__case_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Birth Defect Case Quality Depth Birth Defects Cases  Case Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/vital-records":{"post":{"tags":["quality_depth"],"summary":"Submit a vital record event (birth/death/fetal-death) — state-specific","description":"Submit a vital record event to the state vital statistics office.\n\nSupports birth, death, fetal death, marriage, and divorce events.\nElectronic submission uses HL7 v2.6 or FHIR R4 as required by the\nstate vital records authority.","operationId":"submit_vital_record_quality_depth_vital_records_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VitalRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Vital Record Quality Depth Vital Records Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/vital-records/{record_id}":{"get":{"tags":["quality_depth"],"summary":"Get vital record submission","description":"Retrieve a vital record submission.","operationId":"get_vital_record_quality_depth_vital_records__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Vital Record Quality Depth Vital Records  Record Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/surveys":{"post":{"tags":["quality_depth"],"summary":"Create a healthcare survey — (f)(7)","description":"Create a healthcare survey instance.\n\nImplements ONC § 170.315(f)(7) — healthcare survey export.\n\nSupports AHRQ SOPS (hospital / ambulatory), CMS CAHPS, NHSN Annual Survey,\nand state-specific survey forms.  The survey is opened for response collection\nand can be exported to the submitting agency via the /surveys/{id}/export endpoint.","operationId":"create_survey_quality_depth_surveys_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Survey Quality Depth Surveys Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["quality_depth"],"summary":"List surveys — (f)(7)","description":"List healthcare surveys with optional filtering.","operationId":"list_surveys_quality_depth_surveys_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"survey_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/app__serving__quality_depth__SurveyType"},{"type":"null"}],"title":"Survey Type"}},{"name":"survey_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SurveyStatus"},{"type":"null"}],"title":"Survey Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Surveys Quality Depth Surveys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/surveys/{survey_id}":{"get":{"tags":["quality_depth"],"summary":"Get survey — (f)(7)","description":"Retrieve survey metadata and status.","operationId":"get_survey_quality_depth_surveys__survey_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"survey_id","in":"path","required":true,"schema":{"type":"string","title":"Survey Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Survey Quality Depth Surveys  Survey Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/surveys/{survey_id}/responses":{"post":{"tags":["quality_depth"],"summary":"Submit survey response — (f)(7)","description":"Submit an individual response to an open survey.\n\nRespondent ID must be an anonymised token — no PHI in the response record.\nImplements ONC § 170.315(f)(7) response data collection.","operationId":"submit_survey_response_quality_depth_surveys__survey_id__responses_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"survey_id","in":"path","required":true,"schema":{"type":"string","title":"Survey Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyResponseSubmit"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Survey Response Quality Depth Surveys  Survey Id  Responses Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-depth/surveys/{survey_id}/export":{"post":{"tags":["quality_depth"],"summary":"Export survey data to agency — (f)(7)","description":"Export collected survey responses to the appropriate agency.\n\nImplements ONC § 170.315(f)(7) — produces the agency-specific export format\n(AHRQ SOPS: CSV/XML, CMS CAHPS: XML, state: varies) and submits via the\nconfigured agency endpoint or secure file transfer.","operationId":"export_survey_quality_depth_surveys__survey_id__export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"survey_id","in":"path","required":true,"schema":{"type":"string","title":"Survey Id"}},{"name":"close_survey","in":"query","required":false,"schema":{"type":"boolean","description":"Close the survey after export","default":false,"title":"Close Survey"},"description":"Close the survey after export"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export Survey Quality Depth Surveys  Survey Id  Export Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setting-profiles/":{"get":{"tags":["setting_profiles"],"summary":"List Profiles","description":"Return all available setting profiles with their configurations.","operationId":"list_profiles_setting_profiles__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Profiles Setting Profiles  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setting-profiles/{profile_id}":{"get":{"tags":["setting_profiles"],"summary":"Get Profile","description":"Return the full configuration for a setting profile.","operationId":"get_profile_setting_profiles__profile_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SettingProfile"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Profile Setting Profiles  Profile Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setting-profiles/tenant/assign":{"post":{"tags":["setting_profiles"],"summary":"Assign Tenant Profile","description":"Assign a setting profile to a tenant, with optional per-tenant overrides.\n\nMerges the base profile with any overrides and caches the effective\nconfiguration for the tenant.","operationId":"assign_tenant_profile_setting_profiles_tenant_assign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantProfileAssignment"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assign Tenant Profile Setting Profiles Tenant Assign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setting-profiles/tenant/{tenant_id}":{"get":{"tags":["setting_profiles"],"summary":"Get Tenant Profile","description":"Return the effective setting profile configuration for a tenant.","operationId":"get_tenant_profile_setting_profiles_tenant__tenant_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Tenant Profile Setting Profiles Tenant  Tenant Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setting-profiles/tenant/{tenant_id}/overrides":{"patch":{"tags":["setting_profiles"],"summary":"Patch Tenant Overrides","description":"Apply incremental overrides to a tenant's effective profile configuration.","operationId":"patch_tenant_overrides_setting_profiles_tenant__tenant_id__overrides_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Tenant Overrides Setting Profiles Tenant  Tenant Id  Overrides Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/providers":{"post":{"tags":["credentialing"],"summary":"Register Provider","description":"Register a provider credential profile for ongoing monitoring.","operationId":"register_provider_credentialing_providers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredentialProfile"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Provider Credentialing Providers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/providers/{npi}":{"get":{"tags":["credentialing"],"summary":"Get Provider Credential","description":"Retrieve a provider's credential profile.","operationId":"get_provider_credential_credentialing_providers__npi__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"npi","in":"path","required":true,"schema":{"type":"string","title":"Npi"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Provider Credential Credentialing Providers  Npi  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/providers/{npi}/verify":{"post":{"tags":["credentialing"],"summary":"Verify Provider","description":"Run primary source verification against requested sources.\n\nExecutes OIG LEIE, SAM.gov, NPI Registry, and state board checks\nconcurrently. Returns pass/fail per source and an overall determination.","operationId":"verify_provider_credentialing_providers__npi__verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"npi","in":"path","required":true,"schema":{"type":"string","title":"Npi"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__credentialing__VerificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Provider Credentialing Providers  Npi  Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/providers/{npi}/verifications":{"get":{"tags":["credentialing"],"summary":"Get Verifications","description":"Retrieve verification history for a provider.","operationId":"get_verifications_credentialing_providers__npi__verifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"npi","in":"path","required":true,"schema":{"type":"string","title":"Npi"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Verifications Credentialing Providers  Npi  Verifications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/privileging":{"post":{"tags":["credentialing"],"summary":"Request Privileges","description":"Submit a clinical privileging request for a provider at a facility.","operationId":"request_privileges_credentialing_privileging_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivilegingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Privileges Credentialing Privileging Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/privileging/{privilege_id}/decision":{"patch":{"tags":["credentialing"],"summary":"Update Privileging Decision","description":"Record the Medical Executive Committee privileging decision.","operationId":"update_privileging_decision_credentialing_privileging__privilege_id__decision_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"privilege_id","in":"path","required":true,"schema":{"type":"string","title":"Privilege Id"}},{"name":"decision","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PrivilegingStatus"}},{"name":"effective_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Date"}},{"name":"expiry_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry Date"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Privileging Decision Credentialing Privileging  Privilege Id  Decision Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/enrollment/check":{"post":{"tags":["credentialing"],"summary":"Check Enrollment Status","description":"Check CMS PECOS enrollment status and payer enrollment for a provider.","operationId":"check_enrollment_status_credentialing_enrollment_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Enrollment Status Credentialing Enrollment Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/expiring":{"get":{"tags":["credentialing"],"summary":"Get Expiring Credentials","description":"Return providers with licenses or malpractice coverage expiring soon.","operationId":"get_expiring_credentials_credentialing_expiring_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days_ahead","in":"query","required":false,"schema":{"type":"integer","description":"Credentials expiring within this many days","default":90,"title":"Days Ahead"},"description":"Credentials expiring within this many days"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Expiring Credentials Credentialing Expiring Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/caqh/attest":{"post":{"tags":["credentialing"],"summary":"Submit Caqh Attestation","description":"Submit a CAQH ProView data-share authorization and trigger roster sync.\n\nIn production this calls the CAQH Universal Provider Datasource (UPD) API\nto authorize the requesting organization to access the provider's attestation\ndata and initiates a roster-sync pull.  Stub returns a tracking reference.","operationId":"submit_caqh_attestation_credentialing_caqh_attest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CAQHAttestationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Caqh Attestation Credentialing Caqh Attest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/caqh/{caqh_provider_id}":{"get":{"tags":["credentialing"],"summary":"Get Caqh Attestation Status","description":"Retrieve the current CAQH ProView attestation record for a provider.","operationId":"get_caqh_attestation_status_credentialing_caqh__caqh_provider_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caqh_provider_id","in":"path","required":true,"schema":{"type":"string","title":"Caqh Provider Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Caqh Attestation Status Credentialing Caqh  Caqh Provider Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/npdb/query":{"post":{"tags":["credentialing"],"summary":"Submit Npdb Query","description":"Submit an NPDB credentialing query for a provider.\n\nIn production, this calls the NPDB HIPDB API with the entity's credentials to\nsubmit an authorized query.  The response includes any adverse action reports,\nmalpractice payments, or licensure actions on file.  Stub returns a query\nreference and a clean result for testing.","operationId":"submit_npdb_query_credentialing_npdb_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NPDBQueryRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Npdb Query Credentialing Npdb Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/npdb/{npi}/history":{"get":{"tags":["credentialing"],"summary":"Get Npdb Query History","description":"Return all NPDB queries on file for a provider.","operationId":"get_npdb_query_history_credentialing_npdb__npi__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"npi","in":"path","required":true,"schema":{"type":"string","title":"Npi"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Npdb Query History Credentialing Npdb  Npi  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/screening/monthly":{"post":{"tags":["credentialing"],"summary":"Run Monthly Exclusion Screening","description":"Run OIG LEIE + SAM.gov exclusion screening across all (or specified) providers.\n\nThis endpoint is designed to be called by a monthly scheduled job (e.g. a Cloud\nScheduler trigger hitting POST /credentialing/screening/monthly).  It re-screens\nevery registered provider and stores results with a timestamp so auditors can\ndemonstrate monthly compliance per CMS CoP §482.12(a)(1).","operationId":"run_monthly_exclusion_screening_credentialing_screening_monthly_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Npi List"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Monthly Exclusion Screening Credentialing Screening Monthly Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/screening/{npi}/history":{"get":{"tags":["credentialing"],"summary":"Get Screening History","description":"Return monthly screening history for a provider (most recent first).","operationId":"get_screening_history_credentialing_screening__npi__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"npi","in":"path","required":true,"schema":{"type":"string","title":"Npi"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Number of most recent screening records to return","default":12,"title":"Limit"},"description":"Number of most recent screening records to return"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Screening History Credentialing Screening  Npi  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/enrollment":{"post":{"tags":["credentialing"],"summary":"Create Payer Enrollment","description":"Create or update a payer enrollment record for a provider.\n\nTracks submission, approval, effective date, and next reappointment date.\nReappointment dates are typically 2 years after effective date per NCQA CR 8.","operationId":"create_payer_enrollment_credentialing_enrollment_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerEnrollmentRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Payer Enrollment Credentialing Enrollment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/enrollment/{npi}/{payer_id}":{"patch":{"tags":["credentialing"],"summary":"Update Payer Enrollment","description":"Update a payer enrollment record (status, effective date, reappointment date).","operationId":"update_payer_enrollment_credentialing_enrollment__npi___payer_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"npi","in":"path","required":true,"schema":{"type":"string","title":"Npi"}},{"name":"payer_id","in":"path","required":true,"schema":{"type":"string","title":"Payer Id"}},{"name":"enrollment_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enrollment Status"}},{"name":"effective_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Date"}},{"name":"reappointment_due_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reappointment Due Date"}},{"name":"pecos_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pecos Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Payer Enrollment Credentialing Enrollment  Npi   Payer Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/enrollment/{npi}":{"get":{"tags":["credentialing"],"summary":"Get Provider Enrollments","description":"Return all payer enrollment records for a provider.","operationId":"get_provider_enrollments_credentialing_enrollment__npi__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"npi","in":"path","required":true,"schema":{"type":"string","title":"Npi"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Provider Enrollments Credentialing Enrollment  Npi  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentialing/enrollment/reappointment/due":{"get":{"tags":["credentialing"],"summary":"Get Reappointment Due","description":"Return payer enrollments with reappointment dates approaching within the window.","operationId":"get_reappointment_due_credentialing_enrollment_reappointment_due_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days_ahead","in":"query","required":false,"schema":{"type":"integer","description":"Reappointments due within this many days","default":90,"title":"Days Ahead"},"description":"Reappointments due within this many days"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Reappointment Due Credentialing Enrollment Reappointment Due Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/cohorts":{"post":{"tags":["analytics"],"summary":"Create Cohort","description":"Define a patient population cohort.\n\nEvaluates criteria against the FHIR data store and returns a cohort\nwith a patient count. The cohort can then be used in measure dashboards,\nrisk stratification, and export jobs.","operationId":"create_cohort_analytics_cohorts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CohortCriteria"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CohortResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["analytics"],"summary":"List Cohorts","description":"List all defined cohorts.","operationId":"list_cohorts_analytics_cohorts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Cohorts Analytics Cohorts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/cohorts/{cohort_id}":{"get":{"tags":["analytics"],"summary":"Get Cohort","description":"Retrieve a cohort definition and current patient count.","operationId":"get_cohort_analytics_cohorts__cohort_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cohort_id","in":"path","required":true,"schema":{"type":"string","title":"Cohort Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CohortResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/risk/stratify":{"post":{"tags":["analytics"],"summary":"Stratify Risk","description":"Run CMS HCC v28 risk stratification for a list of patients.\n\nReturns HCC risk scores, risk level, SDOH risk flags, and open care gaps.\nIn production, this calls the population health risk engine microservice.","operationId":"stratify_risk_analytics_risk_stratify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Patient Ids"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RiskStratificationResult"},"title":"Response Stratify Risk Analytics Risk Stratify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/risk/patient/{patient_id}":{"get":{"tags":["analytics"],"summary":"Get Patient Risk","description":"Retrieve cached risk stratification for a patient.","operationId":"get_patient_risk_analytics_risk_patient__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskStratificationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/measures/dashboard":{"post":{"tags":["analytics"],"summary":"Measure Dashboard","description":"Return measure performance rates for a cohort and reporting period.","operationId":"measure_dashboard_analytics_measures_dashboard_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeasureDashboardRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Measure Dashboard Analytics Measures Dashboard Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/export":{"post":{"tags":["analytics"],"summary":"Export To Data Warehouse","description":"Trigger an export of FHIR resources to the data warehouse.\n\nSupports BigQuery, Snowflake, GCS (Parquet/Iceberg), and S3.\nPHI is de-identified by default using HIPAA Safe Harbor method.","operationId":"export_to_data_warehouse_analytics_export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataWarehouseExportRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export To Data Warehouse Analytics Export Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/export/{job_id}":{"get":{"tags":["analytics"],"summary":"Get Export Job","description":"Check the status of a data warehouse export job.","operationId":"get_export_job_analytics_export__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Export Job Analytics Export  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/search/semantic":{"post":{"tags":["analytics"],"summary":"Semantic Patient Search","description":"Semantic similarity search over patient records using pgvector embeddings.\n\nEmbeds the query using a clinical NLP model and retrieves the top-k\nmost semantically similar patient summaries from the vector store.","operationId":"semantic_patient_search_analytics_search_semantic_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemanticSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Semantic Patient Search Analytics Search Semantic Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/timeseries/query":{"post":{"tags":["analytics"],"summary":"Query Timeseries","description":"Query time-series vital signs / lab values from TimescaleDB.\n\nUses time_bucket() continuous aggregates for efficient range queries\nover high-frequency device data (ICU vitals, CGM, wearable sensors).","operationId":"query_timeseries_analytics_timeseries_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeseriesQuery"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Query Timeseries Analytics Timeseries Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/apps/register":{"post":{"tags":["developer_platform"],"summary":"Register App","description":"Register a new SMART app or backend service client.\n\nIssues a client_id and (for confidential clients) a client_secret.\nPublic clients (patient-facing SPAs) receive no secret.","operationId":"register_app_developer_apps_register_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppRegistration"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register App Developer Apps Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/apps/{client_id}":{"get":{"tags":["developer_platform"],"summary":"Get App","description":"Retrieve app registration metadata.","operationId":"get_app_developer_apps__client_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get App Developer Apps  Client Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["developer_platform"],"summary":"Revoke App","description":"Revoke an app registration (sets status=revoked, invalidates credentials).","operationId":"revoke_app_developer_apps__client_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/apps":{"get":{"tags":["developer_platform"],"summary":"List Apps","description":"List all registered apps (admin only).","operationId":"list_apps_developer_apps_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Apps Developer Apps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/webhooks":{"post":{"tags":["developer_platform"],"summary":"Create Webhook","description":"Register a webhook to receive FHIR resource event notifications.","operationId":"create_webhook_developer_webhooks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscription"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Webhook Developer Webhooks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/webhooks/{webhook_id}":{"get":{"tags":["developer_platform"],"summary":"Get Webhook","description":"Retrieve a webhook subscription.","operationId":"get_webhook_developer_webhooks__webhook_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Webhook Developer Webhooks  Webhook Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["developer_platform"],"summary":"Delete Webhook","description":"Delete a webhook subscription.","operationId":"delete_webhook_developer_webhooks__webhook_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/api-keys":{"post":{"tags":["developer_platform"],"summary":"Create Api Key","description":"Generate an API key for M2M (machine-to-machine) access.","operationId":"create_api_key_developer_api_keys_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Api Key Developer Api Keys Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["developer_platform"],"summary":"List Api Keys","description":"List API keys for an app (excludes raw key values).","operationId":"list_api_keys_developer_api_keys_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Api Keys Developer Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/api-keys/{key_id}":{"delete":{"tags":["developer_platform"],"summary":"Revoke Api Key","description":"Revoke an API key immediately.","operationId":"revoke_api_key_developer_api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/certification/submit":{"post":{"tags":["developer_platform"],"summary":"Submit For Certification","description":"Submit an app for Sphere vendor certification review.\n\nCertification levels: basic → standard → premium.\nCertified apps are listed in the Sphere App Gallery and may access\nhigher rate limits and additional FHIR scopes.","operationId":"submit_for_certification_developer_certification_submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificationSubmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit For Certification Developer Certification Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/certification/{client_id}/decision":{"patch":{"tags":["developer_platform"],"summary":"Certification Decision","description":"Record the certification review decision (admin/reviewer only).","operationId":"certification_decision_developer_certification__client_id__decision_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"decision","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AppStatus"}},{"name":"review_notes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Notes"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Certification Decision Developer Certification  Client Id  Decision Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/certification/{client_id}":{"get":{"tags":["developer_platform"],"summary":"Get Certification Status","description":"Get certification status for an app.","operationId":"get_certification_status_developer_certification__client_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Certification Status Developer Certification  Client Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/sandboxes":{"post":{"tags":["developer_platform"],"summary":"Provision Sandbox","description":"Provision an isolated sandbox environment for app development and testing.\n\nCreates a tenant-scoped FHIR namespace with synthetic patient data.\nSandbox is automatically decommissioned after the requested duration.","operationId":"provision_sandbox_developer_sandboxes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxProvisionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Provision Sandbox Developer Sandboxes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/developer/sandboxes/{client_id}":{"get":{"tags":["developer_platform"],"summary":"Get Sandbox","description":"Get sandbox details for an app.","operationId":"get_sandbox_developer_sandboxes__client_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sandbox Developer Sandboxes  Client Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/pat":{"post":{"tags":["personal_access_tokens"],"summary":"Create Pat","description":"Mint a new PAT for the authenticated caller.\n\nThe plaintext is returned once in the response and never stored. The PAT\ninherits the caller's MFA-satisfied state, role, and email at mint time.","operationId":"create_pat_auth_pat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePATRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePATResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["personal_access_tokens"],"summary":"List Pats","description":"List the caller's PATs (no plaintext, no other users' tokens).","operationId":"list_pats_auth_pat_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PATListItem"},"title":"Response List Pats Auth Pat Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/pat/login":{"post":{"tags":["personal_access_tokens"],"summary":"Login And Mint","description":"One-shot Firebase password + phone-MFA sign-in that returns a PAT.\n\nThe server proxies the Firebase Identity Toolkit chain so the caller (e.g.\nPostman) never needs the Firebase Web API key. (d)(13) is preserved: MFA\nmust complete successfully, and the minted PAT carries\n``mfa_satisfied_at_mint = TRUE``.","operationId":"login_and_mint_auth_pat_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginAndMintRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePATResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/pat/{pat_id}":{"delete":{"tags":["personal_access_tokens"],"summary":"Revoke Pat","description":"Revoke one of the caller's PATs by id.","operationId":"revoke_pat_auth_pat__pat_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pat_id","in":"path","required":true,"schema":{"type":"string","title":"Pat Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/visits":{"post":{"tags":["ed-operations"],"summary":"Register Ed Arrival","description":"Register a new ED arrival (ADT A04).","operationId":"register_ed_arrival_ed_visits_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EDVisit"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Ed Arrival Ed Visits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ed-operations"],"summary":"List Active Ed Visits","description":"Real-time ED tracking board.","operationId":"list_active_ed_visits_ed_visits_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EDPatientStatus"},{"type":"null"}],"title":"Status Filter"}},{"name":"triage_level","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TriageLevel"},{"type":"null"}],"title":"Triage Level"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Active Ed Visits Ed Visits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/visits/{visit_id}/triage":{"post":{"tags":["ed-operations"],"summary":"Record Triage","description":"Record ESI triage assessment and acuity level.","operationId":"record_triage_ed_visits__visit_id__triage_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"visit_id","in":"path","required":true,"schema":{"type":"string","title":"Visit Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageAssessment"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Triage Ed Visits  Visit Id  Triage Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/visits/{visit_id}/status":{"patch":{"tags":["ed-operations"],"summary":"Update Visit Status","description":"Update ED patient tracking status.","operationId":"update_visit_status_ed_visits__visit_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"visit_id","in":"path","required":true,"schema":{"type":"string","title":"Visit Id"}},{"name":"new_status","in":"query","required":true,"schema":{"$ref":"#/components/schemas/EDPatientStatus"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Visit Status Ed Visits  Visit Id  Status Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/throughput":{"get":{"tags":["ed-operations"],"summary":"Ed Throughput Dashboard","description":"Aggregate ED throughput metrics (door-to-triage, door-to-provider, LWBS rate).","operationId":"ed_throughput_dashboard_ed_throughput_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ed Throughput Dashboard Ed Throughput Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/diversion":{"put":{"tags":["ed-operations"],"summary":"Update Diversion Status","description":"Update ED diversion / ambulance bypass status and notify regional NEMSIS.","operationId":"update_diversion_status_ed_diversion_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiversionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Diversion Status Ed Diversion Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ed-operations"],"summary":"Get Diversion Status","description":"Current ED diversion status.","operationId":"get_diversion_status_ed_diversion_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Diversion Status Ed Diversion Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/beds":{"get":{"tags":["ed-operations"],"summary":"Ed Bed Map","description":"Real-time ED bed map.","operationId":"ed_bed_map_ed_beds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ed Bed Map Ed Beds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/beds/{room}":{"patch":{"tags":["ed-operations"],"summary":"Update Bed","description":"Update ED bed status (admit, discharge, clean).","operationId":"update_bed_ed_beds__room__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"room","in":"path","required":true,"schema":{"type":"string","title":"Room"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BedTrackingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Bed Ed Beds  Room  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/mse":{"post":{"tags":["ed-operations"],"summary":"Create Mse","description":"Record a Medical Screening Examination (EMTALA §489.24).","operationId":"create_mse_ed_mse_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MSERecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Mse Ed Mse Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/mse/{mse_id}/outcome":{"patch":{"tags":["ed-operations"],"summary":"Update Mse Outcome","description":"Update MSE outcome after ancillary results are available.","operationId":"update_mse_outcome_ed_mse__mse_id__outcome_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mse_id","in":"path","required":true,"schema":{"type":"string","title":"Mse Id"}},{"name":"outcome","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MSEOutcome"}},{"name":"emergency_condition_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Condition Description"}},{"name":"stabilisation_provided","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Stabilisation Provided"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Mse Outcome Ed Mse  Mse Id  Outcome Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/mse/{visit_id}":{"get":{"tags":["ed-operations"],"summary":"Get Mse For Visit","description":"Retrieve all MSE records for an ED visit.","operationId":"get_mse_for_visit_ed_mse__visit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"visit_id","in":"path","required":true,"schema":{"type":"string","title":"Visit Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Mse For Visit Ed Mse  Visit Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/emtala":{"post":{"tags":["ed-operations"],"summary":"Create Emtala Log","description":"Create an EMTALA transfer log entry (CMS CoP §489.20(r)).","operationId":"create_emtala_log_ed_emtala_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EMTALALog"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Emtala Log Ed Emtala Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ed-operations"],"summary":"List Emtala Log","description":"List EMTALA transfer log entries (supports mandatory 5-year retention query).","operationId":"list_emtala_log_ed_emtala_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"visit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visit Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Emtala Log Ed Emtala Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/emtala/{log_id}/status":{"patch":{"tags":["ed-operations"],"summary":"Update Emtala Status","description":"Update EMTALA transfer status (accepted, in-transit, completed).","operationId":"update_emtala_status_ed_emtala__log_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","title":"Log Id"}},{"name":"transfer_status","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TransferStatus"}},{"name":"completed_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Emtala Status Ed Emtala  Log Id  Status Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/transfers":{"post":{"tags":["ed-operations"],"summary":"Create Transfer Request","description":"Initiate an inbound or outbound transfer request via the transfer center.","operationId":"create_transfer_request_ed_transfers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Transfer Request Ed Transfers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ed-operations"],"summary":"List Transfer Requests","description":"List transfer center requests with optional direction/status filters.","operationId":"list_transfer_requests_ed_transfers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"}},{"name":"transfer_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TransferStatus"},{"type":"null"}],"title":"Transfer Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Transfer Requests Ed Transfers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/transfers/{request_id}":{"patch":{"tags":["ed-operations"],"summary":"Update Transfer Request","description":"Update transfer center request fields (bed, transport, acceptance).","operationId":"update_transfer_request_ed_transfers__request_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"transfer_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TransferStatus"},{"type":"null"}],"title":"Transfer Status"}},{"name":"bed_confirmed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bed Confirmed"}},{"name":"transport_arranged","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Transport Arranged"}},{"name":"accepting_physician","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepting Physician"}},{"name":"notes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Transfer Request Ed Transfers  Request Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/dsi/alerts":{"post":{"tags":["ed-operations"],"summary":"Create Ed Dsi Alert","description":"Create an ED-specific decision support intervention alert.","operationId":"create_ed_dsi_alert_ed_dsi_alerts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EDDSIAlert"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Ed Dsi Alert Ed Dsi Alerts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ed-operations"],"summary":"List Ed Dsi Alerts","description":"List active ED DSI alerts; filter by visit, category, or acknowledgement state.","operationId":"list_ed_dsi_alerts_ed_dsi_alerts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"visit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visit Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EDDSICategory"},{"type":"null"}],"title":"Category"}},{"name":"unacknowledged_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unacknowledged Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ed Dsi Alerts Ed Dsi Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ed/dsi/alerts/{alert_id}/acknowledge":{"patch":{"tags":["ed-operations"],"summary":"Acknowledge Ed Dsi Alert","description":"Acknowledge or override an ED DSI alert (satisfies ONC §170.315(b)(11) tracking).","operationId":"acknowledge_ed_dsi_alert_ed_dsi_alerts__alert_id__acknowledge_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"override_reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Reason"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Acknowledge Ed Dsi Alert Ed Dsi Alerts  Alert Id  Acknowledge Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/admissions":{"post":{"tags":["icu-critical-care"],"summary":"Admit To Icu","description":"Admit patient to ICU, allocate bed.","operationId":"admit_to_icu_icu_admissions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ICUAdmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admit To Icu Icu Admissions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["icu-critical-care"],"summary":"List Icu Census","description":"ICU census board — optionally filtered by ICU type.","operationId":"list_icu_census_icu_admissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"icu_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ICUType"},{"type":"null"}],"title":"Icu Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Icu Census Icu Admissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/admissions/{admission_id}":{"get":{"tags":["icu-critical-care"],"summary":"Get Admission","description":"Retrieve a single ICU admission record.","operationId":"get_admission_icu_admissions__admission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Admission Icu Admissions  Admission Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/admissions/{admission_id}/ventilator":{"post":{"tags":["icu-critical-care"],"summary":"Record Vent Settings","description":"Record a ventilator settings change (lung-protective protocol).","operationId":"record_vent_settings_icu_admissions__admission_id__ventilator_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VentilatorSettings"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Vent Settings Icu Admissions  Admission Id  Ventilator Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["icu-critical-care"],"summary":"Get Vent History","description":"Retrieve full ventilator settings history for an admission.","operationId":"get_vent_history_icu_admissions__admission_id__ventilator_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Vent History Icu Admissions  Admission Id  Ventilator Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/admissions/{admission_id}/ventilator/weaning":{"patch":{"tags":["icu-critical-care"],"summary":"Update Weaning Stage","description":"Advance or update the ventilator weaning stage (SBT workflow).","operationId":"update_weaning_stage_icu_admissions__admission_id__ventilator_weaning_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VentWeaningUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Weaning Stage Icu Admissions  Admission Id  Ventilator Weaning Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/admissions/{admission_id}/sofa":{"post":{"tags":["icu-critical-care"],"summary":"Record Sofa","description":"Record SOFA score for mortality risk tracking.","operationId":"record_sofa_icu_admissions__admission_id__sofa_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SOFAScore"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Sofa Icu Admissions  Admission Id  Sofa Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["icu-critical-care"],"summary":"Get Sofa Trend","description":"Return all SOFA scores with trending delta for sepsis deterioration tracking.","operationId":"get_sofa_trend_icu_admissions__admission_id__sofa_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sofa Trend Icu Admissions  Admission Id  Sofa Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/admissions/{admission_id}/abcdef":{"post":{"tags":["icu-critical-care"],"summary":"Record Abcdef Bundle","description":"Record daily ABCDEF bundle compliance.","operationId":"record_abcdef_bundle_icu_admissions__admission_id__abcdef_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABCDEFBundle"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Abcdef Bundle Icu Admissions  Admission Id  Abcdef Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/bundle-compliance":{"get":{"tags":["icu-critical-care"],"summary":"Bundle Compliance Summary","description":"Aggregate ABCDEF bundle compliance rates across ICU.","operationId":"bundle_compliance_summary_icu_bundle_compliance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bundle Compliance Summary Icu Bundle Compliance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/admissions/{admission_id}/sepsis/screening":{"post":{"tags":["icu-critical-care"],"summary":"Record Sepsis Screening","description":"Record qSOFA/Sepsis-3 screening. Auto-derives qSOFA score and sepsis alert status.","operationId":"record_sepsis_screening_icu_admissions__admission_id__sepsis_screening_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SepsisScreening"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Sepsis Screening Icu Admissions  Admission Id  Sepsis Screening Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["icu-critical-care"],"summary":"Get Sepsis Screenings","description":"Retrieve all sepsis screening records for an admission.","operationId":"get_sepsis_screenings_icu_admissions__admission_id__sepsis_screening_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sepsis Screenings Icu Admissions  Admission Id  Sepsis Screening Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/admissions/{admission_id}/sepsis/bundle":{"post":{"tags":["icu-critical-care"],"summary":"Initiate Sepsis Bundle","description":"Initiate and record SSC 1h/3h/6h sepsis bundle compliance.","operationId":"initiate_sepsis_bundle_icu_admissions__admission_id__sepsis_bundle_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SepsisBundleRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Initiate Sepsis Bundle Icu Admissions  Admission Id  Sepsis Bundle Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/admissions/{admission_id}/sepsis/bundle/{bundle_id}":{"patch":{"tags":["icu-critical-care"],"summary":"Update Sepsis Bundle","description":"Update sepsis bundle completion status.","operationId":"update_sepsis_bundle_icu_admissions__admission_id__sepsis_bundle__bundle_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Update"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Sepsis Bundle Icu Admissions  Admission Id  Sepsis Bundle  Bundle Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/dsi/alerts":{"post":{"tags":["icu-critical-care"],"summary":"Create Icu Dsi Alert","description":"Create an ICU-specific DSI alert (sepsis early warning, ARDS, delirium, etc.).","operationId":"create_icu_dsi_alert_icu_dsi_alerts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ICUDSIAlert"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Icu Dsi Alert Icu Dsi Alerts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["icu-critical-care"],"summary":"List Icu Dsi Alerts","description":"List ICU DSI alerts with optional filters.","operationId":"list_icu_dsi_alerts_icu_dsi_alerts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admission Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ICUDSICategory"},{"type":"null"}],"title":"Category"}},{"name":"unacknowledged_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unacknowledged Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Icu Dsi Alerts Icu Dsi Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/dsi/alerts/{alert_id}/acknowledge":{"patch":{"tags":["icu-critical-care"],"summary":"Acknowledge Icu Dsi Alert","description":"Acknowledge an ICU DSI alert.","operationId":"acknowledge_icu_dsi_alert_icu_dsi_alerts__alert_id__acknowledge_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ICUDSIAcknowledge"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Acknowledge Icu Dsi Alert Icu Dsi Alerts  Alert Id  Acknowledge Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/alerts":{"post":{"tags":["icu-critical-care"],"summary":"Raise Critical Alert","description":"Raise a critical value alert (escalates to assigned nurse/provider).","operationId":"raise_critical_alert_icu_alerts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriticalValueAlert"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Raise Critical Alert Icu Alerts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icu/alerts/{alert_id}/acknowledge":{"patch":{"tags":["icu-critical-care"],"summary":"Acknowledge Alert","description":"Acknowledge a critical value alert.","operationId":"acknowledge_alert_icu_alerts__alert_id__acknowledge_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Acknowledge Alert Icu Alerts  Alert Id  Acknowledge Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/antepartum":{"post":{"tags":["ob-labor-delivery"],"summary":"Create Antepartum Record","description":"Create antepartum risk record.","operationId":"create_antepartum_record_ob_antepartum_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AntepartumRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Antepartum Record Ob Antepartum Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/antepartum/{record_id}":{"get":{"tags":["ob-labor-delivery"],"summary":"Get Antepartum Record","description":"Retrieve antepartum risk record.","operationId":"get_antepartum_record_ob_antepartum__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Antepartum Record Ob Antepartum  Record Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/labor":{"post":{"tags":["ob-labor-delivery"],"summary":"Start Labor Encounter","description":"Open intrapartum encounter, begin partograph.","operationId":"start_labor_encounter_ob_labor_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaborProgress"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Labor Encounter Ob Labor Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/labor/{encounter_id}":{"patch":{"tags":["ob-labor-delivery"],"summary":"Update Labor Progress","description":"Update partograph data point.","operationId":"update_labor_progress_ob_labor__encounter_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaborProgress"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Labor Progress Ob Labor  Encounter Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ob-labor-delivery"],"summary":"Get Labor Encounter","description":"Retrieve current partograph state for an encounter.","operationId":"get_labor_encounter_ob_labor__encounter_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Labor Encounter Ob Labor  Encounter Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/deliveries":{"post":{"tags":["ob-labor-delivery"],"summary":"Record Delivery","description":"Record birth event with APGAR scores and delivery details.","operationId":"record_delivery_ob_deliveries_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Delivery Ob Deliveries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ob-labor-delivery"],"summary":"List Deliveries","description":"List deliveries for L&D census, optionally filtered by patient.","operationId":"list_deliveries_ob_deliveries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Deliveries Ob Deliveries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/deliveries/{delivery_id}":{"get":{"tags":["ob-labor-delivery"],"summary":"Get Delivery","description":"Retrieve a delivery record.","operationId":"get_delivery_ob_deliveries__delivery_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Delivery Ob Deliveries  Delivery Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/postpartum":{"post":{"tags":["ob-labor-delivery"],"summary":"Create Postpartum Assessment","description":"Record postpartum nursing assessment including Edinburgh score.","operationId":"create_postpartum_assessment_ob_postpartum_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostpartumAssessment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Postpartum Assessment Ob Postpartum Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/postpartum/{assessment_id}":{"get":{"tags":["ob-labor-delivery"],"summary":"Get Postpartum Assessment","description":"Retrieve postpartum assessment.","operationId":"get_postpartum_assessment_ob_postpartum__assessment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"string","title":"Assessment Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Postpartum Assessment Ob Postpartum  Assessment Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/couplet":{"post":{"tags":["ob-labor-delivery"],"summary":"Create Couplet","description":"Establish mother-baby couplet for MBU rooming-in care.","operationId":"create_couplet_ob_couplet_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MotherBabyCouplet"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Couplet Ob Couplet Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/couplet/{couplet_id}":{"get":{"tags":["ob-labor-delivery"],"summary":"Get Couplet","description":"Retrieve mother-baby couplet record.","operationId":"get_couplet_ob_couplet__couplet_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"couplet_id","in":"path","required":true,"schema":{"type":"string","title":"Couplet Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Couplet Ob Couplet  Couplet Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/couplet/{couplet_id}/feeding":{"patch":{"tags":["ob-labor-delivery"],"summary":"Update Couplet Feeding","description":"Update feeding method and lactation support for couplet.","operationId":"update_couplet_feeding_ob_couplet__couplet_id__feeding_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"couplet_id","in":"path","required":true,"schema":{"type":"string","title":"Couplet Id"}},{"name":"feeding_method","in":"query","required":true,"schema":{"$ref":"#/components/schemas/FeedingMethod"}},{"name":"lactation_consult_requested","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Lactation Consult Requested"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Couplet Feeding Ob Couplet  Couplet Id  Feeding Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/neonatal/screening":{"post":{"tags":["ob-labor-delivery"],"summary":"Record Neonatal Screening","description":"Record newborn screening (NBS, CCHD, hearing) and required interventions.","operationId":"record_neonatal_screening_ob_neonatal_screening_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeonatalScreening"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Neonatal Screening Ob Neonatal Screening Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/neonatal/screening/{screening_id}":{"get":{"tags":["ob-labor-delivery"],"summary":"Get Neonatal Screening","description":"Retrieve newborn screening record.","operationId":"get_neonatal_screening_ob_neonatal_screening__screening_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"screening_id","in":"path","required":true,"schema":{"type":"string","title":"Screening Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Neonatal Screening Ob Neonatal Screening  Screening Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/mewt":{"post":{"tags":["ob-labor-delivery"],"summary":"Trigger Maternal Early Warning","description":"Fire Maternal Early Warning Trigger (MEWT) alert per Joint Commission NPSG 15.01.01.","operationId":"trigger_maternal_early_warning_ob_mewt_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaternalEarlyWarning"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trigger Maternal Early Warning Ob Mewt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ob-labor-delivery"],"summary":"List Mewt Triggers","description":"List MEWT triggers, optionally filtered by patient or active status.","operationId":"list_mewt_triggers_ob_mewt_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Mewt Triggers Ob Mewt Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/mewt/{trigger_id}/respond":{"patch":{"tags":["ob-labor-delivery"],"summary":"Respond To Mewt","description":"Record clinician response to MEWT alert.","operationId":"respond_to_mewt_ob_mewt__trigger_id__respond_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"responded_by","in":"query","required":true,"schema":{"type":"string","title":"Responded By"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Respond To Mewt Ob Mewt  Trigger Id  Respond Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/nicu/admissions":{"post":{"tags":["ob-labor-delivery"],"summary":"Admit To Nicu","description":"Admit newborn to NICU with level of care designation.","operationId":"admit_to_nicu_ob_nicu_admissions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NICUAdmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admit To Nicu Ob Nicu Admissions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ob-labor-delivery"],"summary":"List Nicu Census","description":"List NICU census board.","operationId":"list_nicu_census_ob_nicu_admissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Nicu Census Ob Nicu Admissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/nicu/admissions/{nicu_admission_id}":{"get":{"tags":["ob-labor-delivery"],"summary":"Get Nicu Admission","description":"Retrieve NICU admission record.","operationId":"get_nicu_admission_ob_nicu_admissions__nicu_admission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"nicu_admission_id","in":"path","required":true,"schema":{"type":"string","title":"Nicu Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Nicu Admission Ob Nicu Admissions  Nicu Admission Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/nicu/admissions/{nicu_admission_id}/vitals":{"post":{"tags":["ob-labor-delivery"],"summary":"Record Nicu Vitals","description":"Record NICU vital signs, glucose, weight, and feeding for a neonate.","operationId":"record_nicu_vitals_ob_nicu_admissions__nicu_admission_id__vitals_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"nicu_admission_id","in":"path","required":true,"schema":{"type":"string","title":"Nicu Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NICUVitalSigns"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Nicu Vitals Ob Nicu Admissions  Nicu Admission Id  Vitals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ob-labor-delivery"],"summary":"Get Nicu Vitals","description":"Retrieve NICU vital signs history for a neonate.","operationId":"get_nicu_vitals_ob_nicu_admissions__nicu_admission_id__vitals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"nicu_admission_id","in":"path","required":true,"schema":{"type":"string","title":"Nicu Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Nicu Vitals Ob Nicu Admissions  Nicu Admission Id  Vitals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ob/nicu/admissions/{nicu_admission_id}/discharge":{"post":{"tags":["ob-labor-delivery"],"summary":"Discharge From Nicu","description":"Record NICU discharge including car seat test and VON registry submission.","operationId":"discharge_from_nicu_ob_nicu_admissions__nicu_admission_id__discharge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"nicu_admission_id","in":"path","required":true,"schema":{"type":"string","title":"Nicu Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NICUDischarge"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Discharge From Nicu Ob Nicu Admissions  Nicu Admission Id  Discharge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/regimens":{"post":{"tags":["oncology-infusion"],"summary":"Add Regimen","description":"Add a chemotherapy regimen to the institutional library.","operationId":"add_regimen_oncology_regimens_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegimenLibraryEntry"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Regimen Oncology Regimens Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["oncology-infusion"],"summary":"List Regimens","description":"List available regimens, optionally filtered by indication.","operationId":"list_regimens_oncology_regimens_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"indication","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indication"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Regimens Oncology Regimens Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/regimens/{regimen_id}":{"get":{"tags":["oncology-infusion"],"summary":"Get Regimen","operationId":"get_regimen_oncology_regimens__regimen_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"regimen_id","in":"path","required":true,"schema":{"type":"string","title":"Regimen Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Regimen Oncology Regimens  Regimen Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/orders":{"post":{"tags":["oncology-infusion"],"summary":"Create Chemo Order","description":"Create a chemotherapy order; enforces 5-Right safety verification.","operationId":"create_chemo_order_oncology_orders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChemotherapyOrder"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Chemo Order Oncology Orders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["oncology-infusion"],"summary":"List Orders","operationId":"list_orders_oncology_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"regimen","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Regimen"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Orders Oncology Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/orders/{order_id}":{"get":{"tags":["oncology-infusion"],"summary":"Get Order","operationId":"get_order_oncology_orders__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Order Oncology Orders  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/orders/{order_id}/pharmacist-verify":{"patch":{"tags":["oncology-infusion"],"summary":"Pharmacist Verify Order","description":"Pharmacist co-signs/verifies the chemotherapy order.","operationId":"pharmacist_verify_order_oncology_orders__order_id__pharmacist_verify_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pharmacist Verify Order Oncology Orders  Order Id  Pharmacist Verify Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/orders/{order_id}/hold":{"patch":{"tags":["oncology-infusion"],"summary":"Hold Order","description":"Place a chemotherapy order on clinical hold.","operationId":"hold_order_oncology_orders__order_id__hold_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"reason","in":"query","required":true,"schema":{"type":"string","title":"Reason"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hold Order Oncology Orders  Order Id  Hold Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/orders/{order_id}/dose-check":{"post":{"tags":["oncology-infusion"],"summary":"Run Dose Check","description":"Re-run dose safety checks for an existing order (e.g. after weight update).","operationId":"run_dose_check_oncology_orders__order_id__dose_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Dose Check Oncology Orders  Order Id  Dose Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/cumulative-doses":{"post":{"tags":["oncology-infusion"],"summary":"Record Cumulative Dose","description":"Record or update cumulative dose for high-risk agent tracking.","operationId":"record_cumulative_dose_oncology_cumulative_doses_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CumulativeDoseRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Cumulative Dose Oncology Cumulative Doses Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["oncology-infusion"],"summary":"Get Cumulative Doses","description":"Return cumulative dose totals per drug for a patient.","operationId":"get_cumulative_doses_oncology_cumulative_doses_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Cumulative Doses Oncology Cumulative Doses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/chairs":{"post":{"tags":["oncology-infusion"],"summary":"Add Chair","description":"Register an infusion chair in the unit.","operationId":"add_chair_oncology_chairs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfusionChair"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Chair Oncology Chairs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["oncology-infusion"],"summary":"List Chairs","operationId":"list_chairs_oncology_chairs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"available_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Available Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Chairs Oncology Chairs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/sessions":{"post":{"tags":["oncology-infusion"],"summary":"Start Infusion Session","description":"Schedule or start an infusion session for an approved chemo order.","operationId":"start_infusion_session_oncology_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfusionSession"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Infusion Session Oncology Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/sessions/{session_id}/complete":{"patch":{"tags":["oncology-infusion"],"summary":"Complete Session","operationId":"complete_session_oncology_sessions__session_id__complete_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Session Oncology Sessions  Session Id  Complete Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/sessions/{session_id}/abort":{"patch":{"tags":["oncology-infusion"],"summary":"Abort Session","description":"Abort an in-progress infusion (e.g. severe reaction).","operationId":"abort_session_oncology_sessions__session_id__abort_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"reason","in":"query","required":true,"schema":{"type":"string","title":"Reason"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Abort Session Oncology Sessions  Session Id  Abort Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/sessions/{session_id}":{"get":{"tags":["oncology-infusion"],"summary":"Get Session","operationId":"get_session_oncology_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Session Oncology Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/adverse-events":{"post":{"tags":["oncology-infusion"],"summary":"Report Adverse Event","description":"Record CTCAE adverse event; auto-flags hold requirement for G3+.","operationId":"report_adverse_event_oncology_adverse_events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__oncology_infusion__AdverseEventReport"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Adverse Event Oncology Adverse Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["oncology-infusion"],"summary":"List Adverse Events","operationId":"list_adverse_events_oncology_adverse_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"min_grade","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Min Grade"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Adverse Events Oncology Adverse Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/rems":{"post":{"tags":["oncology-infusion"],"summary":"Enroll Rems","description":"Enrol patient in REMS programme.","operationId":"enroll_rems_oncology_rems_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/REMSEnrollment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enroll Rems Oncology Rems Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["oncology-infusion"],"summary":"List Rems","operationId":"list_rems_oncology_rems_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Rems Oncology Rems Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/rems/{enrollment_id}":{"get":{"tags":["oncology-infusion"],"summary":"Get Rems Enrollment","operationId":"get_rems_enrollment_oncology_rems__enrollment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Rems Enrollment Oncology Rems  Enrollment Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/tumor-board":{"post":{"tags":["oncology-infusion"],"summary":"Submit Tumor Board Case","description":"Present case to multidisciplinary tumor board.","operationId":"submit_tumor_board_case_oncology_tumor_board_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TumorBoardCase"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Tumor Board Case Oncology Tumor Board Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["oncology-infusion"],"summary":"List Tumor Board Cases","operationId":"list_tumor_board_cases_oncology_tumor_board_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Tumor Board Cases Oncology Tumor Board Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/tumor-board/{case_id}/decision":{"patch":{"tags":["oncology-infusion"],"summary":"Record Tumor Board Decision","description":"Record the tumor board decision for a case.","operationId":"record_tumor_board_decision_oncology_tumor_board__case_id__decision_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"decision","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TumorBoardDecision"}},{"name":"recommended_regimen","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Regimen"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Tumor Board Decision Oncology Tumor Board  Case Id  Decision Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/care-plans":{"post":{"tags":["oncology-infusion"],"summary":"Create Care Plan","description":"Create an oncology care plan tracking total planned cycles.","operationId":"create_care_plan_oncology_care_plans_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarePlanEntry"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Care Plan Oncology Care Plans Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["oncology-infusion"],"summary":"List Care Plans","operationId":"list_care_plans_oncology_care_plans_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Care Plans Oncology Care Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/care-plans/{plan_id}/advance-cycle":{"patch":{"tags":["oncology-infusion"],"summary":"Advance Care Plan Cycle","description":"Mark a cycle as completed and advance to the next.","operationId":"advance_care_plan_cycle_oncology_care_plans__plan_id__advance_cycle_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Advance Care Plan Cycle Oncology Care Plans  Plan Id  Advance Cycle Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/care-plans/{plan_id}/hold":{"patch":{"tags":["oncology-infusion"],"summary":"Hold Care Plan","operationId":"hold_care_plan_oncology_care_plans__plan_id__hold_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"reason","in":"query","required":true,"schema":{"type":"string","title":"Reason"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hold Care Plan Oncology Care Plans  Plan Id  Hold Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oncology/care-plans/{plan_id}":{"get":{"tags":["oncology-infusion"],"summary":"Get Care Plan","operationId":"get_care_plan_oncology_care_plans__plan_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Care Plan Oncology Care Plans  Plan Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/type-screen":{"post":{"tags":["blood-bank"],"summary":"Record Type And Screen","description":"Record ABO/Rh type and antibody screen for a patient.","operationId":"record_type_and_screen_blood_bank_type_screen_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypeAndScreen"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Type And Screen Blood Bank Type Screen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blood-bank"],"summary":"List Type And Screen","operationId":"list_type_and_screen_blood_bank_type_screen_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Type And Screen Blood Bank Type Screen Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/type-screen/{ts_id}":{"get":{"tags":["blood-bank"],"summary":"Get Type And Screen","operationId":"get_type_and_screen_blood_bank_type_screen__ts_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ts_id","in":"path","required":true,"schema":{"type":"string","title":"Ts Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Type And Screen Blood Bank Type Screen  Ts Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/crossmatch":{"post":{"tags":["blood-bank"],"summary":"Record Crossmatch","description":"Record crossmatch result; auto-checks ABO compatibility.","operationId":"record_crossmatch_blood_bank_crossmatch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossMatch"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Crossmatch Blood Bank Crossmatch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blood-bank"],"summary":"List Crossmatches","operationId":"list_crossmatches_blood_bank_crossmatch_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"ts_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ts Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Crossmatches Blood Bank Crossmatch Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/crossmatch/{xm_id}":{"get":{"tags":["blood-bank"],"summary":"Get Crossmatch","operationId":"get_crossmatch_blood_bank_crossmatch__xm_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"xm_id","in":"path","required":true,"schema":{"type":"string","title":"Xm Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Crossmatch Blood Bank Crossmatch  Xm Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/orders":{"post":{"tags":["blood-bank"],"summary":"Create Transfusion Order","description":"Create a blood product transfusion order; T&S must exist first.","operationId":"create_transfusion_order_blood_bank_orders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransfusionOrder"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Transfusion Order Blood Bank Orders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blood-bank"],"summary":"List Transfusion Orders","operationId":"list_transfusion_orders_blood_bank_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BloodProduct"},{"type":"null"}],"title":"Product"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Transfusion Orders Blood Bank Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/orders/{order_id}":{"get":{"tags":["blood-bank"],"summary":"Get Transfusion Order","operationId":"get_transfusion_order_blood_bank_orders__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Transfusion Order Blood Bank Orders  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/verify-bedside":{"post":{"tags":["blood-bank"],"summary":"Bedside Verification","description":"Two-nurse bedside ID + unit label + expiry verification before transfusion.","operationId":"bedside_verification_blood_bank_verify_bedside_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BedsideVerification"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bedside Verification Blood Bank Verify Bedside Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/verify-bedside/{verification_id}":{"get":{"tags":["blood-bank"],"summary":"Get Bedside Verification","operationId":"get_bedside_verification_blood_bank_verify_bedside__verification_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"verification_id","in":"path","required":true,"schema":{"type":"string","title":"Verification Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Bedside Verification Blood Bank Verify Bedside  Verification Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/administrations":{"post":{"tags":["blood-bank"],"summary":"Start Transfusion","description":"Begin blood product administration; bedside verification must exist.","operationId":"start_transfusion_blood_bank_administrations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransfusionAdministration"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Transfusion Blood Bank Administrations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blood-bank"],"summary":"List Administrations","operationId":"list_administrations_blood_bank_administrations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Administrations Blood Bank Administrations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/administrations/{admin_id}/complete":{"patch":{"tags":["blood-bank"],"summary":"Complete Transfusion","description":"Record completion of transfusion with optional volume and post vitals.","operationId":"complete_transfusion_blood_bank_administrations__admin_id__complete_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admin_id","in":"path","required":true,"schema":{"type":"string","title":"Admin Id"}},{"name":"volume_ml","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume Ml"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Transfusion Blood Bank Administrations  Admin Id  Complete Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/administrations/{admin_id}":{"get":{"tags":["blood-bank"],"summary":"Get Transfusion Administration","operationId":"get_transfusion_administration_blood_bank_administrations__admin_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admin_id","in":"path","required":true,"schema":{"type":"string","title":"Admin Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Transfusion Administration Blood Bank Administrations  Admin Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/reactions":{"post":{"tags":["blood-bank"],"summary":"Report Transfusion Reaction","description":"Report transfusion reaction — triggers blood bank workup and FDA haemovigilance flag.","operationId":"report_transfusion_reaction_blood_bank_reactions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransfusionReaction"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Transfusion Reaction Blood Bank Reactions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blood-bank"],"summary":"List Reactions","operationId":"list_reactions_blood_bank_reactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"reaction_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TransfusionReactionType"},{"type":"null"}],"title":"Reaction Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Reactions Blood Bank Reactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/inventory":{"post":{"tags":["blood-bank"],"summary":"Add Inventory Unit","description":"Register a blood unit received from the blood supplier.","operationId":"add_inventory_unit_blood_bank_inventory_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodUnitInventory"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Inventory Unit Blood Bank Inventory Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blood-bank"],"summary":"List Inventory","operationId":"list_inventory_blood_bank_inventory_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BloodProduct"},{"type":"null"}],"title":"Product"}},{"name":"abo","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ABO"},{"type":"null"}],"title":"Abo"}},{"name":"available_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Available Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Inventory Blood Bank Inventory Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/inventory/{unit_isbt}":{"get":{"tags":["blood-bank"],"summary":"Get Inventory Unit","operationId":"get_inventory_unit_blood_bank_inventory__unit_isbt__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_isbt","in":"path","required":true,"schema":{"type":"string","title":"Unit Isbt"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Inventory Unit Blood Bank Inventory  Unit Isbt  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/mtp":{"post":{"tags":["blood-bank"],"summary":"Activate Mtp","description":"Activate massive transfusion protocol for a patient in haemorrhagic shock.","operationId":"activate_mtp_blood_bank_mtp_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MTPActivation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Activate Mtp Blood Bank Mtp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["blood-bank"],"summary":"List Mtp Activations","operationId":"list_mtp_activations_blood_bank_mtp_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Mtp Activations Blood Bank Mtp Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/mtp/{mtp_id}/deactivate":{"patch":{"tags":["blood-bank"],"summary":"Deactivate Mtp","description":"Deactivate an active MTP when haemorrhage is controlled.","operationId":"deactivate_mtp_blood_bank_mtp__mtp_id__deactivate_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mtp_id","in":"path","required":true,"schema":{"type":"string","title":"Mtp Id"}},{"name":"notes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Deactivate Mtp Blood Bank Mtp  Mtp Id  Deactivate Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/mtp/{mtp_id}/issue":{"patch":{"tags":["blood-bank"],"summary":"Record Mtp Issue","description":"Record blood products issued under an active MTP.","operationId":"record_mtp_issue_blood_bank_mtp__mtp_id__issue_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mtp_id","in":"path","required":true,"schema":{"type":"string","title":"Mtp Id"}},{"name":"prbcs","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Prbcs"}},{"name":"ffp","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Ffp"}},{"name":"platelets","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Platelets"}},{"name":"cryo","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Cryo"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Mtp Issue Blood Bank Mtp  Mtp Id  Issue Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blood-bank/mtp/{mtp_id}":{"get":{"tags":["blood-bank"],"summary":"Get Mtp Activation","operationId":"get_mtp_activation_blood_bank_mtp__mtp_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mtp_id","in":"path","required":true,"schema":{"type":"string","title":"Mtp Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Mtp Activation Blood Bank Mtp  Mtp Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/hai":{"post":{"tags":["infection-prevention"],"summary":"Report Hai","description":"Report a healthcare-associated infection event.","operationId":"report_hai_infection_prevention_hai_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HAICase"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Hai Infection Prevention Hai Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["infection-prevention"],"summary":"List Hai Cases","operationId":"list_hai_cases_infection_prevention_hai_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"hai_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/HAIType"},{"type":"null"}],"title":"Hai Type"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"reported_to_nhsn","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reported To Nhsn"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Hai Cases Infection Prevention Hai Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/hai/{case_id}":{"get":{"tags":["infection-prevention"],"summary":"Get Hai Case","operationId":"get_hai_case_infection_prevention_hai__case_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Hai Case Infection Prevention Hai  Case Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/nhsn/submit":{"post":{"tags":["infection-prevention"],"summary":"Submit Nhsn Report","description":"Submit HAI event to NHSN for CDC reporting.","operationId":"submit_nhsn_report_infection_prevention_nhsn_submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NHSNSubmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Nhsn Report Infection Prevention Nhsn Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/nhsn/{submission_id}":{"get":{"tags":["infection-prevention"],"summary":"Get Nhsn Submission","operationId":"get_nhsn_submission_infection_prevention_nhsn__submission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","title":"Submission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Nhsn Submission Infection Prevention Nhsn  Submission Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/nhsn/{submission_id}/accept":{"patch":{"tags":["infection-prevention"],"summary":"Accept Nhsn Submission","description":"Mark NHSN submission as accepted with CDC-assigned event number.","operationId":"accept_nhsn_submission_infection_prevention_nhsn__submission_id__accept_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","title":"Submission Id"}},{"name":"nhsn_event_number","in":"query","required":true,"schema":{"type":"string","title":"Nhsn Event Number"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Nhsn Submission Infection Prevention Nhsn  Submission Id  Accept Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/nhsn/{submission_id}/reject":{"patch":{"tags":["infection-prevention"],"summary":"Reject Nhsn Submission","description":"Record NHSN rejection with reason for resubmission.","operationId":"reject_nhsn_submission_infection_prevention_nhsn__submission_id__reject_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"string","title":"Submission Id"}},{"name":"reason","in":"query","required":true,"schema":{"type":"string","title":"Reason"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Nhsn Submission Infection Prevention Nhsn  Submission Id  Reject Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/nhsn":{"get":{"tags":["infection-prevention"],"summary":"List Nhsn Submissions","operationId":"list_nhsn_submissions_infection_prevention_nhsn_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"reporting_period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reporting Period"}},{"name":"submission_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/NHSNSubmissionStatus"},{"type":"null"}],"title":"Submission Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Nhsn Submissions Infection Prevention Nhsn Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/isolation":{"post":{"tags":["infection-prevention"],"summary":"Place Isolation Order","description":"Place isolation precaution order for a patient.","operationId":"place_isolation_order_infection_prevention_isolation_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsolationOrder"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Place Isolation Order Infection Prevention Isolation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["infection-prevention"],"summary":"List Isolation Orders","operationId":"list_isolation_orders_infection_prevention_isolation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"precaution_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/IsolationPrecaution"},{"type":"null"}],"title":"Precaution Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Isolation Orders Infection Prevention Isolation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/isolation/{order_id}":{"get":{"tags":["infection-prevention"],"summary":"Get Isolation Order","operationId":"get_isolation_order_infection_prevention_isolation__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Isolation Order Infection Prevention Isolation  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/isolation/{order_id}/signage":{"patch":{"tags":["infection-prevention"],"summary":"Confirm Isolation Signage","description":"Confirm isolation signage has been placed at room entrance.","operationId":"confirm_isolation_signage_infection_prevention_isolation__order_id__signage_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Isolation Signage Infection Prevention Isolation  Order Id  Signage Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/isolation/{order_id}/discontinue":{"patch":{"tags":["infection-prevention"],"summary":"Discontinue Isolation","description":"Discontinue an active isolation order.","operationId":"discontinue_isolation_infection_prevention_isolation__order_id__discontinue_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"discontinued_by","in":"query","required":true,"schema":{"type":"string","title":"Discontinued By"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Discontinue Isolation Infection Prevention Isolation  Order Id  Discontinue Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/ams-review":{"post":{"tags":["infection-prevention"],"summary":"Submit Ams Review","description":"Submit antimicrobial stewardship review recommendation.","operationId":"submit_ams_review_infection_prevention_ams_review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AntimicrobialStewardshipReview"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Ams Review Infection Prevention Ams Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["infection-prevention"],"summary":"List Ams Reviews","operationId":"list_ams_reviews_infection_prevention_ams_review_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"notified","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Notified"}},{"name":"antimicrobial_class","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AntimicrobialClass"},{"type":"null"}],"title":"Antimicrobial Class"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ams Reviews Infection Prevention Ams Review Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/ams-review/{review_id}":{"get":{"tags":["infection-prevention"],"summary":"Get Ams Review","operationId":"get_ams_review_infection_prevention_ams_review__review_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Ams Review Infection Prevention Ams Review  Review Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/ams-review/{review_id}/notify":{"patch":{"tags":["infection-prevention"],"summary":"Mark Prescriber Notified","description":"Record that prescriber was notified of AMS recommendation.","operationId":"mark_prescriber_notified_infection_prevention_ams_review__review_id__notify_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}},{"name":"prescriber_response","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prescriber Response"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Prescriber Notified Infection Prevention Ams Review  Review Id  Notify Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/outbreaks":{"post":{"tags":["infection-prevention"],"summary":"Open Outbreak","description":"Open outbreak investigation.","operationId":"open_outbreak_infection_prevention_outbreaks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutbreakInvestigation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open Outbreak Infection Prevention Outbreaks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["infection-prevention"],"summary":"List Outbreaks","operationId":"list_outbreaks_infection_prevention_outbreaks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OutbreakStatus"},{"type":"null"}],"title":"Status"}},{"name":"pathogen","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pathogen"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Outbreaks Infection Prevention Outbreaks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/outbreaks/{outbreak_id}":{"get":{"tags":["infection-prevention"],"summary":"Get Outbreak","operationId":"get_outbreak_infection_prevention_outbreaks__outbreak_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outbreak_id","in":"path","required":true,"schema":{"type":"string","title":"Outbreak Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Outbreak Infection Prevention Outbreaks  Outbreak Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/outbreaks/{outbreak_id}/status":{"patch":{"tags":["infection-prevention"],"summary":"Update Outbreak Status","operationId":"update_outbreak_status_infection_prevention_outbreaks__outbreak_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outbreak_id","in":"path","required":true,"schema":{"type":"string","title":"Outbreak Id"}},{"name":"new_status","in":"query","required":true,"schema":{"$ref":"#/components/schemas/OutbreakStatus"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Outbreak Status Infection Prevention Outbreaks  Outbreak Id  Status Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/outbreaks/{outbreak_id}/add-case":{"patch":{"tags":["infection-prevention"],"summary":"Add Case To Outbreak","description":"Link an HAI case to an active outbreak investigation.","operationId":"add_case_to_outbreak_infection_prevention_outbreaks__outbreak_id__add_case_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outbreak_id","in":"path","required":true,"schema":{"type":"string","title":"Outbreak Id"}},{"name":"case_id","in":"query","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Case To Outbreak Infection Prevention Outbreaks  Outbreak Id  Add Case Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/outbreaks/{outbreak_id}/control-measures":{"patch":{"tags":["infection-prevention"],"summary":"Add Control Measure","description":"Record a control measure applied to contain an outbreak.","operationId":"add_control_measure_infection_prevention_outbreaks__outbreak_id__control_measures_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outbreak_id","in":"path","required":true,"schema":{"type":"string","title":"Outbreak Id"}},{"name":"measure","in":"query","required":true,"schema":{"type":"string","title":"Measure"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Control Measure Infection Prevention Outbreaks  Outbreak Id  Control Measures Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/outbreaks/{outbreak_id}/public-health-report":{"patch":{"tags":["infection-prevention"],"summary":"Mark Public Health Reported","description":"Record that outbreak was reported to public health authorities.","operationId":"mark_public_health_reported_infection_prevention_outbreaks__outbreak_id__public_health_report_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outbreak_id","in":"path","required":true,"schema":{"type":"string","title":"Outbreak Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Public Health Reported Infection Prevention Outbreaks  Outbreak Id  Public Health Report Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/contact-traces":{"post":{"tags":["infection-prevention"],"summary":"Create Contact Trace","description":"Record an exposure contact for outbreak tracing.","operationId":"create_contact_trace_infection_prevention_contact_traces_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTrace"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Contact Trace Infection Prevention Contact Traces Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["infection-prevention"],"summary":"List Contact Traces","operationId":"list_contact_traces_infection_prevention_contact_traces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outbreak_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbreak Id"}},{"name":"notified","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Notified"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Contact Traces Infection Prevention Contact Traces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/contact-traces/{trace_id}/notify":{"patch":{"tags":["infection-prevention"],"summary":"Mark Contact Notified","operationId":"mark_contact_notified_infection_prevention_contact_traces__trace_id__notify_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","title":"Trace Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Contact Notified Infection Prevention Contact Traces  Trace Id  Notify Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/hand-hygiene":{"post":{"tags":["infection-prevention"],"summary":"Record Hh Audit","description":"Record hand hygiene compliance audit for a unit.","operationId":"record_hh_audit_infection_prevention_hand_hygiene_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandHygieneAudit"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Hh Audit Infection Prevention Hand Hygiene Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["infection-prevention"],"summary":"List Hh Audits","operationId":"list_hh_audits_infection_prevention_hand_hygiene_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Hh Audits Infection Prevention Hand Hygiene Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/env-rounds":{"post":{"tags":["infection-prevention"],"summary":"Record Env Round","description":"Record environmental rounding inspection results.","operationId":"record_env_round_infection_prevention_env_rounds_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentalRound"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Env Round Infection Prevention Env Rounds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["infection-prevention"],"summary":"List Env Rounds","operationId":"list_env_rounds_infection_prevention_env_rounds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"}},{"name":"deficiencies_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Deficiencies Only"}},{"name":"round_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EnvironmentalRoundType"},{"type":"null"}],"title":"Round Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Env Rounds Infection Prevention Env Rounds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infection-prevention/dashboard":{"get":{"tags":["infection-prevention"],"summary":"Infection Prevention Dashboard","description":"Aggregate IP&C metrics dashboard.","operationId":"infection_prevention_dashboard_infection_prevention_dashboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Infection Prevention Dashboard Infection Prevention Dashboard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/patients":{"post":{"tags":["dialysis-nephrology"],"summary":"Register Esrd Patient","description":"Register a patient in the ESRD nephrology registry.","operationId":"register_esrd_patient_dialysis_patients_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ESRDPatientRegistration"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Esrd Patient Dialysis Patients Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dialysis-nephrology"],"summary":"List Esrd Patients","operationId":"list_esrd_patients_dialysis_patients_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"modality","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DialysisModality"},{"type":"null"}],"title":"Modality"}},{"name":"esrd_cause","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ESRDCause"},{"type":"null"}],"title":"Esrd Cause"}},{"name":"ckd_stage","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ckd Stage"}},{"name":"transplant_waitlisted","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Transplant Waitlisted"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Esrd Patients Dialysis Patients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/patients/{patient_id}":{"get":{"tags":["dialysis-nephrology"],"summary":"Get Esrd Patient","operationId":"get_esrd_patient_dialysis_patients__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Esrd Patient Dialysis Patients  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/patients/{patient_id}/modality":{"patch":{"tags":["dialysis-nephrology"],"summary":"Update Patient Modality","description":"Update a patient's dialysis modality (e.g. IHD → HHD).","operationId":"update_patient_modality_dialysis_patients__patient_id__modality_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"new_modality","in":"query","required":true,"schema":{"$ref":"#/components/schemas/DialysisModality"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Patient Modality Dialysis Patients  Patient Id  Modality Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/prescriptions":{"post":{"tags":["dialysis-nephrology"],"summary":"Create Prescription","description":"Create dialysis prescription.","operationId":"create_prescription_dialysis_prescriptions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DialysisPrescription"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Prescription Dialysis Prescriptions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/prescriptions/{patient_id}":{"get":{"tags":["dialysis-nephrology"],"summary":"Get Patient Prescription","operationId":"get_patient_prescription_dialysis_prescriptions__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Patient Prescription Dialysis Prescriptions  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/runs":{"post":{"tags":["dialysis-nephrology"],"summary":"Start Treatment Run","description":"Begin a dialysis treatment run.","operationId":"start_treatment_run_dialysis_runs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DialysisTreatmentRun"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Treatment Run Dialysis Runs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/runs/{run_id}/complete":{"patch":{"tags":["dialysis-nephrology"],"summary":"Complete Run","description":"Complete a dialysis run and record post-treatment metrics.","operationId":"complete_run_dialysis_runs__run_id__complete_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DialysisTreatmentRun"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Run Dialysis Runs  Run Id  Complete Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/runs/{run_id}/complication":{"patch":{"tags":["dialysis-nephrology"],"summary":"Add Run Complication","description":"Append an intradialytic complication to a treatment run.","operationId":"add_run_complication_dialysis_runs__run_id__complication_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"complication","in":"query","required":true,"schema":{"type":"string","title":"Complication"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Run Complication Dialysis Runs  Run Id  Complication Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/runs/{patient_id}":{"get":{"tags":["dialysis-nephrology"],"summary":"Get Patient Runs","operationId":"get_patient_runs_dialysis_runs__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Patient Runs Dialysis Runs  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/access-assessment":{"post":{"tags":["dialysis-nephrology"],"summary":"Assess Vascular Access","description":"Record vascular access assessment.","operationId":"assess_vascular_access_dialysis_access_assessment_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VascularAccessAssessment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assess Vascular Access Dialysis Access Assessment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dialysis-nephrology"],"summary":"List Access Assessments","operationId":"list_access_assessments_dialysis_access_assessment_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"intervention_needed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Intervention Needed"}},{"name":"access_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessType"},{"type":"null"}],"title":"Access Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Access Assessments Dialysis Access Assessment Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/fistula":{"post":{"tags":["dialysis-nephrology"],"summary":"Create Fistula Record","description":"Record a new AVF or AVG creation for maturation tracking.","operationId":"create_fistula_record_dialysis_fistula_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FistulaMaturationRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Fistula Record Dialysis Fistula Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dialysis-nephrology"],"summary":"List Fistula Records","operationId":"list_fistula_records_dialysis_fistula_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"maturation_stage","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FistulaMaturationStage"},{"type":"null"}],"title":"Maturation Stage"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Fistula Records Dialysis Fistula Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/fistula/{maturation_id}":{"get":{"tags":["dialysis-nephrology"],"summary":"Get Fistula Record","operationId":"get_fistula_record_dialysis_fistula__maturation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"maturation_id","in":"path","required":true,"schema":{"type":"string","title":"Maturation Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Fistula Record Dialysis Fistula  Maturation Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/fistula/{maturation_id}/stage":{"patch":{"tags":["dialysis-nephrology"],"summary":"Update Maturation Stage","description":"Update fistula/graft maturation stage after clinical assessment.","operationId":"update_maturation_stage_dialysis_fistula__maturation_id__stage_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"maturation_id","in":"path","required":true,"schema":{"type":"string","title":"Maturation Id"}},{"name":"stage","in":"query","required":true,"schema":{"$ref":"#/components/schemas/FistulaMaturationStage"}},{"name":"check_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM-DD","title":"Check Date"},"description":"YYYY-MM-DD"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Maturation Stage Dialysis Fistula  Maturation Id  Stage Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/fistula/{maturation_id}/flow":{"patch":{"tags":["dialysis-nephrology"],"summary":"Record Flow Measurement","description":"Append a Doppler flow measurement to a fistula maturation record.","operationId":"record_flow_measurement_dialysis_fistula__maturation_id__flow_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"maturation_id","in":"path","required":true,"schema":{"type":"string","title":"Maturation Id"}},{"name":"measurement_date","in":"query","required":true,"schema":{"type":"string","description":"YYYY-MM-DD","title":"Measurement Date"},"description":"YYYY-MM-DD"},{"name":"flow_ml_min","in":"query","required":true,"schema":{"type":"number","title":"Flow Ml Min"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Flow Measurement Dialysis Fistula  Maturation Id  Flow Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/fistula/{maturation_id}/cannulate":{"patch":{"tags":["dialysis-nephrology"],"summary":"Record First Cannulation","description":"Record first successful cannulation — advances stage to IN_USE.","operationId":"record_first_cannulation_dialysis_fistula__maturation_id__cannulate_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"maturation_id","in":"path","required":true,"schema":{"type":"string","title":"Maturation Id"}},{"name":"cannulation_date","in":"query","required":true,"schema":{"type":"string","description":"YYYY-MM-DD","title":"Cannulation Date"},"description":"YYYY-MM-DD"},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record First Cannulation Dialysis Fistula  Maturation Id  Cannulate Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/fistula/{maturation_id}/decommission":{"patch":{"tags":["dialysis-nephrology"],"summary":"Decommission Fistula","description":"Decommission a fistula/graft that has failed or been abandoned.","operationId":"decommission_fistula_dialysis_fistula__maturation_id__decommission_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"maturation_id","in":"path","required":true,"schema":{"type":"string","title":"Maturation Id"}},{"name":"decommission_date","in":"query","required":true,"schema":{"type":"string","description":"YYYY-MM-DD","title":"Decommission Date"},"description":"YYYY-MM-DD"},{"name":"reason","in":"query","required":true,"schema":{"type":"string","title":"Reason"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decommission Fistula Dialysis Fistula  Maturation Id  Decommission Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/adequacy":{"post":{"tags":["dialysis-nephrology"],"summary":"Record Adequacy","description":"Record a dialysis adequacy assessment (Kt/V or URR).","operationId":"record_adequacy_dialysis_adequacy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DialysisAdequacy"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Adequacy Dialysis Adequacy Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dialysis-nephrology"],"summary":"List Adequacy","operationId":"list_adequacy_dialysis_adequacy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AdequacyStatus"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Adequacy Dialysis Adequacy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/adequacy/{adequacy_id}":{"get":{"tags":["dialysis-nephrology"],"summary":"Get Adequacy","operationId":"get_adequacy_dialysis_adequacy__adequacy_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"adequacy_id","in":"path","required":true,"schema":{"type":"string","title":"Adequacy Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Adequacy Dialysis Adequacy  Adequacy Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/dry-weight":{"post":{"tags":["dialysis-nephrology"],"summary":"Record Dry Weight","description":"Record a dry-weight assessment for fluid management.","operationId":"record_dry_weight_dialysis_dry_weight_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DryWeightAssessment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Dry Weight Dialysis Dry Weight Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dialysis-nephrology"],"summary":"List Dry Weight","operationId":"list_dry_weight_dialysis_dry_weight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Dry Weight Dialysis Dry Weight Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/pd-exchanges":{"post":{"tags":["dialysis-nephrology"],"summary":"Record Pd Exchange","description":"Record a PD exchange bag event and auto-calculate ultrafiltration.","operationId":"record_pd_exchange_dialysis_pd_exchanges_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PDExchange"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Pd Exchange Dialysis Pd Exchanges Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dialysis-nephrology"],"summary":"List Pd Exchanges","operationId":"list_pd_exchanges_dialysis_pd_exchanges_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Pd Exchanges Dialysis Pd Exchanges Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/quality-metrics":{"post":{"tags":["dialysis-nephrology"],"summary":"Submit Quality Metrics","description":"Submit ESRD QIP quality metrics for a patient/period.","operationId":"submit_quality_metrics_dialysis_quality_metrics_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ESRDQualityMetrics"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Quality Metrics Dialysis Quality Metrics Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dialysis-nephrology"],"summary":"List Quality Metrics","operationId":"list_quality_metrics_dialysis_quality_metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"reporting_period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reporting Period"}},{"name":"cms_2744_reported","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cms 2744 Reported"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Quality Metrics Dialysis Quality Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dialysis/dashboard":{"get":{"tags":["dialysis-nephrology"],"summary":"Nephrology Dashboard","description":"Aggregate nephrology / dialysis operational metrics.","operationId":"nephrology_dashboard_dialysis_dashboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Nephrology Dashboard Dialysis Dashboard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/occ-health/pre-placement":{"post":{"tags":["occupational-health"],"summary":"Create Pre Placement Exam","description":"Create pre-placement physical exam record.","operationId":"create_pre_placement_exam_occ_health_pre_placement_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrePlacementPhysical"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Pre Placement Exam Occ Health Pre Placement Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/occ-health/incidents":{"post":{"tags":["occupational-health"],"summary":"Report Incident","description":"File OSHA 301 first report of injury.","operationId":"report_incident_occ_health_incidents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OSHAIncidentReport"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Incident Occ Health Incidents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/occ-health/exposures":{"post":{"tags":["occupational-health"],"summary":"Record Exposure","description":"Record occupational exposure event.","operationId":"record_exposure_occ_health_exposures_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExposureRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Exposure Occ Health Exposures Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/occ-health/fit-for-duty":{"post":{"tags":["occupational-health"],"summary":"Record Fit For Duty","description":"Record fit-for-duty / return-to-work assessment.","operationId":"record_fit_for_duty_occ_health_fit_for_duty_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitForDutyAssessment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Fit For Duty Occ Health Fit For Duty Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/occ-health/drug-testing":{"post":{"tags":["occupational-health"],"summary":"Create Drug Test","description":"Record DOT/non-DOT drug and alcohol test.","operationId":"create_drug_test_occ_health_drug_testing_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrugAlcoholTest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Drug Test Occ Health Drug Testing Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/occ-health/drug-testing/{test_id}/result":{"patch":{"tags":["occupational-health"],"summary":"Update Drug Test Result","operationId":"update_drug_test_result_occ_health_drug_testing__test_id__result_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","title":"Test Id"}},{"name":"result","in":"query","required":true,"schema":{"$ref":"#/components/schemas/DrugTestResult"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Drug Test Result Occ Health Drug Testing  Test Id  Result Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/occ-health/osha-300-log":{"get":{"tags":["occupational-health"],"summary":"Osha 300 Log","description":"Generate OSHA 300 log summary.","operationId":"osha_300_log_occ_health_osha_300_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Osha 300 Log Occ Health Osha 300 Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dental-vision/dental/chart":{"post":{"tags":["dental-vision"],"summary":"Add Dental Chart Entry","description":"Add dental chart finding for a specific tooth.","operationId":"add_dental_chart_entry_dental_vision_dental_chart_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DentalChartEntry"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Dental Chart Entry Dental Vision Dental Chart Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dental-vision/dental/chart/{patient_id}":{"get":{"tags":["dental-vision"],"summary":"Get Dental Chart","operationId":"get_dental_chart_dental_vision_dental_chart__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dental Chart Dental Vision Dental Chart  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dental-vision/dental/perio":{"post":{"tags":["dental-vision"],"summary":"Record Perio Chart","description":"Record full periodontal chart.","operationId":"record_perio_chart_dental_vision_dental_perio_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerioChart"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Perio Chart Dental Vision Dental Perio Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dental-vision/dental/treatment-plan":{"post":{"tags":["dental-vision"],"summary":"Create Treatment Plan","description":"Create dental treatment plan.","operationId":"create_treatment_plan_dental_vision_dental_treatment_plan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DentalTreatmentPlan"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Treatment Plan Dental Vision Dental Treatment Plan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dental-vision/vision/refraction":{"post":{"tags":["dental-vision"],"summary":"Record Refraction","description":"Record refraction exam and eyewear prescription.","operationId":"record_refraction_dental_vision_vision_refraction_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefractionExam"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Refraction Dental Vision Vision Refraction Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dental-vision/vision/tonometry":{"post":{"tags":["dental-vision"],"summary":"Record Tonometry","description":"Record IOP tonometry reading for glaucoma screening.","operationId":"record_tonometry_dental_vision_vision_tonometry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TonometryReading"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Tonometry Dental Vision Vision Tonometry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dental-vision/vision/refraction/{patient_id}":{"get":{"tags":["dental-vision"],"summary":"Get Latest Refraction","operationId":"get_latest_refraction_dental_vision_vision_refraction__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Latest Refraction Dental Vision Vision Refraction  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/research/protocols":{"post":{"tags":["research-trials"],"summary":"Create Protocol","description":"Register a clinical trial protocol.","operationId":"create_protocol_research_protocols_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicalTrialProtocol"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Protocol Research Protocols Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/research/subjects":{"post":{"tags":["research-trials"],"summary":"Enroll Subject","description":"Enrol subject into a clinical trial protocol.","operationId":"enroll_subject_research_subjects_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectEnrollment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enroll Subject Research Subjects Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/research/consents":{"post":{"tags":["research-trials"],"summary":"Record Consent","description":"Record informed consent (21 CFR Part 11 e-signature).","operationId":"record_consent_research_consents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformedConsent"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Consent Research Consents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/research/deviations":{"post":{"tags":["research-trials"],"summary":"Report Deviation","description":"Report a protocol deviation or GCP violation.","operationId":"report_deviation_research_deviations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolDeviation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Deviation Research Deviations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/research/saes":{"post":{"tags":["research-trials"],"summary":"Report Sae","description":"Report a serious adverse event (triggers IND safety reporting clock).","operationId":"report_sae_research_saes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriousAdverseEvent"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Sae Research Saes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/research/irb":{"post":{"tags":["research-trials"],"summary":"Submit To Irb","description":"Submit protocol to IRB.","operationId":"submit_to_irb_research_irb_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IRBSubmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit To Irb Research Irb Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/research/export/cdisc":{"post":{"tags":["research-trials"],"summary":"Request Cdisc Export","description":"Queue CDISC SDTM/ADaM data export for a trial.","operationId":"request_cdisc_export_research_export_cdisc_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDISCExportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Cdisc Export Research Export Cdisc Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/research/protocols/{protocol_id}/summary":{"get":{"tags":["research-trials"],"summary":"Protocol Summary","operationId":"protocol_summary_research_protocols__protocol_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"protocol_id","in":"path","required":true,"schema":{"type":"string","title":"Protocol Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Protocol Summary Research Protocols  Protocol Id  Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/agents":{"get":{"tags":["master-docx-vision"],"summary":"List Agents","description":"Return the full agent catalog with optional tier/warm filter.","operationId":"list_agents_master_docx_agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentTier"},{"type":"null"}],"title":"Tier"}},{"name":"warm_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Warm Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Agents Master Docx Agents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["master-docx-vision"],"summary":"Register Agent","description":"Register a new agent in the catalog.","operationId":"register_agent_master_docx_agents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRegistration"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Agent Master Docx Agents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/agents/{agent_id}/warm":{"patch":{"tags":["master-docx-vision"],"summary":"Warm Agent","description":"Mark an agent as warmed (pre-loaded context).","operationId":"warm_agent_master_docx_agents__agent_id__warm_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Warm Agent Master Docx Agents  Agent Id  Warm Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/regions":{"get":{"tags":["master-docx-vision"],"summary":"List Regions","description":"Return multi-region topology.","operationId":"list_regions_master_docx_regions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Regions Master Docx Regions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/regions/{region_id}":{"put":{"tags":["master-docx-vision"],"summary":"Upsert Region","description":"Register or update a region in the active-active topology.","operationId":"upsert_region_master_docx_regions__region_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"region_id","in":"path","required":true,"schema":{"type":"string","title":"Region Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionTopologyEntry"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Region Master Docx Regions  Region Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/regions/failover-policy":{"post":{"tags":["master-docx-vision"],"summary":"Create Failover Policy","description":"Create an automatic failover policy between two regions.","operationId":"create_failover_policy_master_docx_regions_failover_policy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailoverPolicy"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Failover Policy Master Docx Regions Failover Policy Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/code-factory/pr":{"post":{"tags":["master-docx-vision"],"summary":"Request Pr Generation","description":"Queue a code-factory PR generation job.","operationId":"request_pr_generation_master_docx_code_factory_pr_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeFactoryPRRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Pr Generation Master Docx Code Factory Pr Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/code-factory/pr/{request_id}/status":{"patch":{"tags":["master-docx-vision"],"summary":"Update Pr Status","operationId":"update_pr_status_master_docx_code_factory_pr__request_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"new_status","in":"query","required":true,"schema":{"type":"string","title":"New Status"}},{"name":"pr_url","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pr Url"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Pr Status Master Docx Code Factory Pr  Request Id  Status Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/connectors":{"post":{"tags":["master-docx-vision"],"summary":"Register Connector","description":"Register a polyglot data plane connector.","operationId":"register_connector_master_docx_connectors_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataConnector"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Connector Master Docx Connectors Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["master-docx-vision"],"summary":"List Connectors","operationId":"list_connectors_master_docx_connectors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Connectors Master Docx Connectors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/payer-igs":{"get":{"tags":["master-docx-vision"],"summary":"Payer Ig Matrix","description":"Full payer IG conformance matrix (CARIN BB, PDex, HRex, etc.).","operationId":"payer_ig_matrix_master_docx_payer_igs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Payer Ig Matrix Master Docx Payer Igs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/payer-igs/{ig}":{"put":{"tags":["master-docx-vision"],"summary":"Update Payer Ig","description":"Update payer IG conformance declaration.","operationId":"update_payer_ig_master_docx_payer_igs__ig__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ig","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PayerIG"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerIGConformance"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Payer Ig Master Docx Payer Igs  Ig  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/hti5/readiness":{"get":{"tags":["master-docx-vision"],"summary":"Hti5 Readiness Summary","description":"HTI-5 forward-compatibility readiness across all anticipated criteria.","operationId":"hti5_readiness_summary_master_docx_hti5_readiness_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hti5 Readiness Summary Master Docx Hti5 Readiness Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/master-docx/hti5/criteria/{criterion_code}":{"put":{"tags":["master-docx-vision"],"summary":"Upsert Hti5 Criterion","description":"Register or update HTI-5 criterion readiness.","operationId":"upsert_hti5_criterion_master_docx_hti5_criteria__criterion_code__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"criterion_code","in":"path","required":true,"schema":{"type":"string","title":"Criterion Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTI5CriterionReadiness"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Hti5 Criterion Master Docx Hti5 Criteria  Criterion Code  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/regions":{"get":{"tags":["e11-multi-region"],"summary":"List Regions","description":"List all configured deployment regions.","operationId":"list_regions_e11_regions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RegionOut"},"title":"Response List Regions E11 Regions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["e11-multi-region"],"summary":"Register Region","description":"Register a new GCP region in the active-active topology.","operationId":"register_region_e11_regions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/regions/topology":{"get":{"tags":["e11-multi-region"],"summary":"Get Traffic Topology","description":"Return the global active-active traffic topology summary.","operationId":"get_traffic_topology_e11_regions_topology_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrafficTopologyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/regions/{region_id}":{"patch":{"tags":["e11-multi-region"],"summary":"Update Region","description":"Update traffic weight, health status, or tier for a region.","operationId":"update_region_e11_regions__region_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"region_id","in":"path","required":true,"schema":{"type":"string","title":"Region Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/regions/{region_id}/health":{"get":{"tags":["e11-multi-region"],"summary":"Get Region Health","description":"Get health status for a single region.","operationId":"get_region_health_e11_regions__region_id__health_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"region_id","in":"path","required":true,"schema":{"type":"string","title":"Region Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/i18n/locales":{"get":{"tags":["e11-multi-region"],"summary":"List Locales","description":"List all locale definitions in the i18n workbook.","operationId":"list_locales_e11_i18n_locales_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocaleOut"},"title":"Response List Locales E11 I18N Locales Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["e11-multi-region"],"summary":"Create Locale","description":"Add a new locale to the i18n workbook.","operationId":"create_locale_e11_i18n_locales_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocaleCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocaleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/i18n/locales/{locale_code}":{"get":{"tags":["e11-multi-region"],"summary":"Get Locale","description":"Get a single locale definition.","operationId":"get_locale_e11_i18n_locales__locale_code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"locale_code","in":"path","required":true,"schema":{"type":"string","title":"Locale Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocaleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/i18n/bundle/{locale_code}":{"get":{"tags":["e11-multi-region"],"summary":"Get I18N Bundle","description":"Return a compiled i18n bundle for the given locale.\n\nClients use this to initialise their locale runtime.  Message keys are\nsourced from the locale-keyed message bundles stored in GCS\n(sphere-ehr-i18n-<env>/<locale>.json); this endpoint returns format\nmetadata and an approximate key count for the UI bootstrap.","operationId":"get_i18n_bundle_e11_i18n_bundle__locale_code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"locale_code","in":"path","required":true,"schema":{"type":"string","title":"Locale Code"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/I18nBundleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/jurisdictions":{"get":{"tags":["e11-multi-region"],"summary":"List Jurisdictions","description":"List all supported jurisdictions and their compliance matrices.","operationId":"list_jurisdictions_e11_jurisdictions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JurisdictionComplianceOut"},"title":"Response List Jurisdictions E11 Jurisdictions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/jurisdictions/{jurisdiction}":{"get":{"tags":["e11-multi-region"],"summary":"Get Jurisdiction","description":"Get the compliance matrix for a specific jurisdiction.","operationId":"get_jurisdiction_e11_jurisdictions__jurisdiction__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"jurisdiction","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Jurisdiction"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JurisdictionComplianceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e11/jurisdictions/{jurisdiction}/deployment-readiness":{"get":{"tags":["e11-multi-region"],"summary":"Check Deployment Readiness","description":"Check whether the requested region/tier combination is ready for a\nnon-US production deployment under the given jurisdiction's requirements.","operationId":"check_deployment_readiness_e11_jurisdictions__jurisdiction__deployment_readiness_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"jurisdiction","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Jurisdiction"}},{"name":"region","in":"query","required":true,"schema":{"$ref":"#/components/schemas/GcpRegion","description":"Target GCP region for the deployment"},"description":"Target GCP region for the deployment"},{"name":"deployment_tier","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeploymentTier","default":"dedicated"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentReadinessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/or/time-out":{"post":{"tags":["acute-settings"],"summary":"Create Time Out","description":"Initiate a TJC NPSG UP.01.01.01 surgical time-out checklist.","operationId":"create_time_out_acute_settings_or_time_out_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurgicalTimeOut"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Time Out Acute Settings Or Time Out Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/or/time-out/{time_out_id}/complete":{"patch":{"tags":["acute-settings"],"summary":"Complete Time Out","description":"Mark time-out as completed; record completion timestamp and user.","operationId":"complete_time_out_acute_settings_or_time_out__time_out_id__complete_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"time_out_id","in":"path","required":true,"schema":{"type":"string","title":"Time Out Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Time Out Acute Settings Or Time Out  Time Out Id  Complete Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/or/time-out/{time_out_id}":{"get":{"tags":["acute-settings"],"summary":"Get Time Out","description":"Retrieve a time-out record.","operationId":"get_time_out_acute_settings_or_time_out__time_out_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"time_out_id","in":"path","required":true,"schema":{"type":"string","title":"Time Out Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurgicalTimeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/or/instrument-count":{"post":{"tags":["acute-settings"],"summary":"Create Instrument Count","description":"Record surgical instrument / sponge / sharps count (AORN standard).","operationId":"create_instrument_count_acute_settings_or_instrument_count_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstrumentCount"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Instrument Count Acute Settings Or Instrument Count Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/or/anesthesia":{"post":{"tags":["acute-settings"],"summary":"Create Anesthesia Record","description":"Create anaesthesia record (induction through PACU discharge).","operationId":"create_anesthesia_record_acute_settings_or_anesthesia_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnesthesiaRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Anesthesia Record Acute Settings Or Anesthesia Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/or/anesthesia/{record_id}":{"get":{"tags":["acute-settings"],"summary":"Get Anesthesia Record","description":"Retrieve an anaesthesia record.","operationId":"get_anesthesia_record_acute_settings_or_anesthesia__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnesthesiaRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/inpatient/admission":{"post":{"tags":["acute-settings"],"summary":"Create Admission","description":"Register an inpatient admission (general, LTACH, or IRF).","operationId":"create_admission_acute_settings_inpatient_admission_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InpatientAdmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Admission Acute Settings Inpatient Admission Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/inpatient/admission/{admission_id}":{"get":{"tags":["acute-settings"],"summary":"Get Admission","description":"Retrieve an admission record.","operationId":"get_admission_acute_settings_inpatient_admission__admission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InpatientAdmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/inpatient/admissions":{"get":{"tags":["acute-settings"],"summary":"List Admissions","description":"List admissions with optional setting-type / patient filter.","operationId":"list_admissions_acute_settings_inpatient_admissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"setting_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AcuteSettingType"},{"type":"null"}],"title":"Setting Type"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InpatientAdmission"},"title":"Response List Admissions Acute Settings Inpatient Admissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/inpatient/admission/{admission_id}/discharge":{"patch":{"tags":["acute-settings"],"summary":"Discharge Admission","description":"Record discharge disposition for an inpatient stay.","operationId":"discharge_admission_acute_settings_inpatient_admission__admission_id__discharge_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"disposition","in":"query","required":false,"schema":{"$ref":"#/components/schemas/EncounterDisposition","default":"discharged"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Discharge Admission Acute Settings Inpatient Admission  Admission Id  Discharge Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/al/resident":{"post":{"tags":["acute-settings"],"summary":"Create Al Resident","description":"Enroll a resident in assisted living or PACE programme.","operationId":"create_al_resident_acute_settings_al_resident_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistedLivingResident"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Al Resident Acute Settings Al Resident Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/al/resident/{resident_id}":{"get":{"tags":["acute-settings"],"summary":"Get Al Resident","description":"Retrieve an assisted-living resident record.","operationId":"get_al_resident_acute_settings_al_resident__resident_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"resident_id","in":"path","required":true,"schema":{"type":"string","title":"Resident Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistedLivingResident"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/urgent-care/visit":{"post":{"tags":["acute-settings"],"summary":"Create Uc Visit","description":"Register an urgent care, FQHC, RHC, or telehealth visit.","operationId":"create_uc_visit_acute_settings_urgent_care_visit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrgentCareVisit"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Uc Visit Acute Settings Urgent Care Visit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/urgent-care/visit/{visit_id}":{"get":{"tags":["acute-settings"],"summary":"Get Uc Visit","description":"Retrieve an urgent-care visit.","operationId":"get_uc_visit_acute_settings_urgent_care_visit__visit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"visit_id","in":"path","required":true,"schema":{"type":"string","title":"Visit Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrgentCareVisit"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/acute-settings/urgent-care/visits":{"get":{"tags":["acute-settings"],"summary":"List Uc Visits","description":"List urgent-care / telehealth visits.","operationId":"list_uc_visits_acute_settings_urgent_care_visits_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"setting_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AcuteSettingType"},{"type":"null"}],"title":"Setting Type"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UrgentCareVisit"},"title":"Response List Uc Visits Acute Settings Urgent Care Visits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/cycles":{"post":{"tags":["fertility"],"summary":"Create Cycle","description":"Initiate a new IVF/ART cycle.","operationId":"create_cycle_fertility_cycles_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IVFCycle"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Cycle Fertility Cycles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["fertility"],"summary":"List Cycles","description":"List IVF cycles with optional patient / type filter.","operationId":"list_cycles_fertility_cycles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"cycle_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CycleType"},{"type":"null"}],"title":"Cycle Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IVFCycle"},"title":"Response List Cycles Fertility Cycles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/cycles/{cycle_id}":{"get":{"tags":["fertility"],"summary":"Get Cycle","description":"Retrieve an IVF cycle record.","operationId":"get_cycle_fertility_cycles__cycle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cycle_id","in":"path","required":true,"schema":{"type":"string","title":"Cycle Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IVFCycle"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/cycles/{cycle_id}/status":{"patch":{"tags":["fertility"],"summary":"Update Cycle Status","description":"Advance an IVF cycle to the next status (e.g., triggered, retrieval_complete).","operationId":"update_cycle_status_fertility_cycles__cycle_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cycle_id","in":"path","required":true,"schema":{"type":"string","title":"Cycle Id"}},{"name":"new_status","in":"query","required":true,"schema":{"$ref":"#/components/schemas/CycleStatus"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Cycle Status Fertility Cycles  Cycle Id  Status Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/embryos":{"post":{"tags":["fertility"],"summary":"Create Embryo Record","description":"Record embryo grading and disposition.","operationId":"create_embryo_record_fertility_embryos_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbryoRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Embryo Record Fertility Embryos Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["fertility"],"summary":"List Embryos","description":"List embryo records with optional filters.","operationId":"list_embryos_fertility_embryos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cycle_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cycle Id"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"disposition","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EmbryoDisposition"},{"type":"null"}],"title":"Disposition"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmbryoRecord"},"title":"Response List Embryos Fertility Embryos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/embryos/{embryo_id}":{"get":{"tags":["fertility"],"summary":"Get Embryo Record","description":"Retrieve an embryo record.","operationId":"get_embryo_record_fertility_embryos__embryo_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"embryo_id","in":"path","required":true,"schema":{"type":"string","title":"Embryo Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbryoRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/donors":{"post":{"tags":["fertility"],"summary":"Create Donor","description":"Register a new donor (egg, sperm, or embryo).","operationId":"create_donor_fertility_donors_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DonorRecord"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Donor Fertility Donors Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/donors/{donor_id}":{"get":{"tags":["fertility"],"summary":"Get Donor","description":"Retrieve a donor record.","operationId":"get_donor_fertility_donors__donor_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"donor_id","in":"path","required":true,"schema":{"type":"string","title":"Donor Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DonorRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/donors/{donor_id}/release":{"patch":{"tags":["fertility"],"summary":"Release Donor","description":"Release a donor from quarantine (FDA 21 CFR 1271 eligibility confirmed).","operationId":"release_donor_fertility_donors__donor_id__release_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"donor_id","in":"path","required":true,"schema":{"type":"string","title":"Donor Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Release Donor Fertility Donors  Donor Id  Release Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/sart/report":{"post":{"tags":["fertility"],"summary":"Create Sart Report","description":"Create a SART CORS case report for annual submission.","operationId":"create_sart_report_fertility_sart_report_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SARTCaseReport"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Sart Report Fertility Sart Report Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/sart/report/{report_id}":{"get":{"tags":["fertility"],"summary":"Get Sart Report","description":"Retrieve a SART case report.","operationId":"get_sart_report_fertility_sart_report__report_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SARTCaseReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fertility/sart/report/{report_id}/submit":{"patch":{"tags":["fertility"],"summary":"Submit Sart Report","description":"Mark a SART CORS report as submitted.","operationId":"submit_sart_report_fertility_sart_report__report_id__submit_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Sart Report Fertility Sart Report  Report Id  Submit Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/growth/measurement":{"post":{"tags":["pediatrics"],"summary":"Record Growth Measurement","description":"Record a growth measurement and store percentile/z-score.","operationId":"record_growth_measurement_pediatrics_growth_measurement_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrowthMeasurement"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Growth Measurement Pediatrics Growth Measurement Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/growth/measurement/{measurement_id}":{"get":{"tags":["pediatrics"],"summary":"Get Growth Measurement","description":"Retrieve a single growth measurement.","operationId":"get_growth_measurement_pediatrics_growth_measurement__measurement_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"measurement_id","in":"path","required":true,"schema":{"type":"string","title":"Measurement Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrowthMeasurement"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/growth/measurements":{"get":{"tags":["pediatrics"],"summary":"List Growth Measurements","description":"List growth measurements for a patient.","operationId":"list_growth_measurements_pediatrics_growth_measurements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"measurement_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GrowthMeasurementType"},{"type":"null"}],"title":"Measurement Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GrowthMeasurement"},"title":"Response List Growth Measurements Pediatrics Growth Measurements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/screens/asq3":{"post":{"tags":["pediatrics"],"summary":"Create Asq3 Screen","description":"Submit an ASQ-3 developmental screening result.","operationId":"create_asq3_screen_pediatrics_screens_asq3_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ASQ3Screen"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Asq3 Screen Pediatrics Screens Asq3 Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pediatrics"],"summary":"List Asq3 Screens","description":"List ASQ-3 screens for a patient.","operationId":"list_asq3_screens_pediatrics_screens_asq3_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ASQ3Screen"},"title":"Response List Asq3 Screens Pediatrics Screens Asq3 Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/screens/asq3/{screen_id}":{"get":{"tags":["pediatrics"],"summary":"Get Asq3 Screen","description":"Retrieve an ASQ-3 screening record.","operationId":"get_asq3_screen_pediatrics_screens_asq3__screen_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"screen_id","in":"path","required":true,"schema":{"type":"string","title":"Screen Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ASQ3Screen"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/screens/mchat":{"post":{"tags":["pediatrics"],"summary":"Create Mchat Screen","description":"Submit an M-CHAT-R/F autism screening result.","operationId":"create_mchat_screen_pediatrics_screens_mchat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCHATScreen"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Mchat Screen Pediatrics Screens Mchat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pediatrics"],"summary":"List Mchat Screens","description":"List M-CHAT screens for a patient.","operationId":"list_mchat_screens_pediatrics_screens_mchat_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MCHATScreen"},"title":"Response List Mchat Screens Pediatrics Screens Mchat Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/screens/mchat/{screen_id}":{"get":{"tags":["pediatrics"],"summary":"Get Mchat Screen","description":"Retrieve an M-CHAT-R/F screening record.","operationId":"get_mchat_screen_pediatrics_screens_mchat__screen_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"screen_id","in":"path","required":true,"schema":{"type":"string","title":"Screen Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCHATScreen"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/adolescent/confidential-encounter":{"post":{"tags":["pediatrics"],"summary":"Create Confidential Encounter","description":"Flag an encounter as adolescent-confidential (suppress from guardian portal view).","operationId":"create_confidential_encounter_pediatrics_adolescent_confidential_encounter_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdolescentConfidentialEncounter"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Confidential Encounter Pediatrics Adolescent Confidential Encounter Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/adolescent/confidential-encounter/{record_id}":{"get":{"tags":["pediatrics"],"summary":"Get Confidential Encounter","description":"Retrieve an adolescent-confidential encounter flag.","operationId":"get_confidential_encounter_pediatrics_adolescent_confidential_encounter__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdolescentConfidentialEncounter"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pediatrics/adolescent/confidential-encounters":{"get":{"tags":["pediatrics"],"summary":"List Confidential Encounters","description":"List confidential encounter flags for a patient.","operationId":"list_confidential_encounters_pediatrics_adolescent_confidential_encounters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdolescentConfidentialEncounter"},"title":"Response List Confidential Encounters Pediatrics Adolescent Confidential Encounters Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/cognitive/assessment":{"post":{"tags":["geriatrics"],"summary":"Create Cognitive Assessment","description":"Record a cognitive screening (MMSE, MoCA, CDR, etc.).","operationId":"create_cognitive_assessment_geriatrics_cognitive_assessment_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveAssessment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Cognitive Assessment Geriatrics Cognitive Assessment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/cognitive/assessment/{assessment_id}":{"get":{"tags":["geriatrics"],"summary":"Get Cognitive Assessment","description":"Retrieve a cognitive assessment.","operationId":"get_cognitive_assessment_geriatrics_cognitive_assessment__assessment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"string","title":"Assessment Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveAssessment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/cognitive/assessments":{"get":{"tags":["geriatrics"],"summary":"List Cognitive Assessments","description":"List cognitive assessments with optional filters.","operationId":"list_cognitive_assessments_geriatrics_cognitive_assessments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"tool","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CognitiveTool"},{"type":"null"}],"title":"Tool"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CognitiveAssessment"},"title":"Response List Cognitive Assessments Geriatrics Cognitive Assessments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/fall-risk/assessment":{"post":{"tags":["geriatrics"],"summary":"Create Fall Risk Assessment","description":"Record a fall-risk assessment (Morse, STRATIFY, or Hendrich II).","operationId":"create_fall_risk_assessment_geriatrics_fall_risk_assessment_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FallRiskAssessment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Fall Risk Assessment Geriatrics Fall Risk Assessment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/fall-risk/assessment/{assessment_id}":{"get":{"tags":["geriatrics"],"summary":"Get Fall Risk Assessment","description":"Retrieve a fall-risk assessment.","operationId":"get_fall_risk_assessment_geriatrics_fall_risk_assessment__assessment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"string","title":"Assessment Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FallRiskAssessment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/fall-risk/assessments":{"get":{"tags":["geriatrics"],"summary":"List Fall Risk Assessments","description":"List fall-risk assessments.","operationId":"list_fall_risk_assessments_geriatrics_fall_risk_assessments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"risk_level","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FallRiskLevel"},{"type":"null"}],"title":"Risk Level"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FallRiskAssessment"},"title":"Response List Fall Risk Assessments Geriatrics Fall Risk Assessments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/polypharmacy/review":{"post":{"tags":["geriatrics"],"summary":"Create Polypharmacy Review","description":"Submit a polypharmacy / Beers Criteria medication review.","operationId":"create_polypharmacy_review_geriatrics_polypharmacy_review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolypharmacyReview"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Polypharmacy Review Geriatrics Polypharmacy Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/polypharmacy/review/{review_id}":{"get":{"tags":["geriatrics"],"summary":"Get Polypharmacy Review","description":"Retrieve a polypharmacy review.","operationId":"get_polypharmacy_review_geriatrics_polypharmacy_review__review_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolypharmacyReview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/advance-care/directive":{"post":{"tags":["geriatrics"],"summary":"Create Advance Directive","description":"Register or update an advance care directive (POLST, MOLST, AD, DNR).","operationId":"create_advance_directive_geriatrics_advance_care_directive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvanceDirective"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Advance Directive Geriatrics Advance Care Directive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/advance-care/directive/{directive_id}":{"get":{"tags":["geriatrics"],"summary":"Get Advance Directive","description":"Retrieve an advance directive.","operationId":"get_advance_directive_geriatrics_advance_care_directive__directive_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"directive_id","in":"path","required":true,"schema":{"type":"string","title":"Directive Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvanceDirective"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/advance-care/directives":{"get":{"tags":["geriatrics"],"summary":"List Advance Directives","description":"List advance directives for a patient.","operationId":"list_advance_directives_geriatrics_advance_care_directives_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"directive_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AdvanceDirectiveType"},{"type":"null"}],"title":"Directive Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdvanceDirective"},"title":"Response List Advance Directives Geriatrics Advance Care Directives Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/snf/admission":{"post":{"tags":["geriatrics"],"summary":"Create Snf Admission","description":"Register a skilled nursing facility admission.","operationId":"create_snf_admission_geriatrics_snf_admission_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SNFAdmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Snf Admission Geriatrics Snf Admission Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/snf/admission/{admission_id}":{"get":{"tags":["geriatrics"],"summary":"Get Snf Admission","description":"Retrieve an SNF admission record.","operationId":"get_snf_admission_geriatrics_snf_admission__admission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","title":"Admission Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SNFAdmission"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geriatrics/snf/admissions":{"get":{"tags":["geriatrics"],"summary":"List Snf Admissions","description":"List SNF admissions for a patient.","operationId":"list_snf_admissions_geriatrics_snf_admissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SNFAdmission"},"title":"Response List Snf Admissions Geriatrics Snf Admissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/factory/spec/ingest":{"post":{"tags":["e12-code-factory"],"summary":"Ingest Spec","description":"Parse and store a spec document for later artifact generation.","operationId":"ingest_spec_factory_spec_ingest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/factory/spec/sections":{"get":{"tags":["e12-code-factory"],"summary":"List Spec Sections","description":"Return all parsed spec sections.","operationId":"list_spec_sections_factory_spec_sections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SpecSection"},"type":"array","title":"Response List Spec Sections Factory Spec Sections Get"}}}}}}},"/factory/spec/sections/{section_id}":{"get":{"tags":["e12-code-factory"],"summary":"Get Spec Section","operationId":"get_spec_section_factory_spec_sections__section_id__get","parameters":[{"name":"section_id","in":"path","required":true,"schema":{"type":"string","title":"Section Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecSection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/factory/generate":{"post":{"tags":["e12-code-factory"],"summary":"Generate","description":"Generate a code artifact for the given spec section.","operationId":"generate_factory_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__e12_code_factory__GenerateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedArtifact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/factory/artifacts":{"get":{"tags":["e12-code-factory"],"summary":"List Artifacts","operationId":"list_artifacts_factory_artifacts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/GeneratedArtifact"},"type":"array","title":"Response List Artifacts Factory Artifacts Get"}}}}}}},"/factory/artifacts/{artifact_id}":{"get":{"tags":["e12-code-factory"],"summary":"Get Artifact","operationId":"get_artifact_factory_artifacts__artifact_id__get","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedArtifact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/factory/upgrade/preview":{"post":{"tags":["e12-code-factory"],"summary":"Upgrade Preview","description":"Dry-run: compare incoming spec against stored artifacts and surface the diff.","operationId":"upgrade_preview_factory_upgrade_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradePreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FactoryUpgradePreview"},"type":"array","title":"Response Upgrade Preview Factory Upgrade Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/factory/surfaces/register":{"post":{"tags":["e12-code-factory"],"summary":"Register Surface","description":"Register a module as a hand-authored surface (excluded from factory rewrites).","operationId":"register_surface_factory_surfaces_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterSurfaceRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandAuthoredSurface"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/factory/surfaces":{"get":{"tags":["e12-code-factory"],"summary":"List Surfaces","operationId":"list_surfaces_factory_surfaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/HandAuthoredSurface"},"type":"array","title":"Response List Surfaces Factory Surfaces Get"}}}}}}},"/factory/surfaces/{surface_id}":{"delete":{"tags":["e12-code-factory"],"summary":"Deregister Surface","operationId":"deregister_surface_factory_surfaces__surface_id__delete","parameters":[{"name":"surface_id","in":"path","required":true,"schema":{"type":"string","title":"Surface Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/factory/self-update":{"post":{"tags":["e12-code-factory"],"summary":"Self Update","description":"Regenerate a module from its spec section (factory self-update).\n\nWhen ``dry_run=True`` (the default) the generated artifact is returned but\nNOT persisted and the on-disk file is NOT overwritten.  Pass\n``dry_run=False`` to commit the artifact to the in-memory store.\n\nThe factory refuses to overwrite hand-authored surfaces regardless of\n``dry_run``.","operationId":"self_update_factory_self_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelfUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelfUpdateResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/hti5/capability-statement":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Hti5 Capability Statement","description":"HTI-5 forward-compatible FHIR R4 CapabilityStatement.\n\nAdvertises compliance with:\n  - ONC HTI-5 (anticipated) conformance requirements\n  - SMART App Launch v2 (http://hl7.org/fhir/smart-app-launch/STU2)\n  - Bulk Data Access v2 (http://hl7.org/fhir/uv/bulkdata/STU2)\n  - CARIN BB 2.0, PDex STU2, HRex STU2, US Core 6.1","operationId":"hti5_capability_statement_e13_hti5_capability_statement_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hti5Capability"}}}}}}},"/e13/hti5/smart-configuration":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Hti5 Smart Configuration","description":"SMART App Launch v2 .well-known/smart-configuration endpoint.\n\nSupports:\n  - Authorization Code + PKCE\n  - Client Credentials (backend services)\n  - Asymmetric client authentication (private_key_jwt)\n  - Token introspection","operationId":"hti5_smart_configuration_e13_hti5_smart_configuration_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartV2Configuration"}}}}}}},"/e13/carin-bb/member/{patient_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Carin Bb Member Bundle","description":"CARIN BB 2.0 member bundle — all claim-type profiles for a patient.\n\nSupports filtering by:\n  - claim_type: one or more of the 6 C4BB EOB profiles\n  - service_date_start / service_date_end: ISO-8601 date range\n  - _count / _offset: pagination","operationId":"carin_bb_member_bundle_e13_carin_bb_member__patient_id__get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"claim_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/CarinEobType"}},{"type":"null"}],"title":"Claim Type"}},{"name":"service_date_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date Start"}},{"name":"service_date_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date End"}},{"name":"_count","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":" Count"}},{"name":"_offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":" Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarinBbBundle"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/carin-bb/eob/{eob_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Fetch a single C4BB ExplanationOfBenefit by ID","description":"Return a fully detailed C4BB EOB for any claim-type profile.\n\nThe claim-type profile is inferred from the eob_id suffix convention:\n  eob-<patient>-<claim-type>-<random>","operationId":"carin_bb_eob_detail_e13_carin_bb_eob__eob_id__get","parameters":[{"name":"eob_id","in":"path","required":true,"schema":{"type":"string","title":"Eob Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarinBbEobDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/pdex/member-match":{"post":{"tags":["e13-hti5-payer-ig"],"summary":"Pdex Member Match","description":"Da Vinci PDex $member-match operation.\n\nMatches a member across payer systems using patient demographics +\nold-payer Coverage. Returns a unique member identifier in the new payer's\nsystem suitable for subsequent $everything or Attribution queries.\n\nReferences:\n  - http://hl7.org/fhir/us/davinci-pdex/STU2/OperationDefinition-member-match.html","operationId":"pdex_member_match_e13_pdex_member_match_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdexMemberMatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdexMemberMatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/pdex/everything/{patient_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Pdex Everything","description":"Da Vinci PDex $everything — full member clinical + financial record bundle.\n\nIncludes: Patient, Coverage, EOB, MedicationDispense, Condition,\nAllergyIntolerance, Immunization, DiagnosticReport, Observation,\nDocumentReference (clinical notes), Procedure, CarePlan.\n\n_since: ISO-8601 timestamp for incremental sync\n_count: max entries per response (for pagination via link[next])","operationId":"pdex_everything_e13_pdex_everything__patient_id__get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Since"}},{"name":"_count","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":" Count"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdexEverythingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/pdex/consent/{patient_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Pdex Consent","description":"PDex Consent record for member-directed data sharing.","operationId":"pdex_consent_e13_pdex_consent__patient_id__get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdexConsentRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/pdex/medication-dispense/{patient_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Pdex Medication Dispense","description":"PDex MedicationDispense — pharmacy dispense history from payer data.","operationId":"pdex_medication_dispense_e13_pdex_medication_dispense__patient_id__get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PdexMedicationDispenseEntry"},"title":"Response Pdex Medication Dispense E13 Pdex Medication Dispense  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/hrex/member-attribution/{group_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Hrex Member Attribution","description":"HRex Member Attribution List (Da Vinci ATR IG).\n\nReturns the set of patients attributed to a given provider Group,\nwith coverage references and attribution basis.\n\nReferences:\n  - http://hl7.org/fhir/us/davinci-atr/STU2/","operationId":"hrex_member_attribution_e13_hrex_member_attribution__group_id__get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"_count","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":100,"title":" Count"}},{"name":"_offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":" Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HrexMemberAttributionList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/hrex/coverage-requirement":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Hrex Coverage Requirements","description":"HRex Coverage Requirements for a given Coverage + service type.\n\nUsed by CRD hooks to provide real-time coverage rule details.","operationId":"hrex_coverage_requirements_e13_hrex_coverage_requirement_get","parameters":[{"name":"coverage_id","in":"query","required":true,"schema":{"type":"string","title":"Coverage Id"}},{"name":"service_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HrexCoverageRequirement"},"title":"Response Hrex Coverage Requirements E13 Hrex Coverage Requirement Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/hrex/task":{"post":{"tags":["e13-hti5-payer-ig"],"summary":"Hrex Create Task","description":"HRex Task-based data exchange — request clinical data from an owner.\n\nSupports:\n  - data-request: asynchronous request for a specific patient record\n  - data-query: FHIR search-style query delegated to owner\n\nReferences:\n  - http://hl7.org/fhir/us/davinci-hrex/STU1/task-based-approach.html","operationId":"hrex_create_task_e13_hrex_task_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HrexTaskRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HrexTaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/hrex/task/{task_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Hrex Get Task","description":"Poll a HRex Task for status and output.","operationId":"hrex_get_task_e13_hrex_task__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HrexTaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/hrex/consent/{patient_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Hrex Consent Status","description":"HRex Consent verification — check data-sharing consent for a patient.","operationId":"hrex_consent_status_e13_hrex_consent__patient_id__get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HrexConsentStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/polyglot/ingest":{"post":{"tags":["e13-hti5-payer-ig"],"summary":"Polyglot Ingest","description":"Polyglot data plane ingest endpoint for scale workloads.\n\nAccepts FHIR R4 (JSON/XML), HL7v2, X12 (837/835/270-271), C-CDA, and\nNCPDP SCRIPT formats. Messages are validated, transformed to canonical\nFHIR, and enqueued to Kafka with per-tenant back-pressure.\n\nIdempotent: supply dedup_key to prevent double-ingest on retry.\n\nProduction wiring (not yet connected in this stub):\n  - Kafka topic routing: topic = f\"{tenant_id}.{format}.raw\"\n  - Apache Iceberg table: \"payer_data.{tenant_id}.ingested\"\n  - Schema registry validation before enqueue\n  - Per-tenant throughput quotas enforced at API gateway","operationId":"polyglot_ingest_e13_polyglot_ingest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolyglotIngestRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolyglotIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/polyglot/jobs/{job_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Polyglot Job Status","description":"Poll ingest job status.\n\nIn production, reads from Kafka consumer group lag API + Iceberg\nmetadata API to report real-time progress.","operationId":"polyglot_job_status_e13_polyglot_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolyglotJobStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/e13/polyglot/quota/{tenant_id}":{"get":{"tags":["e13-hti5-payer-ig"],"summary":"Polyglot Throughput Quota","description":"Per-tenant polyglot throughput quota and current utilization.\n\nProduction: backed by Redis sliding window counters per tenant.\nThrottle decisions enforced at the API gateway before this handler.","operationId":"polyglot_throughput_quota_e13_polyglot_quota__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThroughputQuota"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenant":{"get":{"tags":["admin"],"summary":"Get Tenant","description":"Return tenant configuration metadata.","operationId":"get_tenant_admin_tenant_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users":{"get":{"tags":["admin"],"summary":"List Users","description":"Return a list of provisioned users.\n\nIn production this queries Firebase Auth + the RBAC store.  For now\nreturns a deterministic stub so tests can verify the contract.","operationId":"list_users_admin_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserSummary"},"title":"Response List Users Admin Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agents":{"get":{"tags":["admin"],"summary":"List Agents","description":"Return agent catalog entries.","operationId":"list_agents_admin_agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentEntry"},"title":"Response List Agents Admin Agents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/interfaces":{"get":{"tags":["admin"],"summary":"List Interfaces","description":"Return interface channel status.","operationId":"list_interfaces_admin_interfaces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InterfaceChannel"},"title":"Response List Interfaces Admin Interfaces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/status":{"get":{"tags":["admin"],"summary":"Get System Status","description":"Return system health summary.","operationId":"get_system_status_admin_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/g10/readiness":{"get":{"tags":["admin"],"summary":"Get G10 Readiness","description":"Verify the cert-seed patients exist in the live FHIR store.\n\nThe g10 admin UI lists these patient IDs for Inferno. This endpoint proves\nthey are more than hard-coded labels by reading each Patient and counting\nthe key b2 CIRI resources expected from ``infra/fhir-samples/cert-seed``.\nIt returns only IDs/counts/status, not PHI.","operationId":"get_g10_readiness_admin_g10_readiness_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/G10Readiness"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/g10/cert-seed/load":{"post":{"tags":["admin"],"summary":"Load Cert Seed","description":"Idempotently push transaction Bundles from infra/fhir-samples/cert-seed/\ninto the configured FHIR server.\n\nMirrors what scripts/seed_cert_data.py does but runs in-cluster so the API\ncan reach the private FHIR endpoint without Tailscale + a service-account\nimpersonation dance. Admin-only.\n\nDefault criterion is \"b2\" (the ONC § 170.315(b)(2) CIRI base chart data\nfor the cert-seed patient cohort, which Scenarios 1-3 use).","operationId":"load_cert_seed_admin_g10_cert_seed_load_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"criterion","in":"query","required":false,"schema":{"type":"string","default":"b2","title":"Criterion"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertSeedLoadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/value-sets":{"get":{"tags":["admin"],"summary":"List Value Sets","description":"Return value set registry.","operationId":"list_value_sets_admin_value_sets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Value Sets Admin Value Sets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scim/v2/Users":{"post":{"tags":["scim"],"summary":"SCIM Create User (joiner)","description":"Provision a new EHR user from an external IDP (joiner event).","operationId":"scim_create_user_scim_v2_Users_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScimUserCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Scim Create User Scim V2 Users Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["scim"],"summary":"SCIM List Users","description":"Return paginated SCIM user list, optionally filtered by ``userName eq``.","operationId":"scim_list_users_scim_v2_Users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"}},{"name":"startIndex","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Startindex"}},{"name":"count","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Count"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Scim List Users Scim V2 Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scim/v2/Users/{uid}":{"get":{"tags":["scim"],"summary":"SCIM Get User","operationId":"scim_get_user_scim_v2_Users__uid__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Scim Get User Scim V2 Users  Uid  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["scim"],"summary":"SCIM Patch User (mover / leaver)","description":"Apply SCIM PatchOp.  Setting ``active=false`` is a *leaver* event and\nimmediately revokes all Firebase tokens (≤ 1 h SLA).","operationId":"scim_patch_user_scim_v2_Users__uid__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScimUserPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Scim Patch User Scim V2 Users  Uid  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scim"],"summary":"SCIM Delete User (hard leaver)","description":"Hard-delete a SCIM user and immediately revoke all Firebase tokens.","operationId":"scim_delete_user_scim_v2_Users__uid__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scim/v2/ServiceProviderConfig":{"get":{"tags":["scim"],"summary":"SCIM Service Provider Configuration","description":"RFC 7644 §5 — advertise supported SCIM features.","operationId":"scim_service_provider_config_scim_v2_ServiceProviderConfig_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Scim Service Provider Config Scim V2 Serviceproviderconfig Get"}}}}}}},"/abac/evaluate":{"get":{"tags":["abac"],"summary":"Evaluate ABAC policy (dry-run)","description":"Admin-only dry-run endpoint to test policy decisions without side effects.","operationId":"abac_evaluate_abac_evaluate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"role","in":"query","required":true,"schema":{"type":"string","title":"Role"}},{"name":"purpose","in":"query","required":true,"schema":{"$ref":"#/components/schemas/app__serving__abac__PurposeOfUse"}},{"name":"sensitivity","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SensitivityTag","default":"N"}},{"name":"jurisdiction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jurisdiction"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Abac Evaluate Abac Evaluate Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/idps":{"post":{"tags":["identity-federation"],"summary":"Register tenant IDP","description":"Admin-only: register an OIDC or SAML IDP for a tenant.","operationId":"register_idp_federation_idps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IDPRegisterRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Idp Federation Idps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["identity-federation"],"summary":"List registered IDPs","operationId":"list_idps_federation_idps_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Idps Federation Idps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/idps/{idp_id}":{"delete":{"tags":["identity-federation"],"summary":"Remove IDP","operationId":"remove_idp_federation_idps__idp_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idp_id","in":"path","required":true,"schema":{"type":"string","title":"Idp Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/oidc/initiate":{"get":{"tags":["identity-federation"],"summary":"Initiate OIDC SSO","description":"Return the authorization URL for the requested IDP.\n\nThe browser should redirect the user to ``authorization_url``.\nThe ``state`` value must be stored in the browser session and verified\non callback to prevent CSRF.","operationId":"oidc_initiate_federation_oidc_initiate_get","parameters":[{"name":"idp_id","in":"query","required":true,"schema":{"type":"string","title":"Idp Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Oidc Initiate Federation Oidc Initiate Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/oidc/callback":{"post":{"tags":["identity-federation"],"summary":"OIDC callback — exchange code for EHR token","description":"Validate OIDC callback and return a Firebase custom token.","operationId":"oidc_callback_federation_oidc_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCCallbackRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Oidc Callback Federation Oidc Callback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/saml/initiate":{"get":{"tags":["identity-federation"],"summary":"Initiate SAML SSO — returns AuthnRequest","description":"Build a SAML AuthnRequest and return it as a base64-encoded XML blob.\n\nThe browser should POST this as SAMLRequest to the IDP SSO URL.","operationId":"saml_initiate_federation_saml_initiate_get","parameters":[{"name":"idp_id","in":"query","required":true,"schema":{"type":"string","title":"Idp Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Saml Initiate Federation Saml Initiate Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/saml/acs":{"post":{"tags":["identity-federation"],"summary":"SAML Assertion Consumer Service","description":"Validate a SAML assertion and return a Firebase custom token.\n\nIn production this should use a proper SAML library (e.g. python3-saml or\npysaml2) that verifies the assertion signature against the IDP certificate.\nIn mock mode the assertion XML is parsed without signature verification.","operationId":"saml_acs_federation_saml_acs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SAMLACSRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Saml Acs Federation Saml Acs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token-manager/issue":{"post":{"tags":["token-manager"],"summary":"Issue short-lived access + rotating refresh tokens","description":"Issue a device-bound access token + refresh token for the authenticated user.\n\nHigh-risk roles (ADMIN, CLINICIAN) receive 15-minute access tokens.","operationId":"issue_tokens_token_manager_issue_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenIssueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Issue Tokens Token Manager Issue Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token-manager/refresh":{"post":{"tags":["token-manager"],"summary":"Rotate refresh token and obtain new access token","description":"Rotate the refresh token.  The old refresh token is immediately revoked.","operationId":"refresh_tokens_token_manager_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Refresh Tokens Token Manager Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token-manager/revoke":{"post":{"tags":["token-manager"],"summary":"Revoke all refresh tokens for a user","description":"Revoke all active refresh tokens.  Admins may target another uid.","operationId":"revoke_all_token_manager_revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"target_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke All Token Manager Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token-manager/epcs/verify-hardware":{"post":{"tags":["token-manager"],"summary":"PIV-CAC / FIDO2 hardware token verification for DEA EPCS (21 CFR § 1311)","description":"Verify a PIV-CAC card or FIDO2 hardware token for DEA EPCS prescribing.\n\nOn success, records the verification timestamp so that the caller may sign\ncontrolled-substance orders within the EPCS grace window\n(21 CFR § 1311.116(e) — 10 minutes).\n\nIn production this calls the WebAuthn assertion verification in ``mfa.py``.\nIn test/mock mode with ``SPHERE_FEDERATION_MOCK=1`` the assertion is\naccepted unconditionally.","operationId":"epcs_verify_hardware_token_manager_epcs_verify_hardware_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EPCSHardwareVerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Epcs Verify Hardware Token Manager Epcs Verify Hardware Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token-manager/epcs/status":{"get":{"tags":["token-manager"],"summary":"EPCS verification status for current user","operationId":"epcs_status_token_manager_epcs_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Epcs Status Token Manager Epcs Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-list":{"post":{"tags":["problem-list"],"summary":"Add Problem","operationId":"add_problem_problem_list_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["problem-list"],"summary":"List Problems","operationId":"list_problems_problem_list_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"clinical_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinical Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProblemOut"},"title":"Response List Problems Problem List Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-list/{problem_id}":{"get":{"tags":["problem-list"],"summary":"Get Problem","operationId":"get_problem_problem_list__problem_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["problem-list"],"summary":"Update Problem","operationId":"update_problem_problem_list__problem_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/allergy-list":{"post":{"tags":["allergy-list"],"summary":"Add Allergy","operationId":"add_allergy_allergy_list_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllergyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllergyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["allergy-list"],"summary":"List Allergies","operationId":"list_allergies_allergy_list_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"clinical_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinical Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AllergyOut"},"title":"Response List Allergies Allergy List Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/allergy-list/{allergy_id}":{"get":{"tags":["allergy-list"],"summary":"Get Allergy","operationId":"get_allergy_allergy_list__allergy_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"allergy_id","in":"path","required":true,"schema":{"type":"string","title":"Allergy Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllergyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["allergy-list"],"summary":"Update Allergy","operationId":"update_allergy_allergy_list__allergy_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"allergy_id","in":"path","required":true,"schema":{"type":"string","title":"Allergy Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllergyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllergyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/drug-formulary/search":{"get":{"tags":["drug-formulary"],"summary":"Search Formulary","description":"Search formulary for a drug by RxNorm code.","operationId":"search_formulary_drug_formulary_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rxnorm_code","in":"query","required":true,"schema":{"type":"string","title":"Rxnorm Code"}},{"name":"plan_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormularySearchResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/drug-formulary/preferred":{"get":{"tags":["drug-formulary"],"summary":"List Preferred Drugs","description":"Return preferred / tier-1 drugs, optionally filtered by therapeutic class.","operationId":"list_preferred_drugs_drug_formulary_preferred_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"drug_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drug Class"}},{"name":"plan_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DrugFormularyEntry"},"title":"Response List Preferred Drugs Drug Formulary Preferred Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/smoking-status":{"post":{"tags":["smoking-status"],"summary":"Record Smoking Status","operationId":"record_smoking_status_smoking_status_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmokingStatusIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmokingStatusOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/smoking-status/{patient_id}":{"get":{"tags":["smoking-status"],"summary":"Get Smoking Status","operationId":"get_smoking_status_smoking_status__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmokingStatusOut"},"title":"Response Get Smoking Status Smoking Status  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/smoking-status/codes/list":{"get":{"tags":["smoking-status"],"summary":"List Valid Codes","description":"Return allowed SNOMED CT smoking-status codes and their displays.","operationId":"list_valid_codes_smoking_status_codes_list_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response List Valid Codes Smoking Status Codes List Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-education":{"post":{"tags":["patient-education"],"summary":"Add Education Resource","operationId":"add_education_resource_patient_education_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EducationResourceIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EducationResourceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patient-education/{patient_id}":{"get":{"tags":["patient-education"],"summary":"Get Education Resources","operationId":"get_education_resources_patient_education__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EducationResourceOut"},"title":"Response Get Education Resources Patient Education  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/accounting-disclosures":{"post":{"tags":["accounting-disclosures"],"summary":"Record Disclosure","operationId":"record_disclosure_accounting_disclosures_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisclosureIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisclosureOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/accounting-disclosures/{patient_id}":{"get":{"tags":["accounting-disclosures"],"summary":"List Disclosures","operationId":"list_disclosures_accounting_disclosures__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DisclosureOut"},"title":"Response List Disclosures Accounting Disclosures  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/secure-messaging":{"post":{"tags":["secure-messaging"],"summary":"Send Message","operationId":"send_message_secure_messaging_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/secure-messaging/inbox/{patient_id}":{"get":{"tags":["secure-messaging"],"summary":"Get Inbox","operationId":"get_inbox_secure_messaging_inbox__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageOut"},"title":"Response Get Inbox Secure Messaging Inbox  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/secure-messaging/thread/{message_id}":{"get":{"tags":["secure-messaging"],"summary":"Get Message","operationId":"get_message_secure_messaging_thread__message_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/secure-messaging/{message_id}/mark-read":{"post":{"tags":["secure-messaging"],"summary":"Mark Read","operationId":"mark_read_secure_messaging__message_id__mark_read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cancer-registries":{"post":{"tags":["cancer-registries"],"summary":"Register Cancer Case","operationId":"register_cancer_case_cancer_registries_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancerCaseIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancerCaseOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cancer-registries/{case_id}/submit/naaccr":{"post":{"tags":["cancer-registries"],"summary":"Submit Naaccr","description":"Generate and (mock-)submit a NAACCR XML bundle to the state registry.","operationId":"submit_naaccr_cancer_registries__case_id__submit_naaccr_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"registry_id","in":"query","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cancer-registries/{case_id}/submit/hl7v2":{"post":{"tags":["cancer-registries"],"summary":"Submit Hl7V2","description":"Generate and (mock-)submit an HL7 v2.5.1 ORU^R01 message.","operationId":"submit_hl7v2_cancer_registries__case_id__submit_hl7v2_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"registry_id","in":"query","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cancer-registries/{patient_id}":{"get":{"tags":["cancer-registries"],"summary":"List Cancer Cases","operationId":"list_cancer_cases_cancer_registries__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CancerCaseOut"},"title":"Response List Cancer Cases Cancer Registries  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthcare-surveys":{"post":{"tags":["healthcare-surveys"],"summary":"Submit Survey Response","operationId":"submit_survey_response_healthcare_surveys_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyResponseIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyResponseOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthcare-surveys/{patient_id}":{"get":{"tags":["healthcare-surveys"],"summary":"List Survey Responses","operationId":"list_survey_responses_healthcare_surveys__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"survey_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/app__serving__healthcare_surveys__SurveyType"},{"type":"null"}],"title":"Survey Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SurveyResponseOut"},"title":"Response List Survey Responses Healthcare Surveys  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthcare-surveys/{response_id}/transmit":{"post":{"tags":["healthcare-surveys"],"summary":"Transmit Survey","description":"Transmit a completed survey response to CMS / state registry.","operationId":"transmit_survey_healthcare_surveys__response_id__transmit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveySubmissionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g01-automated-numerator":{"post":{"tags":["g01-automated-numerator"],"summary":"Record Numerator Event","operationId":"record_numerator_event_g01_automated_numerator_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumeratorEventIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumeratorEventOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g01-automated-numerator/{patient_id}":{"get":{"tags":["g01-automated-numerator"],"summary":"List Numerator Events","operationId":"list_numerator_events_g01_automated_numerator__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"measure_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Measure Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NumeratorEventOut"},"title":"Response List Numerator Events G01 Automated Numerator  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g02-measure-calculation/evaluate":{"post":{"tags":["g02-measure-calculation"],"summary":"Evaluate Measure","operationId":"evaluate_measure_g02_measure_calculation_evaluate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeasureCalcRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeasureCalcResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g02-measure-calculation/measures":{"get":{"tags":["g02-measure-calculation"],"summary":"List Available Measures","description":"Return catalogue of eCQMs configured in this instance.","operationId":"list_available_measures_g02_measure_calculation_measures_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}},"title":"Response List Available Measures G02 Measure Calculation Measures Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/g08-all-data/{patient_id}":{"get":{"tags":["g08-all-data"],"summary":"Get All Data","description":"Return all health data for the patient as a FHIR R4 Bundle.\n\nOptionally filter to specific resource types by passing a\ncomma-separated list, e.g. `resource_types=Condition,MedicationRequest`.","operationId":"get_all_data_g08_all_data__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"resource_types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Types"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllDataRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/real-world-testing/plans":{"post":{"tags":["real-world-testing"],"summary":"Create Rwt Plan","operationId":"create_rwt_plan_real_world_testing_plans_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RWTPlanIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RWTPlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["real-world-testing"],"summary":"List Rwt Plans","operationId":"list_rwt_plans_real_world_testing_plans_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RWTPlanOut"},"title":"Response List Rwt Plans Real World Testing Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/real-world-testing/plans/{plan_id}/submit":{"post":{"tags":["real-world-testing"],"summary":"Submit Rwt Plan","operationId":"submit_rwt_plan_real_world_testing_plans__plan_id__submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RWTPlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/real-world-testing/results":{"post":{"tags":["real-world-testing"],"summary":"Submit Rwt Results","operationId":"submit_rwt_results_real_world_testing_results_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RWTResultIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RWTResultOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["real-world-testing"],"summary":"List Rwt Results","operationId":"list_rwt_results_real_world_testing_results_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RWTResultOut"},"title":"Response List Rwt Results Real World Testing Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/real-world-insights/export":{"post":{"tags":["real-world-insights"],"summary":"Export Insights","operationId":"export_insights_real_world_insights_export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightsExportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightsExportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/real-world-insights/summary":{"get":{"tags":["real-world-insights"],"summary":"Get Insights Summary","operationId":"get_insights_summary_real_world_insights_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period_start","in":"query","required":true,"schema":{"type":"string","title":"Period Start"}},{"name":"period_end","in":"query","required":true,"schema":{"type":"string","title":"Period End"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightsExportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b17/training/attestations":{"post":{"tags":["b17-training-golive"],"summary":"Record training completion attestation","operationId":"record_attestation_b17_training_attestations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttestationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Attestation B17 Training Attestations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["b17-training-golive"],"summary":"List training attestations","operationId":"list_attestations_b17_training_attestations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Uid"}},{"name":"track","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TrainingTrack"},{"type":"null"}],"title":"Track"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Attestations B17 Training Attestations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b17/training/completion-rate":{"get":{"tags":["b17-training-golive"],"summary":"Training completion rate per track for a cohort","operationId":"completion_rate_b17_training_completion_rate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"track","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TrainingTrack"}},{"name":"uid","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"title":"Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Completion Rate B17 Training Completion Rate Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b17/super-users":{"post":{"tags":["b17-training-golive"],"summary":"Register a super-user for a department","operationId":"register_super_user_b17_super_users_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuperUserRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Super User B17 Super Users Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["b17-training-golive"],"summary":"List super-users","operationId":"list_super_users_b17_super_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"department","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Super Users B17 Super Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b17/super-users/{uid}/schedule":{"put":{"tags":["b17-training-golive"],"summary":"Update super-user floor-coverage schedule","operationId":"update_super_user_schedule_b17_super_users__uid__schedule_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverageScheduleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Super User Schedule B17 Super Users  Uid  Schedule Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b17/launch-gate":{"post":{"tags":["b17-training-golive"],"summary":"Create or reset the launch gate record","operationId":"create_launch_gate_b17_launch_gate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Launch Gate B17 Launch Gate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["b17-training-golive"],"summary":"Get current launch gate status","operationId":"get_launch_gate_b17_launch_gate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Launch Gate B17 Launch Gate Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b17/launch-gate/sections/{section}/sign-off":{"post":{"tags":["b17-training-golive"],"summary":"Sign off a launch gate section","operationId":"sign_off_section_b17_launch_gate_sections__section__sign_off_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"section","in":"path","required":true,"schema":{"type":"string","title":"Section"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateSignOffRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sign Off Section B17 Launch Gate Sections  Section  Sign Off Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b17/launch-gate/no-go-criteria":{"get":{"tags":["b17-training-golive"],"summary":"Evaluate no-go criteria; returns violations list","operationId":"no_go_criteria_b17_launch_gate_no_go_criteria_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"uid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Cohort UIDs for training check.","title":"Uid"},"description":"Cohort UIDs for training check."},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response No Go Criteria B17 Launch Gate No Go Criteria Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b17/cutover/milestones":{"post":{"tags":["b17-training-golive"],"summary":"Add a cutover plan milestone","operationId":"add_milestone_b17_cutover_milestones_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Milestone B17 Cutover Milestones Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["b17-training-golive"],"summary":"List cutover plan milestones","operationId":"list_milestones_b17_cutover_milestones_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MilestoneStatus"},{"type":"null"}],"title":"Status"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Milestones B17 Cutover Milestones Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b17/cutover/milestones/{milestone_id}":{"patch":{"tags":["b17-training-golive"],"summary":"Update cutover milestone status","operationId":"update_milestone_b17_cutover_milestones__milestone_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"milestone_id","in":"path","required":true,"schema":{"type":"string","title":"Milestone Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Milestone B17 Cutover Milestones  Milestone Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/events":{"post":{"tags":["quality_svc"],"summary":"Report Event","description":"Submit an adverse event / near-miss report.\n\nAccepts AHRQ Common Formats v2.0 event taxonomy.  Reporter identity is\npreserved server-side even for anonymous reports (de-identified in responses).\nSentinel-severity events auto-trigger an RCA workflow.","operationId":"report_event_quality_svc_events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__quality_svc__AdverseEventReport"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Event Quality Svc Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["quality_svc"],"summary":"List Events","description":"List adverse events with optional filters. Admin only.","operationId":"list_events_quality_svc_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EventCategory"},{"type":"null"}],"title":"Category"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EventSeverity"},{"type":"null"}],"title":"Severity"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EventStatus"},{"type":"null"}],"title":"Status"}},{"name":"unit_location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Location"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Events Quality Svc Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/events/{event_id}":{"get":{"tags":["quality_svc"],"summary":"Get Event","description":"Retrieve a single adverse event record.","operationId":"get_event_quality_svc_events__event_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Event Quality Svc Events  Event Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["quality_svc"],"summary":"Update Event","description":"Update event status or assign a reviewer.","operationId":"update_event_quality_svc_events__event_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Event Quality Svc Events  Event Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/rca":{"post":{"tags":["quality_svc"],"summary":"Initiate Rca","description":"Initiate an RCA for an adverse event.\n\nCreates a structured RCA workflow record and links it to the source event.","operationId":"initiate_rca_quality_svc_rca_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RCAInitRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Initiate Rca Quality Svc Rca Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/rca/{rca_id}/evidence":{"post":{"tags":["quality_svc"],"summary":"Add Rca Evidence","description":"Add a piece of evidence to an open RCA.","operationId":"add_rca_evidence_quality_svc_rca__rca_id__evidence_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rca_id","in":"path","required":true,"schema":{"type":"string","title":"Rca Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RCAEvidenceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Rca Evidence Quality Svc Rca  Rca Id  Evidence Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/rca/{rca_id}/findings":{"post":{"tags":["quality_svc"],"summary":"Submit Rca Findings","description":"Submit final RCA findings and corrective-action plan.","operationId":"submit_rca_findings_quality_svc_rca__rca_id__findings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rca_id","in":"path","required":true,"schema":{"type":"string","title":"Rca Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RCAFindingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Rca Findings Quality Svc Rca  Rca Id  Findings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/rca/{rca_id}":{"get":{"tags":["quality_svc"],"summary":"Get Rca","description":"Retrieve RCA record including all evidence.","operationId":"get_rca_quality_svc_rca__rca_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rca_id","in":"path","required":true,"schema":{"type":"string","title":"Rca Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Rca Quality Svc Rca  Rca Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/measures":{"get":{"tags":["quality_svc"],"summary":"List Quality Measures","description":"Return all configured quality measure rules.","operationId":"list_quality_measures_quality_svc_measures_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Quality Measures Quality Svc Measures Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["quality_svc"],"summary":"Create Quality Measure","description":"Register a new quality measure rule.","operationId":"create_quality_measure_quality_svc_measures_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityMeasureRule"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Quality Measure Quality Svc Measures Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/measures/{measure_id}/evaluate":{"post":{"tags":["quality_svc"],"summary":"Evaluate Quality Measure","description":"Evaluate a quality measure rule against current event data.\n\nCounts events matching the rule's category and severity within the rolling\nwindow and compares against the alert threshold.  In production this would\nquery a time-series store; here it runs over the in-memory event log.","operationId":"evaluate_quality_measure_quality_svc_measures__measure_id__evaluate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"measure_id","in":"path","required":true,"schema":{"type":"string","title":"Measure Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Evaluate Quality Measure Quality Svc Measures  Measure Id  Evaluate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/measures/evaluate-all":{"post":{"tags":["quality_svc"],"summary":"Evaluate All Measures","description":"Evaluate all quality measure rules and return a summary dashboard.","operationId":"evaluate_all_measures_quality_svc_measures_evaluate_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Evaluate All Measures Quality Svc Measures Evaluate All Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/tracer-reports":{"post":{"tags":["quality_svc"],"summary":"Generate Tracer Report","description":"Generate a tracer-style survey readiness report.\n\nProduces a structured assessment against TJC tracer methodology standards.\nEach checkpoint is evaluated as PASS / NEEDS_ATTENTION / FINDING based on\nrecent event data.  In production, this would query structured data from\nmultiple clinical systems; here it uses heuristics over the event log.","operationId":"generate_tracer_report_quality_svc_tracer_reports_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TracerRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Generate Tracer Report Quality Svc Tracer Reports Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["quality_svc"],"summary":"List Tracer Reports","description":"List tracer readiness reports.","operationId":"list_tracer_reports_quality_svc_tracer_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tracer_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TracerType"},{"type":"null"}],"title":"Tracer Type"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Tracer Reports Quality Svc Tracer Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quality-svc/tracer-reports/{report_id}":{"get":{"tags":["quality_svc"],"summary":"Get Tracer Report","description":"Retrieve a previously generated tracer report.","operationId":"get_tracer_report_quality_svc_tracer_reports__report_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Tracer Report Quality Svc Tracer Reports  Report Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/restrictions":{"post":{"tags":["compliance_ops"],"summary":"Create Restriction","description":"Capture a patient restriction request (45 CFR § 164.522(a)).\n\nIf the patient paid out-of-pocket in full AND the restriction targets a\nhealth plan, the restriction is automatically accepted per the mandatory\nacceptance rule introduced by HITECH § 13405(a).","operationId":"create_restriction_compliance_restrictions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__compliance_ops__RestrictionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Restriction Compliance Restrictions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["compliance_ops"],"summary":"List Restrictions","description":"List restriction requests.","operationId":"list_restrictions_compliance_restrictions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/app__serving__compliance_ops__RestrictionStatus"},{"type":"null"}],"title":"Status"}},{"name":"recipient_class","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/RestrictionRecipientClass"},{"type":"null"}],"title":"Recipient Class"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Restrictions Compliance Restrictions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/restrictions/{restriction_id}":{"get":{"tags":["compliance_ops"],"summary":"Get Restriction","description":"Retrieve a restriction request.","operationId":"get_restriction_compliance_restrictions__restriction_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"restriction_id","in":"path","required":true,"schema":{"type":"string","title":"Restriction Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Restriction Compliance Restrictions  Restriction Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["compliance_ops"],"summary":"Decide Restriction","description":"Accept, deny, or terminate a restriction request.\n\nMandatory-acceptance restrictions (OOP + health plan) cannot be denied.","operationId":"decide_restriction_compliance_restrictions__restriction_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"restriction_id","in":"path","required":true,"schema":{"type":"string","title":"Restriction Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__serving__compliance_ops__RestrictionDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide Restriction Compliance Restrictions  Restriction Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/confidential-comms":{"post":{"tags":["compliance_ops"],"summary":"Set Comm Preference","description":"Record a patient's confidential communications preference (45 CFR § 164.522(b)).\n\nCovered entities must accommodate reasonable requests for alternative\ncommunication channels or locations without requiring justification.","operationId":"set_comm_preference_compliance_confidential_comms_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfidentialCommPreference"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Comm Preference Compliance Confidential Comms Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/confidential-comms/{patient_id}":{"get":{"tags":["compliance_ops"],"summary":"Get Comm Preferences","description":"Return all active communication preferences for a patient.","operationId":"get_comm_preferences_compliance_confidential_comms__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Comm Preferences Compliance Confidential Comms  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/confidential-comms/{preference_id}":{"patch":{"tags":["compliance_ops"],"summary":"Update Comm Preference","description":"Update or deactivate a confidential communications preference.","operationId":"update_comm_preference_compliance_confidential_comms__preference_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preference_id","in":"path","required":true,"schema":{"type":"string","title":"Preference Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommPreferenceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Comm Preference Compliance Confidential Comms  Preference Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/npp/versions":{"post":{"tags":["compliance_ops"],"summary":"Publish Npp Version","description":"Publish a new NPP version (45 CFR § 164.520).\n\nThe new version becomes current on its effective date.  The superseded\nversion is archived and remains accessible for audit purposes.","operationId":"publish_npp_version_compliance_npp_versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NPPVersion"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Npp Version Compliance Npp Versions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["compliance_ops"],"summary":"List Npp Versions","description":"List NPP versions.","operationId":"list_npp_versions_compliance_npp_versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Npp Versions Compliance Npp Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/npp/versions/{version_id}":{"get":{"tags":["compliance_ops"],"summary":"Get Npp Version","description":"Retrieve a specific NPP version.","operationId":"get_npp_version_compliance_npp_versions__version_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Npp Version Compliance Npp Versions  Version Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/npp/acknowledgments":{"post":{"tags":["compliance_ops"],"summary":"Record Npp Acknowledgment","description":"Record a patient's NPP acknowledgment, refusal, or exception.\n\n45 CFR § 164.520(c)(2)(ii) — covered entity must document good-faith\nefforts to obtain acknowledgment; if patient refuses, that refusal must\nbe documented.","operationId":"record_npp_acknowledgment_compliance_npp_acknowledgments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NPPAcknowledgment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Npp Acknowledgment Compliance Npp Acknowledgments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/npp/acknowledgments/{patient_id}":{"get":{"tags":["compliance_ops"],"summary":"Get Patient Npp Acks","description":"Return all NPP acknowledgment records for a patient.","operationId":"get_patient_npp_acks_compliance_npp_acknowledgments__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Patient Npp Acks Compliance Npp Acknowledgments  Patient Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compliance/npp/acknowledgment-status":{"get":{"tags":["compliance_ops"],"summary":"Npp Acknowledgment Status","description":"Return aggregate NPP acknowledgment statistics for the current NPP version.\n\nUseful for compliance reporting — tracks total patients acknowledged,\nrefused, or not yet offered the current NPP.","operationId":"npp_acknowledgment_status_compliance_npp_acknowledgment_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Npp Acknowledgment Status Compliance Npp Acknowledgment Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/diagnostic/echo":{"post":{"summary":"Diagnostic Echo","description":"Diagnostic POST endpoint — echoes the request body back. KAN-186.","operationId":"diagnostic_echo_diagnostic_echo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosticRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Diagnostic Echo Diagnostic Echo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/readyz":{"get":{"summary":"Readyz","description":"Readiness probe — confirms the app is initialised and ready to serve traffic.\n\nCloud Run uses this to gate traffic during gradual rollout.  Returns 200\nonce startup is complete; fails (500) if any critical dependency is\nunavailable.  Currently lightweight; extend to check DB/FHIR reachability\nonce connection pooling is wired up.","operationId":"readyz_readyz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Readyz Readyz Get"}}}}}}},"/auth/session":{"post":{"summary":"Create Session","description":"Exchange a Firebase ID token for a server-side session cookie (12 h max).\n\nThe client presents this cookie on subsequent requests.  The cookie is\nHttpOnly, Secure (in prod), and SameSite=Strict to mitigate CSRF.\n\nIf a `bypass_token` is supplied (issued by /mfa/webauthn/authenticate/complete\nor /mfa/recovery/use), it is verified and the session is created even when\nthe ID token lacks the Firebase MFA second-factor claim.  This supports\nWebAuthn hardware keys as an application-layer second factor.","operationId":"create_session_auth_session_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Session","description":"Sign out: clear the session cookie and revoke the underlying refresh token.","operationId":"delete_session_auth_session_delete","parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/revoke":{"post":{"summary":"Revoke Tokens","description":"Revoke all refresh tokens for a UID.\n\nRequires a valid, MFA-verified bearer token from an admin-role user.\nONC § 170.315(d)(1) — server-side role enforcement.\nONC § 170.315(d)(2) — emits SYSTEM_ADMIN_ACTION audit event.","operationId":"revoke_tokens_auth_revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me":{"get":{"summary":"Whoami","description":"Return the authenticated user's identity — demonstrates Depends(verify_id_token).","operationId":"whoami_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"__session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Session"}},{"name":"__sphere_mfa","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"  Sphere Mfa"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Whoami Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ABCDEFBundle":{"properties":{"bundle_id":{"type":"string","title":"Bundle Id"},"admission_id":{"type":"string","title":"Admission Id"},"assessment_date":{"type":"string","title":"Assessment Date"},"awakening_trial_done":{"type":"boolean","title":"Awakening Trial Done","default":false},"breathing_trial_done":{"type":"boolean","title":"Breathing Trial Done","default":false},"cam_icu_positive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cam Icu Positive"},"rass_target":{"$ref":"#/components/schemas/SedationScale","default":"-2"},"early_mobility_level":{"type":"integer","maximum":5.0,"minimum":0.0,"title":"Early Mobility Level","default":0},"family_engaged":{"type":"boolean","title":"Family Engaged","default":false},"assessed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assessed By"}},"type":"object","required":["admission_id","assessment_date"],"title":"ABCDEFBundle"},"ABO":{"type":"string","enum":["A","B","AB","O"],"title":"ABO"},"APIKeyRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"key_name":{"type":"string","title":"Key Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"expires_in_days":{"type":"integer","maximum":730.0,"title":"Expires In Days","default":365},"rate_limit_tier":{"$ref":"#/components/schemas/RateLimitTier","default":"developer"}},"type":"object","required":["client_id","key_name","scopes"],"title":"APIKeyRequest"},"ARAgingRow":{"properties":{"payer_id":{"type":"string","title":"Payer Id"},"payer_name":{"type":"string","title":"Payer Name"},"current_0_30":{"type":"number","title":"Current 0 30"},"days_31_60":{"type":"number","title":"Days 31 60"},"days_61_90":{"type":"number","title":"Days 61 90"},"days_91_120":{"type":"number","title":"Days 91 120"},"over_120":{"type":"number","title":"Over 120"},"total_ar":{"type":"number","title":"Total Ar"}},"type":"object","required":["payer_id","payer_name","current_0_30","days_31_60","days_61_90","days_91_120","over_120","total_ar"],"title":"ARAgingRow"},"ARDashboardMetrics":{"properties":{"total_ar":{"type":"number","title":"Total Ar"},"days_in_ar":{"type":"number","title":"Days In Ar"},"denial_rate_pct":{"type":"number","title":"Denial Rate Pct"},"clean_claim_rate_pct":{"type":"number","title":"Clean Claim Rate Pct"},"first_pass_yield_pct":{"type":"number","title":"First Pass Yield Pct"},"net_collection_rate_pct":{"type":"number","title":"Net Collection Rate Pct"},"charges_mtd":{"type":"number","title":"Charges Mtd"},"payments_mtd":{"type":"number","title":"Payments Mtd"},"adjustments_mtd":{"type":"number","title":"Adjustments Mtd"}},"type":"object","required":["total_ar","days_in_ar","denial_rate_pct","clean_claim_rate_pct","first_pass_yield_pct","net_collection_rate_pct","charges_mtd","payments_mtd","adjustments_mtd"],"title":"ARDashboardMetrics"},"ASAPhysicalStatus":{"type":"string","enum":["ASA1","ASA2","ASA3","ASA4","ASA5","ASA6"],"title":"ASAPhysicalStatus"},"ASQ3Result":{"type":"string","enum":["on_track","monitoring","referral"],"title":"ASQ3Result"},"ASQ3Screen":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"screen_date":{"type":"string","format":"date","title":"Screen Date"},"age_months":{"type":"integer","title":"Age Months"},"communication_score":{"type":"integer","title":"Communication Score"},"gross_motor_score":{"type":"integer","title":"Gross Motor Score"},"fine_motor_score":{"type":"integer","title":"Fine Motor Score"},"problem_solving_score":{"type":"integer","title":"Problem Solving Score"},"personal_social_score":{"type":"integer","title":"Personal Social Score"},"communication_result":{"$ref":"#/components/schemas/ASQ3Result"},"gross_motor_result":{"$ref":"#/components/schemas/ASQ3Result"},"fine_motor_result":{"$ref":"#/components/schemas/ASQ3Result"},"problem_solving_result":{"$ref":"#/components/schemas/ASQ3Result"},"personal_social_result":{"$ref":"#/components/schemas/ASQ3Result"},"overall_result":{"$ref":"#/components/schemas/ASQ3Result"},"referral_recommended":{"type":"boolean","title":"Referral Recommended","default":false},"completed_by":{"type":"string","title":"Completed By"},"provider_id":{"type":"string","title":"Provider Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","screen_date","age_months","communication_score","gross_motor_score","fine_motor_score","problem_solving_score","personal_social_score","communication_result","gross_motor_result","fine_motor_result","problem_solving_result","personal_social_result","overall_result","completed_by","provider_id"],"title":"ASQ3Screen"},"AUCDecision":{"type":"string","enum":["appropriate","uncertain","rarely_appropriate","not_applicable"],"title":"AUCDecision"},"AUCRequest":{"properties":{"order_id":{"type":"string","title":"Order Id"},"patient_id":{"type":"string","title":"Patient Id"},"cpt_code":{"type":"string","title":"Cpt Code","description":"Requested imaging CPT code"},"indication_codes":{"items":{"type":"string"},"type":"array","title":"Indication Codes","description":"ICD-10 indication codes"},"clinical_indication":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinical Indication"},"ordering_provider_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ordering Provider Npi"}},"type":"object","required":["order_id","patient_id","cpt_code","indication_codes"],"title":"AUCRequest"},"AUCResponse":{"properties":{"order_id":{"type":"string","title":"Order Id"},"cpt_code":{"type":"string","title":"Cpt Code"},"decision":{"$ref":"#/components/schemas/AUCDecision"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score","description":"ACR Select score 1-9"},"guideline_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guideline Name"},"guideline_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guideline Version"},"qcdsm_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qcdsm Id","description":"Qualified CDSM identifier for claim"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"evaluated_at":{"type":"string","title":"Evaluated At"}},"type":"object","required":["order_id","cpt_code","decision","evaluated_at"],"title":"AUCResponse"},"AcceptDraftRequest":{"properties":{"edited_note":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Edited Note"}},"type":"object","title":"AcceptDraftRequest"},"AcceptReferralRequest":{"properties":{"clinician_name":{"type":"string","title":"Clinician Name"},"facility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility"}},"type":"object","required":["clinician_name"],"title":"AcceptReferralRequest"},"AccessType":{"type":"string","enum":["arteriovenous_fistula","arteriovenous_graft","tunneled_cvc","non_tunneled_cvc","pd_catheter"],"title":"AccessType"},"AccessionRequest":{"properties":{"accession_number":{"type":"string","title":"Accession Number","description":"LIS-assigned accession number"},"received_by":{"type":"string","title":"Received By","description":"Lab tech receiving the specimen"},"condition_acceptable":{"type":"boolean","title":"Condition Acceptable","description":"Whether specimen condition is acceptable","default":true},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"}},"type":"object","required":["accession_number","received_by"],"title":"AccessionRequest"},"AccountListItem":{"properties":{"name":{"type":"string","title":"Name"},"host":{"type":"string","title":"Host"},"port":{"type":"integer","title":"Port"},"user":{"type":"string","title":"User"},"use_ssl":{"type":"boolean","title":"Use Ssl"},"mailbox":{"type":"string","title":"Mailbox"}},"type":"object","required":["name","host","port","user","use_ssl","mailbox"],"title":"AccountListItem"},"AckStatus":{"type":"string","enum":["ACKNOWLEDGED","OFFERED_REFUSED","UNABLE_TO_OBTAIN","EMERGENCY_EXCEPTION"],"title":"AckStatus"},"AcknowledgeAlertRequest":{"properties":{"read_back":{"type":"string","title":"Read Back","description":"Clinician read-back of result value (closed-loop verification)"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["read_back"],"title":"AcknowledgeAlertRequest"},"AcknowledgeRequest":{"properties":{"acknowledgment_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Acknowledgment Note"}},"type":"object","title":"AcknowledgeRequest"},"ActivateRequest":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"ActivateRequest"},"ActivityDetail":{"properties":{"kind":{"type":"string","title":"Kind","description":"Activity kind: ServiceRequest | MedicationRequest | NutritionOrder | Task","default":"ServiceRequest"},"code_system":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code System","description":"Coding system (e.g. SNOMED)"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Activity code"},"code_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Display","description":"Activity display name"},"description":{"type":"string","title":"Description","description":"Free-text description of the activity","default":""},"status":{"type":"string","title":"Status","description":"Activity status: not-started | scheduled | in-progress | completed | cancelled","default":"not-started"},"scheduled_period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Period Start","description":"ISO 8601 scheduled start"},"scheduled_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Period End","description":"ISO 8601 scheduled end"}},"type":"object","title":"ActivityDetail","description":"A planned or completed care plan activity / intervention."},"AcuityLevel":{"type":"string","enum":["1_emergent","2_urgent","3_semi_urgent","4_routine","5_non_urgent"],"title":"AcuityLevel"},"AcuteSettingType":{"type":"string","enum":["or","inpatient","ldr","ltach","irf","assisted_living","pace","urgent_care","fqhc","rhc","telehealth"],"title":"AcuteSettingType"},"AdcEvent":{"properties":{"cabinet_id":{"type":"string","title":"Cabinet Id"},"pocket_id":{"type":"string","title":"Pocket Id"},"event_type":{"$ref":"#/components/schemas/DispensingEvent"},"drug_name":{"type":"string","title":"Drug Name"},"quantity":{"type":"number","title":"Quantity"},"unit":{"type":"string","title":"Unit"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Reason"}},"type":"object","required":["cabinet_id","pocket_id","event_type","drug_name","quantity","unit"],"title":"AdcEvent"},"AddSymptomsRequest":{"properties":{"symptoms":{"items":{"$ref":"#/components/schemas/SymptomEntry"},"type":"array","title":"Symptoms"}},"type":"object","required":["symptoms"],"title":"AddSymptomsRequest"},"Addendum":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"author_uid":{"type":"string","title":"Author Uid"},"added_at":{"type":"string","title":"Added At"}},"type":"object","required":["id","text","author_uid","added_at"],"title":"Addendum","description":"A single addendum appended after note signing."},"AddendumRequest":{"properties":{"text":{"type":"string","maxLength":10000,"minLength":1,"title":"Text"}},"type":"object","required":["text"],"title":"AddendumRequest"},"AdequacyStatus":{"type":"string","enum":["adequate","inadequate","borderline"],"title":"AdequacyStatus"},"AdolescentConfidentialEncounter":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"confidentiality_flags":{"items":{"$ref":"#/components/schemas/AdolescentConfidentialityFlag"},"type":"array","title":"Confidentiality Flags"},"suppress_from_portal":{"type":"boolean","title":"Suppress From Portal","default":true},"suppress_from_eob":{"type":"boolean","title":"Suppress From Eob","default":true},"state_law_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Law Basis"},"provider_id":{"type":"string","title":"Provider Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","encounter_id","provider_id"],"title":"AdolescentConfidentialEncounter"},"AdolescentConfidentialityFlag":{"type":"string","enum":["reproductive_health","mental_health","substance_use","sti","domestic_violence"],"title":"AdolescentConfidentialityFlag"},"AdvanceDirective":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"directive_type":{"$ref":"#/components/schemas/AdvanceDirectiveType"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"cpr_preference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cpr Preference"},"mechanical_ventilation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mechanical Ventilation"},"artificial_nutrition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artificial Nutrition"},"healthcare_proxy_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Healthcare Proxy Name"},"healthcare_proxy_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Healthcare Proxy Phone"},"document_reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Reference Id"},"witnessed":{"type":"boolean","title":"Witnessed","default":false},"notarized":{"type":"boolean","title":"Notarized","default":false},"provider_id":{"type":"string","title":"Provider Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","directive_type","effective_date","provider_id"],"title":"AdvanceDirective"},"AdvanceDirectiveType":{"type":"string","enum":["living_will","healthcare_proxy","polst","molst","dnr","full_code"],"title":"AdvanceDirectiveType"},"AdvanceStepRequest":{"properties":{"step_key":{"type":"string","title":"Step Key"},"context":{"additionalProperties":true,"type":"object","title":"Context"},"attestation_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attestation Text"},"ipass":{"anyOf":[{"$ref":"#/components/schemas/IPassHandoff"},{"type":"null"}]},"sbar":{"anyOf":[{"$ref":"#/components/schemas/SbarCommunication"},{"type":"null"}]}},"type":"object","required":["step_key"],"title":"AdvanceStepRequest"},"AffinityDomainConfig":{"properties":{"oid":{"type":"string","title":"Oid","description":"Domain OID (e.g. 2.16.840.1.113883.3.9900.1)"},"display_name":{"type":"string","title":"Display Name","description":"Human-readable domain name"},"registry_endpoint":{"type":"string","title":"Registry Endpoint","description":"IHE XDS/XDR registry SOAP endpoint URL"},"repository_endpoint":{"type":"string","title":"Repository Endpoint","description":"IHE XDS/XDR repository SOAP endpoint URL"},"home_community_id":{"type":"string","title":"Home Community Id","description":"XCA Home Community ID OID"}},"type":"object","required":["oid","display_name","registry_endpoint","repository_endpoint","home_community_id"],"title":"AffinityDomainConfig"},"AffinityDomainResponse":{"properties":{"oid":{"type":"string","title":"Oid"},"display_name":{"type":"string","title":"Display Name"},"registry_endpoint":{"type":"string","title":"Registry Endpoint"},"repository_endpoint":{"type":"string","title":"Repository Endpoint"},"home_community_id":{"type":"string","title":"Home Community Id"},"configured_at":{"type":"string","title":"Configured At"}},"type":"object","required":["oid","display_name","registry_endpoint","repository_endpoint","home_community_id","configured_at"],"title":"AffinityDomainResponse"},"AgentContractSchema":{"properties":{"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema","description":"JSON Schema object describing accepted inputs"},"output_schema":{"additionalProperties":true,"type":"object","title":"Output Schema","description":"JSON Schema object describing expected output"},"allowed_tools":{"items":{"type":"string"},"type":"array","title":"Allowed Tools","description":"Tool names from TOOL_CATALOG that this agent may call"}},"type":"object","title":"AgentContractSchema","description":"Typed input/output contract for an agent."},"AgentDefinitionResponse":{"properties":{"agent_def_id":{"type":"string","title":"Agent Def Id"},"agent_code":{"type":"string","title":"Agent Code"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"active":{"type":"boolean","title":"Active"},"current_version_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Version Tag"}},"type":"object","required":["agent_def_id","agent_code","display_name","description","active","current_version_tag"],"title":"AgentDefinitionResponse"},"AgentEntry":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"version":{"type":"string","title":"Version"},"type":{"type":"string","title":"Type"},"model":{"type":"string","title":"Model"},"status":{"type":"string","title":"Status"},"eval_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eval Score"}},"type":"object","required":["id","name","version","type","model","status","eval_score"],"title":"AgentEntry"},"AgentRegistration":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"name":{"type":"string","title":"Name"},"tier":{"$ref":"#/components/schemas/AgentTier"},"version":{"type":"string","title":"Version","default":"1.0.0"},"description":{"type":"string","title":"Description"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"fhir_resources":{"items":{"type":"string"},"type":"array","title":"Fhir Resources"},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"},"max_context_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Context Tokens"},"warm":{"type":"boolean","title":"Warm","default":false},"deployment_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Region"},"registered_at":{"type":"string","format":"date-time","title":"Registered At"}},"type":"object","required":["name","tier","description"],"title":"AgentRegistration"},"AgentRegistryEntryResponse":{"properties":{"registry_id":{"type":"string","title":"Registry Id"},"agent_code":{"type":"string","title":"Agent Code"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"active":{"type":"boolean","title":"Active"},"current_version_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Version Tag"},"current_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Version Id"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["registry_id","agent_code","display_name","description","active","current_version_tag","current_version_id","created_at"],"title":"AgentRegistryEntryResponse"},"AgentRunResponse":{"properties":{"agent_run_id":{"type":"string","title":"Agent Run Id"},"agent_version_id":{"type":"string","title":"Agent Version Id"},"agent_code":{"type":"string","title":"Agent Code"},"patient_id":{"type":"string","title":"Patient Id"},"status":{"$ref":"#/components/schemas/AgentRunStatus"},"output_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Text"},"citations":{"items":{"$ref":"#/components/schemas/Citation"},"type":"array","title":"Citations"},"safety_flags":{"items":{"$ref":"#/components/schemas/SafetyFlag"},"type":"array","title":"Safety Flags"},"fhir_provenance_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Provenance Id"},"started_at":{"type":"string","title":"Started At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["agent_run_id","agent_version_id","agent_code","patient_id","status","output_text","citations","safety_flags","fhir_provenance_id","started_at","completed_at"],"title":"AgentRunResponse"},"AgentRunStatus":{"type":"string","enum":["running","completed","failed"],"title":"AgentRunStatus"},"AgentTier":{"type":"string","enum":["tier_1","tier_2","tier_3"],"title":"AgentTier"},"AgentTraceEventResponse":{"properties":{"trace_event_id":{"type":"string","title":"Trace Event Id"},"session_id":{"type":"string","title":"Session Id"},"seq":{"type":"integer","title":"Seq"},"event_type":{"$ref":"#/components/schemas/TraceEventType"},"agent_code":{"type":"string","title":"Agent Code"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"audit_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audit Event Id"},"recorded_at":{"type":"string","title":"Recorded At"}},"type":"object","required":["trace_event_id","session_id","seq","event_type","agent_code","patient_id","data","audit_event_id","recorded_at"],"title":"AgentTraceEventResponse"},"AgentVersionResponse":{"properties":{"version_id":{"type":"string","title":"Version Id"},"registry_id":{"type":"string","title":"Registry Id"},"agent_code":{"type":"string","title":"Agent Code"},"version_tag":{"type":"string","title":"Version Tag"},"model_class":{"$ref":"#/components/schemas/ModelClass"},"resolved_model_id":{"type":"string","title":"Resolved Model Id"},"prompt_hash":{"type":"string","title":"Prompt Hash"},"contract":{"$ref":"#/components/schemas/AgentContractSchema"},"confidence_threshold":{"type":"number","title":"Confidence Threshold"},"escalation":{"$ref":"#/components/schemas/EscalationPolicy"},"governance":{"$ref":"#/components/schemas/GovernanceSettings"},"is_current":{"type":"boolean","title":"Is Current"},"published_at":{"type":"string","title":"Published At"},"deprecated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deprecated At"}},"type":"object","required":["version_id","registry_id","agent_code","version_tag","model_class","resolved_model_id","prompt_hash","contract","confidence_threshold","escalation","governance","is_current","published_at","deprecated_at"],"title":"AgentVersionResponse"},"AlertAcknowledgement":{"properties":{"status":{"$ref":"#/components/schemas/AlertStatus"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["status"],"title":"AlertAcknowledgement"},"AlertBroadcastRequest":{"properties":{"severity_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter","description":"Only broadcast alerts at this severity or above (low/medium/high/critical)."},"dry_run":{"type":"boolean","title":"Dry Run","description":"If true, validate the payload but do not POST to the webhook.","default":false}},"type":"object","title":"AlertBroadcastRequest","description":"Broadcast open alerts to an external notification webhook."},"AlertSeverity-Output":{"type":"string","enum":["info","warning","critical"],"title":"AlertSeverity"},"AlertStatus":{"type":"string","enum":["open","acknowledged","resolved","false_positive"],"title":"AlertStatus"},"AllDataRequestOut":{"properties":{"bundle_id":{"type":"string","title":"Bundle Id"},"patient_id":{"type":"string","title":"Patient Id"},"resource_count":{"type":"integer","title":"Resource Count"},"resource_types_included":{"items":{"type":"string"},"type":"array","title":"Resource Types Included"},"generated_at":{"type":"string","title":"Generated At"},"bundle":{"additionalProperties":true,"type":"object","title":"Bundle"}},"type":"object","required":["bundle_id","patient_id","resource_count","resource_types_included","generated_at","bundle"],"title":"AllDataRequestOut"},"AllergyCategory":{"type":"string","enum":["medication","food","environment","biologic"],"title":"AllergyCategory"},"AllergyCriticality":{"type":"string","enum":["low","high","unable-to-assess"],"title":"AllergyCriticality"},"AllergyCurateRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"candidate_entries":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Candidate Entries"}},"type":"object","required":["patient_id"],"title":"AllergyCurateRequest"},"AllergyEntry":{"properties":{"substance":{"type":"string","maxLength":500,"title":"Substance","description":"Allergen name (e.g. 'penicillin', 'peanuts')"},"reaction":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reaction","description":"Patient-reported reaction (e.g. 'hives', 'anaphylaxis')"},"severity":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Severity","description":"Patient-reported severity (mild / moderate / severe)"}},"type":"object","required":["substance"],"title":"AllergyEntry","description":"Single allergy or intolerance entry (USCDI v3 Allergies & Intolerances)."},"AllergyIn":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"substance_code":{"type":"string","title":"Substance Code"},"substance_system":{"type":"string","title":"Substance System","default":"http://www.nlm.nih.gov/research/umls/rxnorm"},"substance_display":{"type":"string","title":"Substance Display"},"category":{"$ref":"#/components/schemas/AllergyCategory","default":"medication"},"criticality":{"$ref":"#/components/schemas/AllergyCriticality","default":"unable-to-assess"},"clinical_status":{"type":"string","pattern":"^(active|inactive|resolved)$","title":"Clinical Status","default":"active"},"reaction_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reaction Code"},"reaction_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reaction Display"},"onset_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","substance_code","substance_display"],"title":"AllergyIn"},"AllergyOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"substance_code":{"type":"string","title":"Substance Code"},"substance_system":{"type":"string","title":"Substance System"},"substance_display":{"type":"string","title":"Substance Display"},"category":{"type":"string","title":"Category"},"criticality":{"type":"string","title":"Criticality"},"clinical_status":{"type":"string","title":"Clinical Status"},"reaction_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reaction Display"},"onset_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Date"},"recorded_date":{"type":"string","title":"Recorded Date"}},"type":"object","required":["id","patient_id","substance_code","substance_system","substance_display","category","criticality","clinical_status","reaction_display","onset_date","recorded_date"],"title":"AllergyOut"},"AllergySummary":{"properties":{"id":{"type":"string","title":"Id"},"substance":{"type":"string","title":"Substance"},"criticality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Criticality"},"clinical_status":{"type":"string","title":"Clinical Status"},"manifestations":{"items":{"type":"string"},"type":"array","title":"Manifestations"},"onset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","substance","clinical_status"],"title":"AllergySummary"},"AmendmentDisposition":{"properties":{"decision":{"$ref":"#/components/schemas/app__serving__privacy__AmendmentStatus"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["decision"],"title":"AmendmentDisposition"},"AmendmentRecord":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"resource_type":{"type":"string","title":"Resource Type","description":"FHIR resource type of the record being amended (e.g. Condition)"},"resource_id":{"type":"string","title":"Resource Id","description":"Opaque FHIR resource ID (no PHI)"},"requested_change":{"type":"string","title":"Requested Change","description":"Patient-authored description of the desired correction"},"status":{"$ref":"#/components/schemas/AmendmentStatus-Output","default":"pending"},"submitted_at":{"type":"string","title":"Submitted At"},"submitted_by_uid":{"type":"string","title":"Submitted By Uid"},"reviewed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed At"},"reviewed_by_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By Uid"},"provider_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Note"},"amended_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amended Content"}},"type":"object","required":["id","patient_id","resource_type","resource_id","requested_change","submitted_at","submitted_by_uid"],"title":"AmendmentRecord","description":"Stored amendment record — preserves full chain per ONC § 170.315(d)(4)."},"AmendmentRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"record_id":{"type":"string","title":"Record Id","description":"Identifier of the record to be amended"},"requested_change":{"type":"string","title":"Requested Change","description":"Patient's description of the requested amendment"}},"type":"object","required":["patient_id","record_id","requested_change"],"title":"AmendmentRequest"},"AmendmentStatus-Output":{"type":"string","enum":["pending","accepted","denied","modified"],"title":"AmendmentStatus"},"AnesthesiaRecord":{"properties":{"id":{"type":"string","title":"Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"patient_id":{"type":"string","title":"Patient Id"},"anesthesia_type":{"$ref":"#/components/schemas/AnesthesiaType"},"asa_status":{"$ref":"#/components/schemas/ASAPhysicalStatus"},"preop_assessment_done":{"type":"boolean","title":"Preop Assessment Done","default":false},"airway_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Airway Class"},"intubation_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intubation Method"},"agents_used":{"items":{"type":"string"},"type":"array","title":"Agents Used"},"total_anesthesia_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Anesthesia Minutes"},"induction_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Induction Time"},"emergence_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Emergence Time"},"pacu_admission_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pacu Admission Time"},"pacu_discharge_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pacu Discharge Time"},"complications":{"items":{"type":"string"},"type":"array","title":"Complications"},"anesthesiologist_id":{"type":"string","title":"Anesthesiologist Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["encounter_id","patient_id","anesthesia_type","asa_status","anesthesiologist_id"],"title":"AnesthesiaRecord"},"AnesthesiaType":{"type":"string","enum":["general","regional","neuraxial","local","moderate_sedation","deep_sedation","topical","none"],"title":"AnesthesiaType"},"AntepartumRecord":{"properties":{"record_id":{"type":"string","title":"Record Id"},"patient_id":{"type":"string","title":"Patient Id"},"edd":{"type":"string","title":"Edd"},"gravida":{"type":"integer","title":"Gravida","default":1},"para":{"type":"integer","title":"Para","default":0},"gbs_status":{"$ref":"#/components/schemas/GBSStatus","default":"not_tested"},"risk_factors":{"items":{"type":"string"},"type":"array","title":"Risk Factors"},"group_b_strep_prophylaxis":{"type":"boolean","title":"Group B Strep Prophylaxis","default":false},"gdm_dx":{"type":"boolean","title":"Gdm Dx","default":false},"htn_disorder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Htn Disorder"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","edd"],"title":"AntepartumRecord"},"AntimicrobialAgentClass":{"type":"string","enum":["aminoglycosides","beta_lactams","carbapenems","cephalosporins","fluoroquinolones","glycopeptides","macrolides","oxazolidinones","penicillins","tetracyclines"],"title":"AntimicrobialAgentClass","description":"NHSN antimicrobial agent classes for AU/AR reporting."},"AntimicrobialClass":{"type":"string","enum":["carbapenem","vancomycin","fluoroquinolone","beta_lactam","antifungal","other"],"title":"AntimicrobialClass"},"AntimicrobialResistanceRecord":{"properties":{"organism_name":{"type":"string","title":"Organism Name","description":"e.g. Klebsiella pneumoniae"},"organism_snomed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organism Snomed","description":"SNOMED CT code"},"agent_name":{"type":"string","title":"Agent Name"},"agent_class":{"$ref":"#/components/schemas/AntimicrobialAgentClass"},"resistance_pattern":{"$ref":"#/components/schemas/ResistancePattern"},"isolate_count":{"type":"integer","minimum":0.0,"title":"Isolate Count"},"location_id":{"type":"string","title":"Location Id"},"specimen_source":{"type":"string","title":"Specimen Source","description":"blood | urine | wound | respiratory | other","default":"blood"}},"type":"object","required":["organism_name","agent_name","agent_class","resistance_pattern","isolate_count","location_id"],"title":"AntimicrobialResistanceRecord","description":"Single organism-agent-pattern record for NHSN AR component — (f)(6)."},"AntimicrobialStewardshipReview":{"properties":{"review_id":{"type":"string","title":"Review Id"},"patient_id":{"type":"string","title":"Patient Id"},"antimicrobial":{"type":"string","title":"Antimicrobial"},"antimicrobial_class":{"$ref":"#/components/schemas/AntimicrobialClass"},"indication":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indication"},"start_date":{"type":"string","title":"Start Date"},"review_date":{"type":"string","title":"Review Date"},"recommended_action":{"type":"string","title":"Recommended Action"},"culture_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Culture Data"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"prescriber_notified":{"type":"boolean","title":"Prescriber Notified","default":false},"prescriber_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prescriber Response"}},"type":"object","required":["patient_id","antimicrobial","antimicrobial_class","start_date","review_date","recommended_action"],"title":"AntimicrobialStewardshipReview"},"AntimicrobialUsageRecord":{"properties":{"agent_class":{"$ref":"#/components/schemas/AntimicrobialAgentClass"},"agent_name":{"type":"string","title":"Agent Name","description":"Generic drug name"},"route":{"type":"string","title":"Route","description":"IV | PO | IM | Inhaled","default":"IV"},"days_of_therapy":{"type":"integer","minimum":0.0,"title":"Days Of Therapy","description":"DOT = patient-days on agent"},"defined_daily_dose":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Defined Daily Dose","description":"DDD per 1000 patient-days"},"location_id":{"type":"string","title":"Location Id","description":"NHSN location code (e.g. MICU, 6N-MED)"},"patient_days_denominator":{"type":"integer","minimum":1.0,"title":"Patient Days Denominator"}},"type":"object","required":["agent_class","agent_name","days_of_therapy","location_id","patient_days_denominator"],"title":"AntimicrobialUsageRecord","description":"Single agent-location record for NHSN AU component — (f)(6)."},"AppRegistration":{"properties":{"app_name":{"type":"string","title":"App Name"},"app_type":{"$ref":"#/components/schemas/AppType"},"organization_name":{"type":"string","title":"Organization Name"},"organization_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Url"},"redirect_uris":{"items":{"type":"string"},"type":"array","title":"Redirect Uris","description":"OAuth redirect URIs"},"launch_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launch Uri","description":"EHR launch URI (for EHR-launch apps)"},"scopes_requested":{"items":{"type":"string"},"type":"array","title":"Scopes Requested","description":"SMART scopes requested"},"jwks_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jwks Uri","description":"JWKS endpoint for backend service auth"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"terms_of_service_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Of Service Url"},"privacy_policy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Policy Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["app_name","app_type","organization_name"],"title":"AppRegistration"},"AppStatus":{"type":"string","enum":["draft","pending_review","certified","suspended","revoked"],"title":"AppStatus"},"AppType":{"type":"string","enum":["smart_ehr_launch","smart_standalone","backend_service","patient_facing","b2b_system"],"title":"AppType"},"AppendSegmentsRequest":{"properties":{"segments":{"items":{"$ref":"#/components/schemas/TranscriptSegment"},"type":"array","title":"Segments"}},"type":"object","required":["segments"],"title":"AppendSegmentsRequest"},"AppendTurnRequest":{"properties":{"role":{"type":"string","title":"Role","description":"One of: user, assistant, tool, system"},"content":{"type":"string","title":"Content","description":"Text content of the turn"},"tool_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Name","description":"Tool name when role=tool"},"token_count":{"type":"integer","minimum":0.0,"title":"Token Count","description":"Caller-supplied token count; 0 → server estimates","default":0}},"type":"object","required":["role","content"],"title":"AppendTurnRequest"},"ApplyRequest":{"properties":{"decisions":{"items":{"$ref":"#/components/schemas/ReconcileDecision"},"type":"array","title":"Decisions"},"items":{"items":{"$ref":"#/components/schemas/ReconcileItem"},"type":"array","title":"Items"},"source_document_reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Document Reference Id"}},"type":"object","required":["decisions","items"],"title":"ApplyRequest","description":"Body for POST /reconciliation/{patient_id}/apply."},"ApplyResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"applied":{"type":"integer","title":"Applied","description":"Number of items acted on (create/update)"},"skipped":{"type":"integer","title":"Skipped","description":"Number of items kept as-is (keep_existing / reject)"}},"type":"object","required":["patient_id","applied","skipped"],"title":"ApplyResponse"},"AppointmentSummary":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"service_type":{"type":"string","title":"Service Type"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"},"participant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","status","service_type"],"title":"AppointmentSummary"},"ApproveModelRequest":{"properties":{"notes":{"type":"string","title":"Notes","default":""}},"type":"object","title":"ApproveModelRequest"},"ArchivalEligibilityRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"record_type":{"type":"string","title":"Record Type"},"last_contact_date":{"type":"string","title":"Last Contact Date"},"date_of_birth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Of Birth"}},"type":"object","required":["patient_id","record_type","last_contact_date"],"title":"ArchivalEligibilityRequest"},"AssistedLivingResident":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"setting_type":{"$ref":"#/components/schemas/AcuteSettingType"},"admission_date":{"type":"string","format":"date-time","title":"Admission Date"},"discharge_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discharge Date"},"level_of_care":{"type":"string","title":"Level Of Care"},"adl_assistance_needed":{"items":{"type":"string"},"type":"array","title":"Adl Assistance Needed"},"pace_enrollment_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pace Enrollment Date"},"pace_disenrollment_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pace Disenrollment Date"},"pace_primary_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pace Primary Site"},"care_plan_review_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Care Plan Review Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","setting_type","admission_date","level_of_care"],"title":"AssistedLivingResident"},"AttachmentType":{"type":"string","enum":["X12-275","PDF","HL7-CCDA","FHIR-Bundle"],"title":"AttachmentType"},"AttendanceStatus":{"type":"string","enum":["scheduled","clocked_in","clocked_out","absent","late"],"title":"AttendanceStatus"},"AttestationRequest":{"properties":{"user_uid":{"type":"string","title":"User Uid","description":"Firebase UID of the learner."},"track":{"$ref":"#/components/schemas/TrainingTrack"},"module":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Module","description":"Training module number (1-5)."},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At","description":"ISO datetime of completion. Defaults to now."}},"type":"object","required":["user_uid","track","module"],"title":"AttestationRequest"},"AuditClass":{"type":"string","enum":["STANDARD","PHI_ACCESS","CLINICAL_DECISION","ADMINISTRATIVE"],"title":"AuditClass"},"AuditEvent":{"properties":{"audit_event_id":{"type":"string","title":"Audit Event Id"},"tool_name":{"type":"string","title":"Tool Name"},"audit_class":{"$ref":"#/components/schemas/AuditClass"},"caller_id":{"type":"string","title":"Caller Id"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"outcome":{"$ref":"#/components/schemas/SandboxOutcome"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"invocation_id":{"type":"string","title":"Invocation Id"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"}},"type":"object","required":["tool_name","audit_class","caller_id","patient_id","outcome","session_id","invocation_id"],"title":"AuditEvent"},"AuditSearchRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id","description":"Tenant identifier — required to enforce audit segregation."},"user_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Uid"},"date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From","description":"ISO datetime lower bound (inclusive)."},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To","description":"ISO datetime upper bound (inclusive)."},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"source_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ip"},"limit":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Limit","default":100}},"type":"object","required":["tenant_id"],"title":"AuditSearchRequest","description":"Privacy-officer audit search request.\n\nAll fields are optional filters.  At least one of ``tenant_id``,\n``date_from``, or ``date_to`` must be provided to avoid full-table scans."},"AutoverifyResultRequest":{"properties":{"observation_id":{"type":"string","title":"Observation Id"},"loinc_code":{"type":"string","title":"Loinc Code"},"numeric_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Numeric Value"},"previous_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Previous Value"},"qc_passed":{"type":"boolean","title":"Qc Passed","default":true},"instrument_flags":{"items":{"type":"string"},"type":"array","title":"Instrument Flags"}},"type":"object","required":["observation_id","loinc_code"],"title":"AutoverifyResultRequest"},"AutoverifyRuleRequest":{"properties":{"name":{"type":"string","title":"Name"},"loinc_code":{"type":"string","title":"Loinc Code","description":"LOINC code this rule applies to"},"delta_check_pct":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Delta Check Pct","description":"Max % change from previous result to pass delta check"},"qc_required":{"type":"boolean","title":"Qc Required","description":"Whether in-run QC must pass","default":true},"auto_release":{"type":"boolean","title":"Auto Release","description":"Release result without manual review if all checks pass","default":true},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name","loinc_code"],"title":"AutoverifyRuleRequest"},"BackendClientCreate":{"properties":{"client_name":{"type":"string","title":"Client Name","description":"Human-readable application name"},"jwks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Jwks","description":"JSON Web Key Set (JWKS) containing the client's public key(s)"},"jwks_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jwks Uri","description":"URL for the client's public JWKS"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","description":"System-level scopes this backend client may request","default":["system/*.read"]},"contacts":{"items":{"type":"string"},"type":"array","title":"Contacts"}},"type":"object","required":["client_name"],"title":"BackendClientCreate","description":"SMART Backend Services client registration (ONC § 170.315(g)(9))."},"BackendClientResponse":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_name":{"type":"string","title":"Client Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"contacts":{"items":{"type":"string"},"type":"array","title":"Contacts"},"jwks_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jwks Uri"},"created_at":{"type":"number","title":"Created At"},"created_by":{"type":"string","title":"Created By"}},"type":"object","required":["client_id","client_name","scopes","contacts","created_at","created_by"],"title":"BackendClientResponse"},"BatchEligibilityRequest":{"properties":{"patient_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Patient Ids"},"payer_id":{"type":"string","title":"Payer Id"},"service_type":{"$ref":"#/components/schemas/ServiceTypeCode","default":"30"},"service_date":{"type":"string","format":"date","title":"Service Date"},"cadence":{"$ref":"#/components/schemas/VerificationCadence","default":"batch_72h"}},"type":"object","required":["patient_ids","payer_id"],"title":"BatchEligibilityRequest"},"BatchEligibilityResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"submitted_count":{"type":"integer","title":"Submitted Count"},"accepted_count":{"type":"integer","title":"Accepted Count"},"rejected_count":{"type":"integer","title":"Rejected Count"},"cadence":{"$ref":"#/components/schemas/VerificationCadence"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"results":{"items":{"$ref":"#/components/schemas/EligibilityResponse"},"type":"array","title":"Results"}},"type":"object","required":["batch_id","submitted_count","accepted_count","rejected_count","cadence"],"title":"BatchEligibilityResponse"},"BedAssignRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"bed_id":{"type":"string","title":"Bed Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"requesting_provider_npi":{"type":"string","title":"Requesting Provider Npi"},"isolation_precautions":{"items":{"type":"string"},"type":"array","title":"Isolation Precautions"}},"type":"object","required":["patient_id","bed_id","encounter_id","requesting_provider_npi"],"title":"BedAssignRequest"},"BedManagerRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"required_level_of_care":{"type":"string","title":"Required Level Of Care","default":"medical"}},"type":"object","required":["patient_id"],"title":"BedManagerRequest"},"BedStatus":{"type":"string","enum":["available","occupied","housekeeping","maintenance","blocked"],"title":"BedStatus"},"BedTrackingUpdate":{"properties":{"room":{"type":"string","title":"Room"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"status":{"type":"string","title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["room","status"],"title":"BedTrackingUpdate"},"BedUpdateRequest":{"properties":{"bed_id":{"type":"string","title":"Bed Id"},"status":{"$ref":"#/components/schemas/BedStatus"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["bed_id","status"],"title":"BedUpdateRequest"},"BedsideVerification":{"properties":{"verification_id":{"type":"string","title":"Verification Id"},"order_id":{"type":"string","title":"Order Id"},"unit_isbt":{"type":"string","title":"Unit Isbt"},"patient_id_confirmed":{"type":"boolean","title":"Patient Id Confirmed","default":false},"unit_label_confirmed":{"type":"boolean","title":"Unit Label Confirmed","default":false},"expiry_confirmed":{"type":"boolean","title":"Expiry Confirmed","default":false},"rn1_id":{"type":"string","title":"Rn1 Id"},"rn2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rn2 Id"},"barcode_scan_used":{"type":"boolean","title":"Barcode Scan Used","default":false},"verified_at":{"type":"string","format":"date-time","title":"Verified At"}},"type":"object","required":["order_id","unit_isbt","rn1_id"],"title":"BedsideVerification"},"BehavioralHealthRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"screeners":{"items":{"type":"string"},"type":"array","title":"Screeners"}},"type":"object","required":["patient_id"],"title":"BehavioralHealthRequest"},"BenefitNetwork":{"type":"string","enum":["in_network","out_of_network","unknown"],"title":"BenefitNetwork"},"BiasMetric":{"properties":{"demographic_group":{"type":"string","title":"Demographic Group"},"metric_name":{"type":"string","title":"Metric Name"},"value":{"type":"number","title":"Value"},"reference_value":{"type":"number","title":"Reference Value"},"disparity_ratio":{"type":"number","title":"Disparity Ratio"},"within_tolerance":{"type":"boolean","title":"Within Tolerance"}},"type":"object","required":["demographic_group","metric_name","value","reference_value","disparity_ratio","within_tolerance"],"title":"BiasMetric","description":"Continuous bias & calibration metrics stored per eval run."},"BirthDefectCase":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"birth_date":{"type":"string","format":"date","title":"Birth Date"},"diagnosis_date":{"type":"string","format":"date","title":"Diagnosis Date"},"defect_category":{"$ref":"#/components/schemas/BirthDefectCategory"},"icd10_code":{"type":"string","title":"Icd10 Code","description":"ICD-10-CM Q-block code e.g. Q21.1"},"defect_description":{"type":"string","title":"Defect Description"},"birth_weight_grams":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birth Weight Grams"},"gestational_age_weeks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gestational Age Weeks"},"maternal_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maternal Age"},"state_registry_code":{"type":"string","maxLength":2,"minLength":2,"title":"State Registry Code"},"additional_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Additional Fields"}},"type":"object","required":["patient_id","birth_date","diagnosis_date","defect_category","icd10_code","defect_description","state_registry_code"],"title":"BirthDefectCase","description":"Birth defect registry case — state-specific BIRTH_DEFECT registry."},"BirthDefectCategory":{"type":"string","enum":["Q00-Q07","Q10-Q18","Q16-Q18","Q20-Q28","Q30-Q34","Q35-Q37","Q38-Q45","Q50-Q56","Q60-Q64","Q65-Q79","Q90-Q99"],"title":"BirthDefectCategory","description":"ICD-10-CM Q-block categories for birth defect registry."},"BlastocystStage":{"type":"string","enum":["early","blastocyst","expanding","expanded","hatching","hatched"],"title":"BlastocystStage"},"BloodProduct":{"type":"string","enum":["prbcs","ffp","platelets","cryoprecipitate","whole_blood","irradiated_prbcs","cmv_negative_prbcs","washed_prbcs","granulocytes"],"title":"BloodProduct"},"BloodUnitInventory":{"properties":{"unit_isbt":{"type":"string","title":"Unit Isbt"},"product":{"$ref":"#/components/schemas/BloodProduct"},"abo":{"$ref":"#/components/schemas/ABO"},"rh":{"$ref":"#/components/schemas/RhFactor"},"collection_date":{"type":"string","title":"Collection Date"},"expiry_date":{"type":"string","title":"Expiry Date"},"available":{"type":"boolean","title":"Available","default":true},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},"type":"object","required":["unit_isbt","product","abo","rh","collection_date","expiry_date"],"title":"BloodUnitInventory"},"Body_introspect_token_oauth_token_introspect_post":{"properties":{"token":{"type":"string","title":"Token"},"token_type_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Type Hint"}},"type":"object","required":["token"],"title":"Body_introspect_token_oauth_token_introspect_post"},"Body_oauth_approve_oauth_authorize_approve_post":{"properties":{"consent_token":{"type":"string","title":"Consent Token"},"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient ID the user is granting access to"},"uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid","description":"Deprecated fallback for non-browser harnesses. Browser consent approval resolves the authenticated user from the session cookie."},"granted_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted Scope","description":"Space-separated final scope set the user has consented to. When omitted, the full requested scope is granted. Inferno's 'Limited Access App' test requires that user deselections at the consent screen be honoured here — denied resource scopes must be absent from the issued access token."}},"type":"object","required":["consent_token","patient_id"],"title":"Body_oauth_approve_oauth_authorize_approve_post"},"Body_oauth_authorize_post_oauth_authorize_post":{"properties":{"response_type":{"type":"string","title":"Response Type"},"client_id":{"type":"string","title":"Client Id"},"redirect_uri":{"type":"string","title":"Redirect Uri"},"scope":{"type":"string","title":"Scope"},"state":{"type":"string","title":"State"},"aud":{"type":"string","title":"Aud","description":"FHIR base URL (SMART requirement)"},"launch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launch"},"code_challenge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Challenge"},"code_challenge_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Challenge Method"},"patient":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient","description":"Pre-selected patient ID (EHR launch)"},"nonce":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nonce","description":"OpenID Connect nonce (mirrored back in id_token)"}},"type":"object","required":["response_type","client_id","redirect_uri","scope","state","aud"],"title":"Body_oauth_authorize_post_oauth_authorize_post"},"Body_oauth_deny_oauth_authorize_deny_post":{"properties":{"consent_token":{"type":"string","title":"Consent Token"},"uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"}},"type":"object","required":["consent_token"],"title":"Body_oauth_deny_oauth_authorize_deny_post"},"Body_oauth_token_oauth_token_post":{"properties":{"grant_type":{"type":"string","title":"Grant Type"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"redirect_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Uri"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"},"code_verifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Verifier"},"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"},"client_assertion_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Assertion Type"},"client_assertion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Assertion"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},"type":"object","required":["grant_type"],"title":"Body_oauth_token_oauth_token_post"},"Body_revoke_token_oauth_token_revoke_post":{"properties":{"token":{"type":"string","title":"Token"},"token_type_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Type Hint"}},"type":"object","required":["token"],"title":"Body_revoke_token_oauth_token_revoke_post"},"BreachAssessmentRequest":{"properties":{"incident_id":{"type":"string","title":"Incident Id"},"phi_nature_and_extent":{"type":"string","title":"Phi Nature And Extent","description":"Nature and extent of PHI involved, including types and likelihood of re-identification"},"unauthorized_person":{"type":"string","title":"Unauthorized Person","description":"Who used the PHI or to whom it was disclosed"},"phi_actually_acquired":{"type":"boolean","title":"Phi Actually Acquired","description":"Whether PHI was actually acquired or viewed"},"mitigation":{"type":"string","title":"Mitigation","description":"Extent to which risk has been mitigated"}},"type":"object","required":["incident_id","phi_nature_and_extent","unauthorized_person","phi_actually_acquired","mitigation"],"title":"BreachAssessmentRequest"},"BreachDraftNotificationRequest":{"properties":{"incident_id":{"type":"string","title":"Incident Id","description":"Must match a prior breach assessment result"},"affected_individual_count":{"type":"integer","title":"Affected Individual Count"},"phi_categories":{"items":{"type":"string"},"type":"array","title":"Phi Categories","description":"Types of PHI involved (e.g., ['name', 'SSN', 'diagnosis'])"},"discovery_date":{"type":"string","title":"Discovery Date","description":"ISO-8601 date breach was discovered"},"contact_for_questions":{"type":"string","title":"Contact For Questions","description":"Name and phone for affected individuals to call"}},"type":"object","required":["incident_id","affected_individual_count","phi_categories","discovery_date","contact_for_questions"],"title":"BreachDraftNotificationRequest"},"BreachNotifyRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"jurisdiction_code":{"type":"string","title":"Jurisdiction Code"},"incident_summary":{"type":"string","title":"Incident Summary"},"notification_channel":{"type":"string","title":"Notification Channel","description":"mail | email | portal | phone"},"regulator_notified":{"type":"boolean","title":"Regulator Notified","default":false},"regulator_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Regulator Reference"}},"type":"object","required":["patient_id","jurisdiction_code","incident_summary","notification_channel"],"title":"BreachNotifyRequest"},"BumpType":{"type":"string","enum":["major","minor","patch"],"title":"BumpType"},"CABReview":{"properties":{"vote":{"$ref":"#/components/schemas/CABVote"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"reviewer_role":{"type":"string","title":"Reviewer Role","description":"Role of the reviewer, e.g. 'medical_director', 'security_officer', 'engineering_lead'"}},"type":"object","required":["vote","reviewer_role"],"title":"CABReview"},"CABVote":{"type":"string","enum":["approve","reject","abstain"],"title":"CABVote"},"CACRequest":{"properties":{"encounter_id":{"type":"string","title":"Encounter Id"},"note_text":{"type":"string","minLength":1,"title":"Note Text"},"encounter_type":{"type":"string","title":"Encounter Type","description":"outpatient | inpatient | ed | skilled_nursing","default":"outpatient"}},"type":"object","required":["encounter_id","note_text"],"title":"CACRequest","description":"Computer-Assisted Coding request from clinical note text."},"CACResponse":{"properties":{"encounter_id":{"type":"string","title":"Encounter Id"},"suggested_diagnoses":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Suggested Diagnoses"},"suggested_procedures":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Suggested Procedures"},"hcc_capture_opportunities":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Hcc Capture Opportunities"},"confidence_scores":{"additionalProperties":{"type":"number"},"type":"object","title":"Confidence Scores"}},"type":"object","required":["encounter_id","suggested_diagnoses","suggested_procedures","hcc_capture_opportunities","confidence_scores"],"title":"CACResponse"},"CAQHAttestationRequest":{"properties":{"npi":{"type":"string","title":"Npi"},"caqh_provider_id":{"type":"string","title":"Caqh Provider Id"},"authorization_form_ref":{"type":"string","title":"Authorization Form Ref","description":"GCS URI of signed CAQH authorization form"},"requesting_org_id":{"type":"string","title":"Requesting Org Id"}},"type":"object","required":["npi","caqh_provider_id","authorization_form_ref","requesting_org_id"],"title":"CAQHAttestationRequest"},"CCMProgram":{"type":"string","enum":["diabetes","hypertension","heart_failure","copd","ckd","general"],"title":"CCMProgram"},"CDISCExportRequest":{"properties":{"export_id":{"type":"string","title":"Export Id"},"protocol_id":{"type":"string","title":"Protocol Id"},"format":{"type":"string","title":"Format","default":"sdtm"},"domains":{"items":{"type":"string"},"type":"array","title":"Domains"},"data_cutoff_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Cutoff Date"},"requested_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"}},"type":"object","required":["protocol_id"],"title":"CDISCExportRequest"},"CDMEntry":{"properties":{"cdm_code":{"type":"string","title":"Cdm Code"},"description":{"type":"string","title":"Description"},"procedure_code":{"type":"string","title":"Procedure Code"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code"},"standard_charge":{"type":"number","title":"Standard Charge"},"payer_negotiated_rates":{"additionalProperties":{"type":"number"},"type":"object","title":"Payer Negotiated Rates"}},"type":"object","required":["cdm_code","description","procedure_code","revenue_code","standard_charge"],"title":"CDMEntry"},"CDMItem":{"properties":{"charge_code":{"type":"string","title":"Charge Code","description":"Internal CDM charge code"},"description":{"type":"string","title":"Description"},"cpt_codes":{"items":{"type":"string"},"type":"array","title":"Cpt Codes"},"hcpcs_codes":{"items":{"type":"string"},"type":"array","title":"Hcpcs Codes"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code"},"gross_charge":{"type":"number","minimum":0.0,"title":"Gross Charge"},"discounted_cash_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Discounted Cash Price"},"de_identified_min_charge":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"De Identified Min Charge"},"de_identified_max_charge":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"De Identified Max Charge"},"negotiated_rates":{"items":{"$ref":"#/components/schemas/NegotiatedRate"},"type":"array","title":"Negotiated Rates"},"status":{"$ref":"#/components/schemas/app__serving__cdm_supply_chain__ChargeStatus","default":"active"},"shoppable":{"type":"boolean","title":"Shoppable","default":false}},"type":"object","required":["charge_code","description","gross_charge"],"title":"CDMItem"},"CDMItemCreate":{"properties":{"charge_code":{"type":"string","title":"Charge Code"},"description":{"type":"string","title":"Description"},"cpt_codes":{"items":{"type":"string"},"type":"array","title":"Cpt Codes"},"hcpcs_codes":{"items":{"type":"string"},"type":"array","title":"Hcpcs Codes"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code"},"gross_charge":{"type":"number","minimum":0.0,"title":"Gross Charge"},"discounted_cash_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discounted Cash Price"},"shoppable":{"type":"boolean","title":"Shoppable","default":false}},"type":"object","required":["charge_code","description","gross_charge"],"title":"CDMItemCreate"},"CDMItemUpdate":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"gross_charge":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Gross Charge"},"discounted_cash_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Discounted Cash Price"},"status":{"anyOf":[{"$ref":"#/components/schemas/ChargeStatus-Input"},{"type":"null"}]},"shoppable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shoppable"}},"type":"object","title":"CDMItemUpdate"},"CDSCard":{"properties":{"summary":{"type":"string","title":"Summary"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"indicator":{"type":"string","title":"Indicator"},"source":{"additionalProperties":true,"type":"object","title":"Source"},"suggestions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Suggestions"},"overrideReasons":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Overridereasons"}},"type":"object","required":["summary","indicator","source"],"title":"CDSCard"},"CDSHooksRequest":{"properties":{"hook":{"type":"string","title":"Hook","description":"CDS Hooks hook ID, e.g. 'medication-prescribe'"},"hook_instance":{"type":"string","title":"Hook Instance","description":"UUID for this specific invocation"},"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient ID"},"context":{"additionalProperties":true,"type":"object","title":"Context","description":"Hook-specific context (medications, orders, etc.)"},"prefetch":{"additionalProperties":true,"type":"object","title":"Prefetch","description":"Prefetched FHIR resources"}},"type":"object","required":["hook","hook_instance","patient_id"],"title":"CDSHooksRequest","description":"Minimal CDS Hooks 2.0 request payload."},"CDSHooksResponse":{"properties":{"cards":{"items":{"$ref":"#/components/schemas/CDSCard"},"type":"array","title":"Cards"},"systemActions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Systemactions"}},"type":"object","required":["cards"],"title":"CDSHooksResponse"},"CQMDataElementResponse":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"measure_ids":{"items":{"type":"string"},"type":"array","title":"Measure Ids"},"qdm_category":{"type":"string","title":"Qdm Category"},"code_system":{"type":"string","title":"Code System"},"code":{"type":"string","title":"Code"},"display":{"type":"string","title":"Display"},"effective_date":{"type":"string","title":"Effective Date"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"value_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Unit"},"value_code_system":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Code System"},"attribute":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribute"},"period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End"},"author_datetime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Datetime"},"discharge_disposition_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discharge Disposition Code"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"recorded_at":{"type":"string","title":"Recorded At"}},"type":"object","required":["id","patient_id","measure_ids","qdm_category","code_system","code","display","effective_date","value","value_unit","encounter_id","recorded_at"],"title":"CQMDataElementResponse"},"CRDCard":{"properties":{"summary":{"type":"string","title":"Summary"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"indicator":{"type":"string","title":"Indicator","description":"info | warning | critical","default":"info"},"requires_pa":{"type":"boolean","title":"Requires Pa","default":false},"pa_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pa Reason"},"dtr_launch_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dtr Launch Url"}},"type":"object","required":["summary"],"title":"CRDCard"},"CRDHookEvent":{"type":"string","enum":["order-sign","order-select","appointment-book","encounter-start"],"title":"CRDHookEvent"},"CRDRequest":{"properties":{"hook":{"$ref":"#/components/schemas/CRDHookEvent"},"patient_id":{"type":"string","title":"Patient Id"},"practitioner_id":{"type":"string","title":"Practitioner Id"},"payer_id":{"type":"string","title":"Payer Id"},"service_codes":{"items":{"type":"string"},"type":"array","title":"Service Codes","description":"CPT/HCPCS codes to check"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"}},"type":"object","required":["hook","patient_id","practitioner_id","payer_id","service_codes"],"title":"CRDRequest"},"CRDResponse":{"properties":{"cards":{"items":{"$ref":"#/components/schemas/CRDCard"},"type":"array","title":"Cards"},"system_actions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"System Actions"}},"type":"object","required":["cards"],"title":"CRDResponse"},"CSCountRecord":{"properties":{"count_id":{"type":"string","title":"Count Id"},"location":{"type":"string","title":"Location"},"drug_name":{"type":"string","title":"Drug Name"},"drug_schedule":{"type":"string","title":"Drug Schedule"},"expected_quantity":{"type":"number","title":"Expected Quantity"},"counted_quantity":{"type":"number","title":"Counted Quantity"},"unit":{"type":"string","title":"Unit"},"discrepancy":{"type":"number","title":"Discrepancy"},"status":{"$ref":"#/components/schemas/CSCountStatus"},"submitted_by":{"type":"string","title":"Submitted By"},"witness_id":{"type":"string","title":"Witness Id"},"shift":{"type":"string","title":"Shift"},"resolution":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Resolution"},"submitted_at":{"type":"string","title":"Submitted At"}},"type":"object","required":["count_id","location","drug_name","drug_schedule","expected_quantity","counted_quantity","unit","discrepancy","status","submitted_by","witness_id","shift","submitted_at"],"title":"CSCountRecord"},"CSCountStatus":{"type":"string","enum":["pending","discrepancy","resolved","submitted"],"title":"CSCountStatus"},"CSCountSubmission":{"properties":{"location":{"type":"string","title":"Location","description":"Unit / pocket / cabinet identifier"},"drug_name":{"type":"string","title":"Drug Name"},"drug_schedule":{"type":"string","title":"Drug Schedule","description":"CII | CIII | CIV | CV"},"expected_quantity":{"type":"number","title":"Expected Quantity"},"counted_quantity":{"type":"number","title":"Counted Quantity"},"unit":{"type":"string","title":"Unit","description":"tablets | mL | vials | patches","default":"tablets"},"witness_id":{"type":"string","title":"Witness Id"},"shift":{"type":"string","title":"Shift","description":"day | evening | night"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["location","drug_name","drug_schedule","expected_quantity","counted_quantity","witness_id","shift"],"title":"CSCountSubmission"},"CSDiscrepancyResolution":{"properties":{"explanation":{"type":"string","title":"Explanation"},"corrective_action":{"type":"string","title":"Corrective Action"},"second_witness_id":{"type":"string","title":"Second Witness Id"}},"type":"object","required":["explanation","corrective_action","second_witness_id"],"title":"CSDiscrepancyResolution"},"CTCAEGrade":{"type":"integer","enum":[0,1,2,3,4,5],"title":"CTCAEGrade"},"CalibrationRecord":{"properties":{"instrument_id":{"type":"string","title":"Instrument Id"},"calibrator_lot":{"type":"string","title":"Calibrator Lot"},"analyte_loinc":{"type":"string","title":"Analyte Loinc"},"calibration_date":{"type":"string","title":"Calibration Date"},"performed_by":{"type":"string","title":"Performed By"},"passed":{"type":"boolean","title":"Passed"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["instrument_id","calibrator_lot","analyte_loinc","calibration_date","performed_by","passed"],"title":"CalibrationRecord"},"CallDisposition":{"type":"string","enum":["transferred_911","scheduled_same_day","scheduled_next_day","telehealth_initiated","message_sent_to_care_team","nurse_advice_given","callback_scheduled","abandoned"],"title":"CallDisposition"},"CancelRequest":{"properties":{"original_message_id":{"type":"string","title":"Original Message Id"},"cancel_reason":{"type":"string","title":"Cancel Reason"}},"type":"object","required":["original_message_id","cancel_reason"],"title":"CancelRequest"},"CancelRxRequest":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id","description":"transmission_id of the original NewRx to cancel"},"reason":{"type":"string","title":"Reason","description":"Reason for cancellation"}},"type":"object","required":["transmission_id","reason"],"title":"CancelRxRequest","description":"Body for POST /eprescribing/{patient_id}/cancel."},"CancelRxResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"cancel_transmission_id":{"type":"string","title":"Cancel Transmission Id"},"message_type":{"type":"string","title":"Message Type","default":"CancelRx"},"status":{"type":"string","enum":["pending","sent","received","error","cancelled"],"title":"Status"}},"type":"object","required":["transmission_id","cancel_transmission_id","status"],"title":"CancelRxResponse"},"CancerCaseIn":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"primary_site":{"$ref":"#/components/schemas/app__serving__cancer_registries__CancerSite"},"histology_code":{"type":"string","title":"Histology Code","description":"ICD-O-3 histology code"},"histology_display":{"type":"string","title":"Histology Display"},"diagnosis_date":{"type":"string","title":"Diagnosis Date","description":"ISO 8601 date"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage","description":"AJCC or SEER summary stage"},"laterality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Laterality","description":"left | right | bilateral | N/A"},"registry_id":{"type":"string","title":"Registry Id","description":"State registry identifier"}},"type":"object","required":["patient_id","primary_site","histology_code","histology_display","diagnosis_date","registry_id"],"title":"CancerCaseIn"},"CancerCaseOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"primary_site":{"type":"string","title":"Primary Site"},"histology_code":{"type":"string","title":"Histology Code"},"histology_display":{"type":"string","title":"Histology Display"},"diagnosis_date":{"type":"string","title":"Diagnosis Date"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"submitted":{"type":"boolean","title":"Submitted"},"submission_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Id"},"submission_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Format"}},"type":"object","required":["id","patient_id","primary_site","histology_code","histology_display","diagnosis_date","stage","submitted","submission_id","submission_format"],"title":"CancerCaseOut"},"CancerCaseReport":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"naaccr_record_type":{"type":"string","title":"Naaccr Record Type","description":"I=Incidence, M=Modified","default":"I"},"primary_site":{"$ref":"#/components/schemas/app__serving__quality_depth__CancerSite"},"histology_icdo3":{"type":"string","title":"Histology Icdo3","description":"ICD-O-3 histology code e.g. 8500/3"},"laterality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Laterality"},"diagnosis_date":{"type":"string","format":"date","title":"Diagnosis Date"},"stage_at_diagnosis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage At Diagnosis"},"tnm_t":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tnm T"},"tnm_n":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tnm N"},"tnm_m":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tnm M"},"treating_facility_npi":{"type":"string","title":"Treating Facility Npi"},"transmission_format":{"$ref":"#/components/schemas/CancerRegistryFormat","default":"NAACCR_XML"},"naaccr_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Naaccr Fields","description":"Additional NAACCR v23 fields"}},"type":"object","required":["patient_id","primary_site","histology_icdo3","diagnosis_date","treating_facility_npi"],"title":"CancerCaseReport"},"CancerRegistryFormat":{"type":"string","enum":["NAACCR_XML","NAACCR_FLAT","HL7_ORU_R01"],"title":"CancerRegistryFormat","description":"Transmission format for cancer registry submissions — (f)(4)."},"CaptureMode":{"type":"string","enum":["hot_mic","push_to_talk"],"title":"CaptureMode"},"CarePlanEntry":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"patient_id":{"type":"string","title":"Patient Id"},"regimen_name":{"type":"string","title":"Regimen Name"},"total_cycles_planned":{"type":"integer","title":"Total Cycles Planned"},"cycles_completed":{"type":"integer","title":"Cycles Completed","default":0},"current_cycle":{"type":"integer","title":"Current Cycle","default":1},"on_hold":{"type":"boolean","title":"On Hold","default":false},"hold_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hold Reason"},"next_treatment_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Treatment Date"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["patient_id","regimen_name","total_cycles_planned","created_by"],"title":"CarePlanEntry"},"CarePlanOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"intent":{"type":"string","title":"Intent"},"period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End"},"condition_ids":{"items":{"type":"string"},"type":"array","title":"Condition Ids"},"care_team_ids":{"items":{"type":"string"},"type":"array","title":"Care Team Ids"},"goal_ids":{"items":{"type":"string"},"type":"array","title":"Goal Ids"},"goals":{"items":{"$ref":"#/components/schemas/GoalOut"},"type":"array","title":"Goals"},"activities":{"items":{"$ref":"#/components/schemas/ActivityDetail"},"type":"array","title":"Activities"},"authored_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authored On"}},"type":"object","required":["id","patient_id","title","description","status","intent","period_start","period_end","condition_ids","care_team_ids","goal_ids","goals","activities","authored_on"],"title":"CarePlanOut"},"CarePlanRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"title":{"type":"string","title":"Title","description":"Care plan title"},"description":{"type":"string","title":"Description","description":"Narrative description of the care plan","default":""},"status":{"type":"string","title":"Status","description":"CarePlan status: draft | active | on-hold | revoked | completed | entered-in-error","default":"active"},"intent":{"type":"string","title":"Intent","description":"CarePlan intent: proposal | plan | order | option","default":"plan"},"period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start","description":"ISO 8601 care plan start date"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End","description":"ISO 8601 care plan end date"},"condition_ids":{"items":{"type":"string"},"type":"array","title":"Condition Ids","description":"FHIR Condition IDs addressed by this plan"},"care_team_ids":{"items":{"type":"string"},"type":"array","title":"Care Team Ids","description":"FHIR CareTeam resource IDs"},"goals":{"items":{"$ref":"#/components/schemas/GoalRequest"},"type":"array","title":"Goals","description":"Goals linked to this care plan"},"activities":{"items":{"$ref":"#/components/schemas/ActivityDetail"},"type":"array","title":"Activities","description":"Planned interventions"}},"type":"object","required":["patient_id","title"],"title":"CarePlanRequest","description":"Body for creating or updating a care plan."},"CareSetting":{"type":"string","enum":["outpatient","inpatient","ed","snf","hospice","home_health","telehealth","any"],"title":"CareSetting"},"CareTeamMember":{"properties":{"member_id":{"type":"string","title":"Member Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"}},"type":"object","required":["member_id","name","role"],"title":"CareTeamMember"},"CareTransitionRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"discharge_disposition":{"type":"string","title":"Discharge Disposition","default":"home"}},"type":"object","required":["patient_id"],"title":"CareTransitionRequest"},"CarinBbBundle":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"Bundle"},"id":{"type":"string","title":"Id"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"type":{"type":"string","title":"Type","default":"searchset"},"total":{"type":"integer","title":"Total"},"patient":{"$ref":"#/components/schemas/CarinBbPatient"},"coverage":{"items":{"$ref":"#/components/schemas/CarinBbCoverage"},"type":"array","title":"Coverage"},"eob_summaries":{"items":{"$ref":"#/components/schemas/CarinBbEobSummary"},"type":"array","title":"Eob Summaries"},"link":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Link"}},"type":"object","required":["id","meta","total","patient","coverage","eob_summaries"],"title":"CarinBbBundle","description":"Bundle of CARIN BB resources for a member."},"CarinBbCoverage":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"Coverage"},"id":{"type":"string","title":"Id"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"identifier":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Identifier"},"status":{"type":"string","title":"Status"},"subscriber_id":{"type":"string","title":"Subscriber Id"},"beneficiary":{"additionalProperties":true,"type":"object","title":"Beneficiary"},"relationship":{"additionalProperties":true,"type":"object","title":"Relationship"},"period":{"additionalProperties":true,"type":"object","title":"Period"},"payor":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Payor"},"class":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Class"},"network":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"}},"type":"object","required":["id","meta","identifier","status","subscriber_id","beneficiary","relationship","period","payor","class"],"title":"CarinBbCoverage","description":"C4BB Coverage profile."},"CarinBbEobDetail":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"ExplanationOfBenefit"},"id":{"type":"string","title":"Id"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"claim_type":{"$ref":"#/components/schemas/CarinEobType"},"identifier":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Identifier"},"status":{"type":"string","title":"Status"},"type":{"additionalProperties":true,"type":"object","title":"Type"},"use":{"type":"string","title":"Use","default":"claim"},"patient":{"additionalProperties":true,"type":"object","title":"Patient"},"billable_period":{"additionalProperties":true,"type":"object","title":"Billable Period"},"created":{"type":"string","title":"Created"},"insurer":{"additionalProperties":true,"type":"object","title":"Insurer"},"provider":{"additionalProperties":true,"type":"object","title":"Provider"},"insurance":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Insurance"},"item":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Item"},"total":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Total"},"adjudication":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Adjudication"},"supporting_info":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Supporting Info"},"diagnosis":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Diagnosis"},"procedure":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Procedure"}},"type":"object","required":["id","meta","claim_type","identifier","status","type","patient","billable_period","created","insurer","provider","insurance","item","total"],"title":"CarinBbEobDetail","description":"Full detail for a single C4BB EOB resource."},"CarinBbEobSummary":{"properties":{"id":{"type":"string","title":"Id"},"claim_type":{"$ref":"#/components/schemas/CarinEobType"},"service_date":{"type":"string","title":"Service Date"},"total_amount":{"type":"number","title":"Total Amount"},"patient_pay":{"type":"number","title":"Patient Pay"},"plan_pay":{"type":"number","title":"Plan Pay"},"provider_name":{"type":"string","title":"Provider Name"},"status":{"type":"string","title":"Status"},"adjudication_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adjudication Date"}},"type":"object","required":["id","claim_type","service_date","total_amount","patient_pay","plan_pay","provider_name","status"],"title":"CarinBbEobSummary","description":"Summary of a single C4BB EOB resource."},"CarinBbPatient":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"Patient"},"id":{"type":"string","title":"Id"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"identifier":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Identifier"},"name":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Name"},"birth_date":{"type":"string","title":"Birth Date"},"gender":{"type":"string","title":"Gender"},"address":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Address"}},"type":"object","required":["id","meta","identifier","name","birth_date","gender","address"],"title":"CarinBbPatient","description":"C4BB Patient profile."},"CarinEobType":{"type":"string","enum":["inpatient-institutional","outpatient-institutional","professional-nonclinician","pharmacy","oral","vision"],"title":"CarinEobType","description":"CARIN BB EOB claim-type profiles (C4BB ExplanationOfBenefit profiles)."},"CcdaImportRequest":{"properties":{"ccda_base64":{"type":"string","title":"Ccda Base64","description":"Base64-encoded C-CDA R2.1 XML (UTF-8)"},"source_system":{"type":"string","title":"Source System","description":"Name of the sending system or organisation (for audit trail)","default":""},"source_document_reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Document Reference Id","description":"FHIR DocumentReference ID if the C-CDA was already stored"}},"type":"object","required":["ccda_base64"],"title":"CcdaImportRequest","description":"Body for POST /reconciliation/{patient_id}/import-ccda (INT-005).\n\nAccepts a base64-encoded C-CDA R2.1 XML document, parses it into FHIR\nresources, and returns a reconciliation diff for clinician attestation.\n\nThe clinician then POSTs the diff decisions to\n``POST /reconciliation/{patient_id}/apply`` to persist accepted changes.\n\nINT-005: C-CDA import → FHIR resource extraction → diff → clinician attestation.\nONC § 170.315(b)(2) — Clinical Information Reconciliation and Incorporation.\nONC § 170.315(b)(1) — Transitions of Care (incoming C-CDA)."},"CcdaImportResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"parsed_resource_count":{"type":"integer","title":"Parsed Resource Count","description":"Total FHIR resources extracted from the C-CDA"},"source_document_reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Document Reference Id"},"items":{"items":{"$ref":"#/components/schemas/ReconcileItem"},"type":"array","title":"Items"}},"type":"object","required":["patient_id","parsed_resource_count","items"],"title":"CcdaImportResponse","description":"Diff result from C-CDA import ready for clinician attestation."},"CensusSnapshot":{"properties":{"unit_id":{"type":"string","title":"Unit Id"},"total_beds":{"type":"integer","title":"Total Beds"},"occupied":{"type":"integer","title":"Occupied"},"available":{"type":"integer","title":"Available"},"housekeeping":{"type":"integer","title":"Housekeeping"},"maintenance":{"type":"integer","title":"Maintenance"},"occupancy_rate":{"type":"number","title":"Occupancy Rate"}},"type":"object","required":["unit_id","total_beds","occupied","available","housekeeping","maintenance","occupancy_rate"],"title":"CensusSnapshot"},"CertSeedLoadResponse":{"properties":{"criterion":{"type":"string","title":"Criterion"},"bundles":{"items":{"$ref":"#/components/schemas/CertSeedLoadResult"},"type":"array","title":"Bundles"},"total_resources_loaded":{"type":"integer","title":"Total Resources Loaded"}},"type":"object","required":["criterion","bundles","total_resources_loaded"],"title":"CertSeedLoadResponse"},"CertSeedLoadResult":{"properties":{"file":{"type":"string","title":"File"},"status":{"type":"string","title":"Status"},"resources_loaded":{"type":"integer","title":"Resources Loaded","default":0}},"type":"object","required":["file","status"],"title":"CertSeedLoadResult"},"CertificationLevel":{"type":"string","enum":["basic","standard","premium"],"title":"CertificationLevel"},"CertificationSubmission":{"properties":{"client_id":{"type":"string","title":"Client Id"},"certification_level":{"$ref":"#/components/schemas/CertificationLevel"},"test_results_url":{"type":"string","title":"Test Results Url","description":"URL to automated test suite results"},"security_questionnaire":{"additionalProperties":true,"type":"object","title":"Security Questionnaire"},"attestation_signed_by":{"type":"string","title":"Attestation Signed By"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["client_id","certification_level","test_results_url","attestation_signed_by"],"title":"CertificationSubmission"},"ChangeControlRequest":{"properties":{"change_type":{"$ref":"#/components/schemas/ChangeType"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id","description":"rule_id or fact-matrix key being changed (omit for creates)"},"proposed_payload":{"additionalProperties":true,"type":"object","title":"Proposed Payload","description":"Full payload for the proposed rule or matrix entry"},"justification":{"type":"string","title":"Justification"}},"type":"object","required":["change_type","proposed_payload","justification"],"title":"ChangeControlRequest"},"ChangeDecisionRequest":{"properties":{"decision_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Notes"}},"type":"object","title":"ChangeDecisionRequest"},"ChangeRisk":{"type":"string","enum":["minor","major","emergency"],"title":"ChangeRisk"},"ChangeStatusUpdate":{"properties":{"status":{"$ref":"#/components/schemas/app__serving__release_mgmt__ChangeStatus"},"reviewer_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Comment"}},"type":"object","required":["status"],"title":"ChangeStatusUpdate"},"ChangeType":{"type":"string","enum":["survivorship_rule_create","survivorship_rule_update","fact_matrix_entry"],"title":"ChangeType"},"ChargeCaptureRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"}},"type":"object","required":["patient_id"],"title":"ChargeCaptureRequest"},"ChargeEstimate":{"properties":{"charge_code":{"type":"string","title":"Charge Code"},"description":{"type":"string","title":"Description"},"gross_charge":{"type":"number","title":"Gross Charge"},"estimated_patient_cost":{"type":"number","title":"Estimated Patient Cost"},"negotiated_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Negotiated Rate"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["charge_code","description","gross_charge","estimated_patient_cost","negotiated_rate"],"title":"ChargeEstimate"},"ChargeItemCreate":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"cdm_code":{"type":"string","title":"Cdm Code","description":"CDM / charge code"},"procedure_code":{"type":"string","title":"Procedure Code","description":"CPT/HCPCS code"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code","description":"UB-04 4-digit revenue code"},"quantity":{"type":"integer","minimum":1.0,"title":"Quantity","default":1},"unit_charge":{"type":"number","minimum":0.0,"title":"Unit Charge"},"service_date":{"type":"string","title":"Service Date","description":"YYYY-MM-DD"},"performing_provider_npi":{"type":"string","title":"Performing Provider Npi"},"source":{"$ref":"#/components/schemas/ChargeSource","default":"manual_entry"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["patient_id","encounter_id","cdm_code","procedure_code","unit_charge","service_date","performing_provider_npi"],"title":"ChargeItemCreate"},"ChargeItemResponse":{"properties":{"charge_id":{"type":"string","title":"Charge Id"},"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"cdm_code":{"type":"string","title":"Cdm Code"},"procedure_code":{"type":"string","title":"Procedure Code"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code"},"quantity":{"type":"integer","title":"Quantity"},"unit_charge":{"type":"number","title":"Unit Charge"},"total_charge":{"type":"number","title":"Total Charge"},"service_date":{"type":"string","title":"Service Date"},"status":{"$ref":"#/components/schemas/app__serving__charge_capture_svc__ChargeStatus"},"source":{"$ref":"#/components/schemas/ChargeSource"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["charge_id","patient_id","encounter_id","cdm_code","procedure_code","revenue_code","quantity","unit_charge","total_charge","service_date","status","source","created_at","updated_at"],"title":"ChargeItemResponse"},"ChargeSource":{"type":"string","enum":["clinical_order","manual_entry","cdm_trigger","device_integration","pharmacy"],"title":"ChargeSource"},"ChargeStatus-Input":{"type":"string","enum":["active","inactive","draft"],"title":"ChargeStatus"},"ChartPrefillRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"questionnaire_id":{"type":"string","title":"Questionnaire Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"}},"type":"object","required":["patient_id","questionnaire_id"],"title":"ChartPrefillRequest"},"ChartPrefillResponse":{"properties":{"questionnaire_id":{"type":"string","title":"Questionnaire Id"},"patient_id":{"type":"string","title":"Patient Id"},"prefilled_items":{"additionalProperties":true,"type":"object","title":"Prefilled Items","description":"linkId → pre-filled answer extracted from the patient chart"},"source_resources":{"items":{"type":"string"},"type":"array","title":"Source Resources","description":"FHIR references that were the source for each pre-filled value"}},"type":"object","required":["questionnaire_id","patient_id"],"title":"ChartPrefillResponse"},"CheckInteractionsRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"medication_code":{"type":"string","title":"Medication Code","description":"RxNorm code of proposed medication"},"medication_display":{"type":"string","title":"Medication Display","description":"Human-readable medication name"}},"type":"object","required":["patient_id","medication_code","medication_display"],"title":"CheckInteractionsRequest"},"CheckInteractionsResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"medication_code":{"type":"string","title":"Medication Code"},"medication_display":{"type":"string","title":"Medication Display"},"threshold":{"$ref":"#/components/schemas/SeverityThreshold"},"alerts":{"items":{"$ref":"#/components/schemas/InteractionAlert"},"type":"array","title":"Alerts"},"alerts_above_threshold":{"type":"integer","title":"Alerts Above Threshold"}},"type":"object","required":["patient_id","medication_code","medication_display","threshold","alerts","alerts_above_threshold"],"title":"CheckInteractionsResponse"},"ChemoRouteOfAdmin":{"type":"string","enum":["iv","oral","subcutaneous","intramuscular","intrathecal","intraperitoneal","topical"],"title":"ChemoRouteOfAdmin"},"ChemotherapyOrder":{"properties":{"order_id":{"type":"string","title":"Order Id"},"patient_id":{"type":"string","title":"Patient Id"},"regimen_name":{"type":"string","title":"Regimen Name"},"cycle_number":{"type":"integer","title":"Cycle Number","default":1},"day_of_cycle":{"type":"integer","title":"Day Of Cycle","default":1},"drugs":{"items":{"$ref":"#/components/schemas/DrugComponent"},"type":"array","title":"Drugs"},"prescribed_by":{"type":"string","title":"Prescribed By"},"ordered_at":{"type":"string","format":"date-time","title":"Ordered At"},"bsa_m2":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bsa M2"},"creatinine_clearance_ml_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Creatinine Clearance Ml Min"},"height_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Cm"},"weight_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight Kg"},"dose_adjustment_reason":{"anyOf":[{"$ref":"#/components/schemas/DoseAdjustmentReason"},{"type":"null"}]},"dose_reduction_pct":{"type":"number","title":"Dose Reduction Pct","default":0.0},"right_patient_verified":{"type":"boolean","title":"Right Patient Verified","default":false},"right_drug_verified":{"type":"boolean","title":"Right Drug Verified","default":false},"right_dose_verified":{"type":"boolean","title":"Right Dose Verified","default":false},"right_route_verified":{"type":"boolean","title":"Right Route Verified","default":false},"right_time_verified":{"type":"boolean","title":"Right Time Verified","default":false},"pharmacist_verified":{"type":"boolean","title":"Pharmacist Verified","default":false},"rn_double_checked":{"type":"boolean","title":"Rn Double Checked","default":false},"status":{"$ref":"#/components/schemas/RegimenStatus","default":"active"}},"type":"object","required":["patient_id","regimen_name","drugs","prescribed_by"],"title":"ChemotherapyOrder"},"Citation":{"properties":{"n":{"type":"integer","title":"N"},"fhir_resource_type":{"type":"string","title":"Fhir Resource Type"},"fhir_resource_id":{"type":"string","title":"Fhir Resource Id"},"display":{"type":"string","title":"Display"}},"type":"object","required":["n","fhir_resource_type","fhir_resource_id","display"],"title":"Citation"},"CitationGuardrailRequest":{"properties":{"output_text":{"type":"string","title":"Output Text","description":"Agent output text to validate"},"required_citation_count":{"type":"integer","minimum":1.0,"title":"Required Citation Count","description":"Minimum number of inline citations required","default":1},"allowed_point_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Point Ids","description":"If provided, every citation must reference one of these point_ids. FHIR point_id format: ResourceType/id/versionId. Knowledge point_id format: SOURCE:document_id."}},"type":"object","required":["output_text"],"title":"CitationGuardrailRequest"},"CitationGuardrailResponse":{"properties":{"passed":{"type":"boolean","title":"Passed"},"found_citations":{"items":{"type":"string"},"type":"array","title":"Found Citations"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"}},"type":"object","required":["passed","found_citations","rejection_reason"],"title":"CitationGuardrailResponse"},"ClaimAttachmentRequest":{"properties":{"claim_id":{"type":"string","title":"Claim Id"},"attachment_type":{"$ref":"#/components/schemas/AttachmentType"},"content_type":{"type":"string","title":"Content Type","description":"MIME type (application/pdf, application/fhir+json, etc.)"},"document_title":{"type":"string","title":"Document Title"},"gcs_uri":{"type":"string","title":"Gcs Uri","description":"GCS URI to attachment content"},"payer_attachment_control_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Attachment Control Number"}},"type":"object","required":["claim_id","attachment_type","content_type","document_title","gcs_uri"],"title":"ClaimAttachmentRequest"},"ClaimAttachmentResponse":{"properties":{"attachment_id":{"type":"string","title":"Attachment Id"},"claim_id":{"type":"string","title":"Claim Id"},"attachment_type":{"$ref":"#/components/schemas/AttachmentType"},"document_title":{"type":"string","title":"Document Title"},"gcs_uri":{"type":"string","title":"Gcs Uri"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"}},"type":"object","required":["attachment_id","claim_id","attachment_type","document_title","gcs_uri","submitted_at"],"title":"ClaimAttachmentResponse"},"ClaimLineItem":{"properties":{"procedure_code":{"type":"string","title":"Procedure Code","description":"CPT/HCPCS code"},"modifier":{"items":{"type":"string"},"type":"array","title":"Modifier"},"units":{"type":"integer","minimum":1.0,"title":"Units","default":1},"charge_amount":{"type":"number","minimum":0.0,"title":"Charge Amount"},"diagnosis_pointer":{"items":{"type":"integer"},"type":"array","title":"Diagnosis Pointer"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code","description":"UB-04 revenue code for 837I"},"ndc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ndc","description":"National Drug Code if applicable"}},"type":"object","required":["procedure_code","charge_amount"],"title":"ClaimLineItem"},"ClaimStatus":{"type":"string","enum":["draft","submitted","acknowledged","adjudicated","denied","appealed","paid","voided"],"title":"ClaimStatus"},"ClaimStatusResponse":{"properties":{"claim_id":{"type":"string","title":"Claim Id"},"status":{"$ref":"#/components/schemas/ClaimStatus"},"payer_claim_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Claim Number"},"adjudication_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Adjudication Date"},"allowed_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Allowed Amount"},"paid_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Amount"},"patient_responsibility":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Patient Responsibility"},"denial_reason":{"anyOf":[{"$ref":"#/components/schemas/DenialReason"},{"type":"null"}]},"denial_remark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Remark"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["claim_id","status","payer_claim_number","adjudication_date","allowed_amount","paid_amount","patient_responsibility","denial_reason","denial_remark","created_at","updated_at"],"title":"ClaimStatusResponse"},"ClaimSubmitRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"claim_type":{"$ref":"#/components/schemas/ClaimType"},"payment_model":{"$ref":"#/components/schemas/PaymentModel","default":"fee_for_service"},"payer_id":{"type":"string","title":"Payer Id","description":"Clearinghouse payer ID"},"facility_npi":{"type":"string","title":"Facility Npi"},"rendering_provider_npi":{"type":"string","title":"Rendering Provider Npi"},"referring_provider_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referring Provider Npi"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Diagnosis Codes","description":"ICD-10-CM codes"},"service_lines":{"items":{"$ref":"#/components/schemas/ClaimLineItem"},"type":"array","minItems":1,"title":"Service Lines"},"service_from_date":{"type":"string","format":"date","title":"Service From Date"},"service_to_date":{"type":"string","format":"date","title":"Service To Date"},"place_of_service":{"type":"string","title":"Place Of Service","description":"CMS Place of Service code","default":"11"},"prior_auth_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prior Auth Number"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","encounter_id","claim_type","payer_id","facility_npi","rendering_provider_npi","diagnosis_codes","service_lines","service_from_date","service_to_date"],"title":"ClaimSubmitRequest"},"ClaimType":{"type":"string","enum":["837P","837I","837D"],"title":"ClaimType"},"ClinicalCoderRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"note_text":{"type":"string","title":"Note Text"},"code_systems":{"items":{"type":"string"},"type":"array","title":"Code Systems"}},"type":"object","required":["patient_id","note_text"],"title":"ClinicalCoderRequest"},"ClinicalNote":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"note_type":{"type":"string","title":"Note Type","description":"e.g. progress_note, h_and_p, discharge_summary","default":"progress_note"},"sections":{"$ref":"#/components/schemas/NoteSections"},"status":{"$ref":"#/components/schemas/NoteStatus","default":"draft"},"author_uid":{"type":"string","title":"Author Uid"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"signed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed At"},"signed_by_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed By Uid"},"fhir_document_reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Document Reference Id"},"addenda":{"items":{"$ref":"#/components/schemas/Addendum"},"type":"array","title":"Addenda"}},"type":"object","required":["id","patient_id","sections","author_uid","created_at","updated_at"],"title":"ClinicalNote","description":"Stored clinical note — full lifecycle record."},"ClinicalResetResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"deleted":{"additionalProperties":{"type":"integer"},"type":"object","title":"Deleted"}},"type":"object","required":["patient_id","deleted"],"title":"ClinicalResetResponse"},"ClinicalTrialProtocol":{"properties":{"protocol_id":{"type":"string","title":"Protocol Id"},"nct_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nct Id"},"ind_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ind Number"},"title":{"type":"string","title":"Title"},"phase":{"$ref":"#/components/schemas/TrialPhase"},"sponsor":{"type":"string","title":"Sponsor"},"pi_name":{"type":"string","title":"Pi Name"},"indication":{"type":"string","title":"Indication"},"target_enrollment":{"type":"integer","title":"Target Enrollment"},"irb_approval_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Irb Approval Number"},"protocol_version":{"type":"string","title":"Protocol Version","default":"1.0"},"version_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Date"},"status":{"type":"string","title":"Status","default":"open_to_enrollment"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["title","phase","sponsor","pi_name","indication","target_enrollment"],"title":"ClinicalTrialProtocol"},"ClockRequest":{"properties":{"employee_id":{"type":"string","title":"Employee Id"},"shift_id":{"type":"string","title":"Shift Id"},"timestamp":{"type":"string","title":"Timestamp","description":"ISO datetime of clock event"},"location_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Code","description":"Badge reader / RTLS zone ID"}},"type":"object","required":["employee_id","shift_id","timestamp"],"title":"ClockRequest"},"CloseCallRequest":{"properties":{"disposition":{"$ref":"#/components/schemas/CallDisposition"},"disposition_notes":{"type":"string","title":"Disposition Notes","default":""}},"type":"object","required":["disposition"],"title":"CloseCallRequest"},"CloseSessionRequest":{"properties":{"final_transcript":{"anyOf":[{"items":{"$ref":"#/components/schemas/TranscriptLine"},"type":"array"},{"type":"null"}],"title":"Final Transcript"}},"type":"object","title":"CloseSessionRequest"},"CodeFactoryPRRequest":{"properties":{"request_id":{"type":"string","title":"Request Id"},"feature_spec":{"type":"string","title":"Feature Spec"},"target_criterion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Criterion"},"auto_merge":{"type":"boolean","title":"Auto Merge","default":false},"test_required":{"type":"boolean","title":"Test Required","default":true},"reviewer_ids":{"items":{"type":"string"},"type":"array","title":"Reviewer Ids"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"pr_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pr Url"},"status":{"type":"string","title":"Status","default":"queued"}},"type":"object","required":["feature_spec"],"title":"CodeFactoryPRRequest"},"CodeMapRequest":{"properties":{"local_system":{"type":"string","title":"Local System"},"local_code":{"type":"string","title":"Local Code"},"local_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Display"},"standard_system":{"type":"string","title":"Standard System","description":"http://snomed.info/sct | http://loinc.org | http://www.nlm.nih.gov/research/umls/rxnorm"},"standard_code":{"type":"string","title":"Standard Code"},"standard_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Standard Display"},"confidence":{"type":"string","title":"Confidence","description":"exact | approximate | pending_review","default":"exact"}},"type":"object","required":["local_system","local_code","standard_system","standard_code"],"title":"CodeMapRequest"},"CodeSystem":{"type":"string","enum":["ICD-10-CM","ICD-10-PCS","CPT","HCPCS"],"title":"CodeSystem"},"CodeValidationRequest":{"properties":{"codes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Codes","description":"Codes to validate"},"code_system":{"$ref":"#/components/schemas/CodeSystem"},"encounter_date":{"type":"string","title":"Encounter Date","description":"YYYY-MM-DD service date for version lookup"}},"type":"object","required":["codes","code_system","encounter_date"],"title":"CodeValidationRequest"},"CodeValidationResult":{"properties":{"code":{"type":"string","title":"Code"},"valid":{"type":"boolean","title":"Valid"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"code_system":{"$ref":"#/components/schemas/CodeSystem"},"effective_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Date"},"terminal":{"type":"boolean","title":"Terminal","description":"False if code requires additional specificity","default":true}},"type":"object","required":["code","valid","description","code_system","effective_date"],"title":"CodeValidationResult"},"CodingInput":{"properties":{"system":{"type":"string","title":"System"},"code":{"type":"string","title":"Code"},"display":{"type":"string","title":"Display","default":""}},"type":"object","required":["system","code"],"title":"CodingInput"},"CodingOutput":{"properties":{"system":{"type":"string","title":"System"},"code":{"type":"string","title":"Code"},"display":{"type":"string","title":"Display"}},"type":"object","required":["system","code","display"],"title":"CodingOutput"},"CognitiveAssessment":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"assessment_date":{"type":"string","format":"date","title":"Assessment Date"},"tool":{"$ref":"#/components/schemas/CognitiveTool"},"score":{"type":"number","title":"Score"},"max_score":{"type":"number","title":"Max Score"},"stage":{"anyOf":[{"$ref":"#/components/schemas/DementiaStage"},{"type":"null"}]},"agitation":{"type":"boolean","title":"Agitation","default":false},"depression":{"type":"boolean","title":"Depression","default":false},"psychosis":{"type":"boolean","title":"Psychosis","default":false},"wandering":{"type":"boolean","title":"Wandering","default":false},"sleep_disturbance":{"type":"boolean","title":"Sleep Disturbance","default":false},"provider_id":{"type":"string","title":"Provider Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","assessment_date","tool","score","max_score","provider_id"],"title":"CognitiveAssessment"},"CognitiveTool":{"type":"string","enum":["mmse","moca","cdr","slums","mini_cog"],"title":"CognitiveTool"},"CohortCriteria":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"age_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Min"},"age_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Max"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes","description":"ICD-10 codes (prefix match supported)"},"medication_rxnorm":{"items":{"type":"string"},"type":"array","title":"Medication Rxnorm","description":"RxNorm codes"},"lab_loinc":{"items":{"type":"string"},"type":"array","title":"Lab Loinc","description":"LOINC codes for lab results"},"lab_value_gt":{"additionalProperties":{"type":"number"},"type":"object","title":"Lab Value Gt","description":"{loinc_code: threshold}"},"setting_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setting Profile"},"payer_ids":{"items":{"type":"string"},"type":"array","title":"Payer Ids"},"date_range_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Range Start"},"date_range_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Range End"}},"type":"object","required":["name"],"title":"CohortCriteria"},"CohortResponse":{"properties":{"cohort_id":{"type":"string","title":"Cohort Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/CohortStatus"},"patient_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Patient Count"},"criteria":{"additionalProperties":true,"type":"object","title":"Criteria"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["cohort_id","name","status","patient_count","criteria","created_at"],"title":"CohortResponse"},"CohortStatus":{"type":"string","enum":["draft","running","ready","error"],"title":"CohortStatus"},"CoinsuranceInfo":{"properties":{"pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pct"},"network":{"$ref":"#/components/schemas/BenefitNetwork","default":"unknown"}},"type":"object","title":"CoinsuranceInfo"},"CollectionCreate":{"properties":{"name":{"type":"string","title":"Name","description":"Unique collection name"},"dimension":{"type":"integer","maximum":65536.0,"minimum":1.0,"title":"Dimension","default":1536},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["name"],"title":"CollectionCreate"},"CollectionInfo":{"properties":{"name":{"type":"string","title":"Name"},"dimension":{"type":"integer","title":"Dimension"},"description":{"type":"string","title":"Description"},"point_count":{"type":"integer","title":"Point Count"},"backend":{"type":"string","title":"Backend"}},"type":"object","required":["name","dimension","description","point_count","backend"],"title":"CollectionInfo"},"CommChannel":{"type":"string","enum":["MAIL","EMAIL","PHONE","PORTAL","FAX"],"title":"CommChannel"},"CommPreferenceUpdate":{"properties":{"preferred_channel":{"anyOf":[{"$ref":"#/components/schemas/CommChannel"},{"type":"null"}]},"alternative_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternative Address"},"restriction_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Restriction Note"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","title":"CommPreferenceUpdate"},"CommandCentreAlert":{"properties":{"alert_id":{"type":"string","title":"Alert Id"},"severity":{"$ref":"#/components/schemas/AlertSeverity-Output"},"category":{"type":"string","title":"Category","description":"e.g. 'bed_block', 'staffing', 'equipment'"},"message":{"type":"string","title":"Message"},"unit_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["alert_id","severity","category","message","created_at"],"title":"CommandCentreAlert"},"CommandCentreSnapshot":{"properties":{"snapshot_at":{"type":"string","title":"Snapshot At"},"total_beds":{"type":"integer","title":"Total Beds"},"occupied_beds":{"type":"integer","title":"Occupied Beds"},"available_beds":{"type":"integer","title":"Available Beds"},"pending_evs_tasks":{"type":"integer","title":"Pending Evs Tasks"},"active_transport_orders":{"type":"integer","title":"Active Transport Orders"},"active_alerts":{"items":{"$ref":"#/components/schemas/CommandCentreAlert"},"type":"array","title":"Active Alerts"},"occupancy_pct":{"type":"number","title":"Occupancy Pct"}},"type":"object","required":["snapshot_at","total_beds","occupied_beds","available_beds","pending_evs_tasks","active_transport_orders","active_alerts","occupancy_pct"],"title":"CommandCentreSnapshot"},"CommunityBridge":{"type":"string","enum":["carequality","commonwell","ehealth_exchange","shiec"],"title":"CommunityBridge"},"CompleteSessionRequest":{"properties":{"output":{"additionalProperties":true,"type":"object","title":"Output"},"confidence_score":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Confidence Score"}},"type":"object","required":["output"],"title":"CompleteSessionRequest"},"ComplianceWatchdogRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"policy_domain":{"type":"string","title":"Policy Domain","default":"hipaa"},"lookback_days":{"type":"integer","title":"Lookback Days","default":7}},"type":"object","required":["patient_id"],"title":"ComplianceWatchdogRequest"},"CompoundRecord":{"properties":{"compound_id":{"type":"string","title":"Compound Id"},"compound_name":{"type":"string","title":"Compound Name"},"formula_id":{"type":"string","title":"Formula Id"},"lot_number":{"type":"string","title":"Lot Number"},"quantity":{"type":"number","title":"Quantity"},"unit":{"type":"string","title":"Unit"},"route":{"type":"string","title":"Route"},"usp_chapter":{"type":"string","title":"Usp Chapter"},"hazardous":{"type":"boolean","title":"Hazardous"},"prescriber_id":{"type":"string","title":"Prescriber Id"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"bud_hours":{"type":"integer","title":"Bud Hours"},"environment_monitoring_ok":{"type":"boolean","title":"Environment Monitoring Ok"},"status":{"$ref":"#/components/schemas/CompoundStatus"},"prepared_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prepared By"},"released_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Released By"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["compound_id","compound_name","formula_id","lot_number","quantity","unit","route","usp_chapter","hazardous","prescriber_id","patient_id","bud_hours","environment_monitoring_ok","status","created_at","updated_at"],"title":"CompoundRecord"},"CompoundReleaseDecision":{"properties":{"action":{"type":"string","title":"Action","description":"release | quarantine | discard"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"final_volume_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Final Volume Ml"},"gravimetric_pass":{"type":"boolean","title":"Gravimetric Pass","default":true}},"type":"object","required":["action"],"title":"CompoundReleaseDecision"},"CompoundRequest":{"properties":{"compound_name":{"type":"string","title":"Compound Name"},"formula_id":{"type":"string","title":"Formula Id"},"lot_number":{"type":"string","title":"Lot Number"},"quantity":{"type":"number","title":"Quantity"},"unit":{"type":"string","title":"Unit"},"route":{"type":"string","title":"Route"},"usp_chapter":{"type":"string","title":"Usp Chapter","description":"USP_797 | USP_800"},"hazardous":{"type":"boolean","title":"Hazardous","default":false},"prescriber_id":{"type":"string","title":"Prescriber Id"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"bud_hours":{"type":"integer","title":"Bud Hours","description":"Beyond-use dating in hours"},"environment_monitoring_ok":{"type":"boolean","title":"Environment Monitoring Ok","default":false}},"type":"object","required":["compound_name","formula_id","lot_number","quantity","unit","route","usp_chapter","prescriber_id","bud_hours"],"title":"CompoundRequest"},"CompoundStatus":{"type":"string","enum":["requested","in_progress","released","quarantined","discarded"],"title":"CompoundStatus"},"ConditionEntry":{"properties":{"snomed_code":{"type":"string","title":"Snomed Code","description":"SNOMED CT code for the condition"},"snomed_display":{"type":"string","title":"Snomed Display","description":"Human-readable condition name"},"onset_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Onset Age","description":"Age of onset in years"},"notes":{"type":"string","title":"Notes","description":"Clinical notes about the condition","default":""}},"type":"object","required":["snomed_code","snomed_display"],"title":"ConditionEntry","description":"A single condition recorded for a family member."},"ConditionOut":{"properties":{"snomed_code":{"type":"string","title":"Snomed Code"},"snomed_display":{"type":"string","title":"Snomed Display"},"onset_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Onset Age"},"notes":{"type":"string","title":"Notes"}},"type":"object","required":["snomed_code","snomed_display","onset_age","notes"],"title":"ConditionOut"},"ConditionSummary":{"properties":{"id":{"type":"string","title":"Id"},"code":{"type":"string","title":"Code"},"display":{"type":"string","title":"Display"},"clinical_status":{"type":"string","title":"Clinical Status"},"onset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset"},"recorded_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recorded Date"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","code","display","clinical_status"],"title":"ConditionSummary"},"ConfidentialCommPreference":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"preferred_channel":{"$ref":"#/components/schemas/CommChannel"},"alternative_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternative Address","description":"Alternative mailing address, email, or phone number"},"restriction_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Restriction Note","description":"e.g. 'Do not leave voicemail', 'Do not send to home address'"},"applies_to_phi_categories":{"items":{"type":"string"},"type":"array","title":"Applies To Phi Categories","description":"Empty = applies to all PHI communications"}},"type":"object","required":["patient_id","preferred_channel"],"title":"ConfidentialCommPreference"},"ConfidentialCommsRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"comm_type":{"type":"string","title":"Comm Type","description":"Communication type: 'phone', 'mail', 'email', 'portal'"},"preferred_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Address","description":"Specific address/number for the communication type"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Patient's reason for confidential communication (not required by HIPAA)"}},"type":"object","required":["patient_id","comm_type"],"title":"ConfidentialCommsRequest"},"ConfidentialCommsUpdate":{"properties":{"preferred_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Address"},"comm_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comm Type"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","title":"ConfidentialCommsUpdate"},"ConnectorType":{"type":"string","enum":["postgresql","bigquery","snowflake","apache_iceberg","timescaledb","clickhouse","redis","pgvector"],"title":"ConnectorType"},"ConsentType":{"type":"string","enum":["collection","use","disclosure","cross_border_transfer","withdrawal"],"title":"ConsentType"},"ConsistencyLevel":{"type":"string","enum":["strong","bounded_staleness","session","eventual"],"title":"ConsistencyLevel"},"ContactTrace":{"properties":{"trace_id":{"type":"string","title":"Trace Id"},"outbreak_id":{"type":"string","title":"Outbreak Id"},"source_patient_id":{"type":"string","title":"Source Patient Id"},"exposed_patient_id":{"type":"string","title":"Exposed Patient Id"},"exposure_dt":{"type":"string","format":"date-time","title":"Exposure Dt"},"exposure_location":{"type":"string","title":"Exposure Location"},"notified":{"type":"boolean","title":"Notified","default":false},"notified_dt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Notified Dt"},"quarantine_recommended":{"type":"boolean","title":"Quarantine Recommended","default":false},"follow_up_dt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Follow Up Dt"}},"type":"object","required":["outbreak_id","source_patient_id","exposed_patient_id","exposure_dt","exposure_location"],"title":"ContactTrace"},"ContentStatus":{"type":"string","enum":["draft","pending_review","approved","rejected","active","retired"],"title":"ContentStatus"},"ContractType":{"type":"string","enum":["fee_schedule","capitation","value_based","episode_of_care","bundled_payment"],"title":"ContractType"},"CopayInfo":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"service_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Type"},"network":{"$ref":"#/components/schemas/BenefitNetwork","default":"unknown"}},"type":"object","title":"CopayInfo"},"CosignStepRequest":{"properties":{"step_key":{"type":"string","title":"Step Key"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["step_key"],"title":"CosignStepRequest"},"CourtOrderRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"court_order_ref":{"type":"string","title":"Court Order Ref","description":"Court order case number or document reference"},"issuing_jurisdiction":{"type":"string","title":"Issuing Jurisdiction"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiry Date"},"scope":{"type":"string","title":"Scope","description":"What the order permits, e.g. 'parental access to all records'"},"recorded_by":{"type":"string","title":"Recorded By"}},"type":"object","required":["patient_id","court_order_ref","issuing_jurisdiction","effective_date","scope","recorded_by"],"title":"CourtOrderRequest"},"CoverageScheduleUpdate":{"properties":{"coverage_days":{"items":{"type":"string"},"type":"array","title":"Coverage Days"}},"type":"object","required":["coverage_days"],"title":"CoverageScheduleUpdate"},"CrdCard":{"properties":{"summary":{"type":"string","title":"Summary"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"indicator":{"type":"string","title":"Indicator","default":"info"},"source":{"additionalProperties":{"type":"string"},"type":"object","title":"Source"}},"type":"object","required":["summary"],"title":"CrdCard"},"CrdHookRequest":{"properties":{"hook":{"type":"string","title":"Hook","description":"CDS Hook name (e.g. 'order-sign')"},"hook_instance":{"type":"string","title":"Hook Instance","description":"Unique hook invocation ID"},"context":{"additionalProperties":true,"type":"object","title":"Context","description":"CDS Hook context object"},"prefetch":{"additionalProperties":true,"type":"object","title":"Prefetch","description":"Prefetched FHIR resources"}},"type":"object","required":["hook","hook_instance","context"],"title":"CrdHookRequest","description":"CDS Hooks request body for Da Vinci CRD."},"CrdHookResponse":{"properties":{"cards":{"items":{"$ref":"#/components/schemas/CrdCard"},"type":"array","title":"Cards"},"system_actions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"System Actions"}},"type":"object","required":["cards"],"title":"CrdHookResponse"},"CreateConfigRequest":{"properties":{"agent_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Code"},"enabled_guardrails":{"items":{"$ref":"#/components/schemas/GuardrailType"},"type":"array","title":"Enabled Guardrails"},"severity_overrides":{"additionalProperties":{"$ref":"#/components/schemas/GuardrailSeverity"},"type":"object","title":"Severity Overrides"},"phi_fields":{"items":{"type":"string"},"type":"array","title":"Phi Fields"},"protected_attributes":{"items":{"type":"string"},"type":"array","title":"Protected Attributes"}},"type":"object","title":"CreateConfigRequest"},"CreateCriticalResultRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"result_type":{"type":"string","title":"Result Type","default":"lab"},"result_description":{"type":"string","maxLength":500,"minLength":1,"title":"Result Description"},"fhir_observation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Observation Id"},"severity":{"$ref":"#/components/schemas/CriticalResultSeverity","default":"critical"}},"type":"object","required":["patient_id","result_description"],"title":"CreateCriticalResultRequest"},"CreateDSIRequest":{"properties":{"title":{"type":"string","title":"Title","description":"Human-readable title for the intervention"},"description":{"type":"string","title":"Description","description":"Clinical description of what the DSI does"},"invocation_pattern":{"$ref":"#/components/schemas/DSIInvocationPattern","description":"How the DSI is triggered: cds-hooks, passive, or active"},"hooks":{"items":{"type":"string"},"type":"array","title":"Hooks","description":"CDS Hooks hook IDs (e.g. 'medication-prescribe') when pattern=cds-hooks"},"sar":{"$ref":"#/components/schemas/SourceAttributionRecord","description":"Source Attribution Record"},"status":{"$ref":"#/components/schemas/DSIStatus","default":"active"},"snomed_condition_codes":{"items":{"type":"string"},"type":"array","title":"Snomed Condition Codes","description":"SNOMED CT codes for conditions addressed by this DSI"}},"type":"object","required":["title","description","invocation_pattern","sar"],"title":"CreateDSIRequest"},"CreateEPCSPrescriptionRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"drug_name":{"type":"string","title":"Drug Name"},"rxnorm_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rxnorm Code"},"ndc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ndc"},"dea_schedule":{"$ref":"#/components/schemas/DEASchedule"},"quantity":{"type":"number","title":"Quantity"},"unit":{"type":"string","title":"Unit"},"days_supply":{"type":"integer","title":"Days Supply"},"refills":{"type":"integer","title":"Refills","default":0},"directions":{"type":"string","title":"Directions"}},"type":"object","required":["patient_id","drug_name","dea_schedule","quantity","unit","days_supply","directions"],"title":"CreateEPCSPrescriptionRequest"},"CreateNoteRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"note_type":{"type":"string","title":"Note Type","default":"progress_note"},"sections":{"$ref":"#/components/schemas/NoteSections"}},"type":"object","required":["patient_id"],"title":"CreateNoteRequest"},"CreateOutreachRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"outreach_type":{"$ref":"#/components/schemas/OutreachType"},"channel":{"$ref":"#/components/schemas/OutreachChannel"},"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"},"locale":{"$ref":"#/components/schemas/SupportedLocale","default":"en"},"scheduled_at":{"type":"string","title":"Scheduled At"}},"type":"object","required":["patient_id","outreach_type","channel","subject","body","scheduled_at"],"title":"CreateOutreachRequest"},"CreatePATRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Display Name"},"expires_in_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Expires In Days","default":90}},"type":"object","title":"CreatePATRequest"},"CreatePATResponse":{"properties":{"pat_id":{"type":"string","title":"Pat Id"},"token":{"type":"string","title":"Token"},"token_prefix":{"type":"string","title":"Token Prefix"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["pat_id","token","token_prefix","display_name","expires_at"],"title":"CreatePATResponse"},"CreateReferralRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"referring_clinician_name":{"type":"string","title":"Referring Clinician Name"},"receiving_specialty":{"type":"string","title":"Receiving Specialty"},"receiving_clinician_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Receiving Clinician Name"},"receiving_facility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Receiving Facility"},"reason":{"type":"string","title":"Reason"},"urgency":{"$ref":"#/components/schemas/ReferralUrgency","default":"routine"},"care_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Care Plan Id"}},"type":"object","required":["patient_id","referring_clinician_name","receiving_specialty","reason"],"title":"CreateReferralRequest"},"CreateTemplateRequest":{"properties":{"specialty":{"$ref":"#/components/schemas/Specialty"},"name":{"type":"string","title":"Name"},"version":{"type":"string","title":"Version","default":"1.0"},"fields":{"items":{"$ref":"#/components/schemas/TemplateField"},"type":"array","title":"Fields"},"loinc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loinc Code"}},"type":"object","required":["specialty","name","fields"],"title":"CreateTemplateRequest"},"CredentialCreateRequest":{"properties":{"employee_id":{"type":"string","title":"Employee Id"},"credential_type":{"type":"string","title":"Credential Type","description":"e.g. 'RN_LICENSE', 'BLS', 'ACLS', 'HIPAA_TRAINING'"},"credential_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Number"},"issued_date":{"type":"string","title":"Issued Date","description":"ISO date YYYY-MM-DD"},"expiry_date":{"type":"string","title":"Expiry Date","description":"ISO date YYYY-MM-DD"},"issuing_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuing Body"}},"type":"object","required":["employee_id","credential_type","issued_date","expiry_date"],"title":"CredentialCreateRequest"},"CredentialResponse":{"properties":{"credential_id":{"type":"string","title":"Credential Id"},"employee_id":{"type":"string","title":"Employee Id"},"credential_type":{"type":"string","title":"Credential Type"},"credential_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Number"},"issued_date":{"type":"string","title":"Issued Date"},"expiry_date":{"type":"string","title":"Expiry Date"},"issuing_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuing Body"},"status":{"$ref":"#/components/schemas/CredentialStatus"},"days_until_expiry":{"type":"integer","title":"Days Until Expiry"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["credential_id","employee_id","credential_type","credential_number","issued_date","expiry_date","issuing_body","status","days_until_expiry","created_at"],"title":"CredentialResponse"},"CredentialStatus":{"type":"string","enum":["active","expiring_soon","expired","suspended"],"title":"CredentialStatus"},"CredentialStoragePolicy":{"properties":{"storage_backend":{"type":"string","title":"Storage Backend"},"cmek_encrypted":{"type":"boolean","title":"Cmek Encrypted"},"rotation_days":{"type":"integer","title":"Rotation Days"},"no_plaintext_in_env":{"type":"boolean","title":"No Plaintext In Env"},"no_plaintext_in_repo":{"type":"boolean","title":"No Plaintext In Repo"}},"type":"object","required":["storage_backend","cmek_encrypted","rotation_days","no_plaintext_in_env","no_plaintext_in_repo"],"title":"CredentialStoragePolicy"},"CriterionTestResult":{"properties":{"criterion_id":{"type":"string","title":"Criterion Id"},"criterion_description":{"type":"string","title":"Criterion Description"},"status":{"type":"string","enum":["not-started","in-progress","complete","issues-identified"],"title":"Status"},"participant_count":{"type":"integer","title":"Participant Count","default":0},"task_completion_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Task Completion Rate"},"mean_sus_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Sus Score"},"critical_errors":{"type":"integer","title":"Critical Errors","default":0},"issues_logged":{"type":"integer","title":"Issues Logged","default":0},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["criterion_id","criterion_description","status"],"title":"CriterionTestResult"},"CriticalAlertRequest":{"properties":{"observation_id":{"type":"string","title":"Observation Id","description":"FHIR Observation resource ID"},"patient_id":{"type":"string","title":"Patient Id"},"loinc_code":{"type":"string","title":"Loinc Code"},"result_value":{"type":"string","title":"Result Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"criticality":{"type":"string","pattern":"^(HH|LL|H|L)$","title":"Criticality"},"responsible_clinician_id":{"type":"string","title":"Responsible Clinician Id"},"ack_timeout_minutes":{"type":"integer","maximum":120.0,"minimum":5.0,"title":"Ack Timeout Minutes","default":30}},"type":"object","required":["observation_id","patient_id","loinc_code","result_value","criticality","responsible_clinician_id"],"title":"CriticalAlertRequest"},"CriticalAlertResponse":{"properties":{"id":{"type":"string","title":"Id"},"observation_id":{"type":"string","title":"Observation Id"},"patient_id":{"type":"string","title":"Patient Id"},"loinc_code":{"type":"string","title":"Loinc Code"},"result_value":{"type":"string","title":"Result Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"criticality":{"type":"string","title":"Criticality"},"responsible_clinician_id":{"type":"string","title":"Responsible Clinician Id"},"status":{"$ref":"#/components/schemas/CriticalAlertStatus"},"created_at":{"type":"string","title":"Created At"},"ack_timeout_minutes":{"type":"integer","title":"Ack Timeout Minutes"},"acknowledged_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledged At"},"acknowledged_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledged By"},"escalated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalated At"}},"type":"object","required":["id","observation_id","patient_id","loinc_code","result_value","unit","criticality","responsible_clinician_id","status","created_at","ack_timeout_minutes","acknowledged_at","acknowledged_by","escalated_at"],"title":"CriticalAlertResponse"},"CriticalAlertStatus":{"type":"string","enum":["pending","acknowledged","escalated","closed"],"title":"CriticalAlertStatus"},"CriticalResult":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"result_type":{"type":"string","title":"Result Type","description":"e.g. 'lab', 'imaging', 'vital'"},"result_description":{"type":"string","title":"Result Description","description":"Brief description of the critical value (no PHI in ID fields)"},"fhir_observation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Observation Id"},"severity":{"$ref":"#/components/schemas/CriticalResultSeverity","default":"critical"},"status":{"$ref":"#/components/schemas/CriticalResultStatus","default":"pending"},"created_at":{"type":"string","title":"Created At"},"created_by_uid":{"type":"string","title":"Created By Uid"},"acknowledged_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledged At"},"acknowledged_by_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledged By Uid"},"acknowledgment_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledgment Note"},"closed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed At"},"closed_by_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed By Uid"}},"type":"object","required":["id","patient_id","result_type","result_description","created_at","created_by_uid"],"title":"CriticalResult","description":"A critical lab or imaging result requiring explicit clinician acknowledgment."},"CriticalResultSeverity":{"type":"string","enum":["critical","high"],"title":"CriticalResultSeverity"},"CriticalResultStatus":{"type":"string","enum":["pending","acknowledged","closed"],"title":"CriticalResultStatus"},"CriticalValueAlert":{"properties":{"alert_id":{"type":"string","title":"Alert Id"},"admission_id":{"type":"string","title":"Admission Id"},"parameter":{"type":"string","title":"Parameter"},"value":{"type":"number","title":"Value"},"unit":{"type":"string","title":"Unit"},"threshold_type":{"type":"string","title":"Threshold Type"},"notified_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notified Provider"},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false},"alerted_at":{"type":"string","format":"date-time","title":"Alerted At"}},"type":"object","required":["admission_id","parameter","value","unit","threshold_type"],"title":"CriticalValueAlert"},"Criticality":{"type":"string","enum":["normal","H","L","HH","LL","A"],"title":"Criticality"},"CrossMatch":{"properties":{"xm_id":{"type":"string","title":"Xm Id"},"ts_id":{"type":"string","title":"Ts Id"},"patient_id":{"type":"string","title":"Patient Id"},"unit_isbt":{"type":"string","title":"Unit Isbt"},"product":{"$ref":"#/components/schemas/BloodProduct"},"unit_abo":{"$ref":"#/components/schemas/ABO"},"unit_rh":{"$ref":"#/components/schemas/RhFactor"},"result":{"$ref":"#/components/schemas/CrossMatchResult","default":"pending"},"performed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Performed By"},"performed_at":{"type":"string","format":"date-time","title":"Performed At"}},"type":"object","required":["ts_id","patient_id","unit_isbt","product","unit_abo","unit_rh"],"title":"CrossMatch"},"CrossMatchResult":{"type":"string","enum":["compatible","incompatible","pending"],"title":"CrossMatchResult"},"CumulativeDoseRecord":{"properties":{"record_id":{"type":"string","title":"Record Id"},"patient_id":{"type":"string","title":"Patient Id"},"drug_name":{"type":"string","title":"Drug Name"},"total_dose_mg":{"type":"number","title":"Total Dose Mg"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["patient_id","drug_name","total_dose_mg"],"title":"CumulativeDoseRecord"},"CustodyTransferRequest":{"properties":{"to_location":{"type":"string","title":"To Location","description":"Destination location / department"},"handler_id":{"type":"string","title":"Handler Id","description":"Staff ID accepting custody"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["to_location","handler_id"],"title":"CustodyTransferRequest"},"CustomRuleRequest":{"properties":{"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"description":{"type":"string","title":"Description"},"severity":{"$ref":"#/components/schemas/app__serving__audit_rules__AlertSeverity"},"enabled":{"type":"boolean","title":"Enabled","default":true},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters"}},"type":"object","required":["name","category","description","severity"],"title":"CustomRuleRequest"},"CycleStatus":{"type":"string","enum":["initiated","stimulating","triggered","retrieval_complete","fertilisation_complete","transfer_complete","cancelled","pregnant","not_pregnant"],"title":"CycleStatus"},"CycleType":{"type":"string","enum":["fresh_autologous","frozen_autologous","fresh_donor","frozen_donor","gestational_carrier"],"title":"CycleType"},"DEASchedule":{"type":"string","enum":["II","III","IV","V"],"title":"DEASchedule"},"DICOMStudy":{"properties":{"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"patient_id":{"type":"string","title":"Patient Id"},"modality":{"$ref":"#/components/schemas/ImagingModality"},"study_description":{"type":"string","title":"Study Description"},"body_part":{"type":"string","title":"Body Part"},"laterality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Laterality"},"study_datetime":{"type":"string","format":"date-time","title":"Study Datetime"},"series_count":{"type":"integer","title":"Series Count"},"instance_count":{"type":"integer","title":"Instance Count"},"wado_rs_base_url":{"type":"string","title":"Wado Rs Base Url","description":"DICOMweb WADO-RS retrieve URL"},"stow_rs_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stow Rs Url"}},"type":"object","required":["study_instance_uid","patient_id","modality","study_description","body_part","study_datetime","series_count","instance_count","wado_rs_base_url"],"title":"DICOMStudy"},"DSIAuditorRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"agent_run_id":{"type":"string","title":"Agent Run Id"},"audit_scope":{"type":"string","title":"Audit Scope","default":"full"}},"type":"object","required":["patient_id","agent_run_id"],"title":"DSIAuditorRequest"},"DSIFeedbackRequest":{"properties":{"dsi_id":{"type":"string","title":"Dsi Id","description":"PlanDefinition resource ID"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id","description":"Patient context if applicable"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id","description":"Encounter context if applicable"},"feedback_type":{"$ref":"#/components/schemas/DSIFeedbackType"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment","description":"Free-text comment from the clinician"},"override_reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Reason Code","description":"Coded override reason (SNOMED or local)"}},"type":"object","required":["dsi_id","feedback_type"],"title":"DSIFeedbackRequest"},"DSIFeedbackType":{"type":"string","enum":["accepted","declined","not-applicable","override"],"title":"DSIFeedbackType"},"DSIInvocationPattern":{"type":"string","enum":["cds-hooks","passive","active"],"title":"DSIInvocationPattern"},"DSISourceAttribute":{"properties":{"agent_code":{"type":"string","title":"Agent Code"},"agent_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version Id"},"prompt_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Hash"},"model_id":{"type":"string","title":"Model Id"},"session_id":{"type":"string","title":"Session Id"},"evaluation_timestamp":{"type":"string","title":"Evaluation Timestamp"},"retrieval_citation_ids":{"items":{"type":"string"},"type":"array","title":"Retrieval Citation Ids"},"guardrail_run_id":{"type":"string","title":"Guardrail Run Id"}},"type":"object","required":["agent_code","model_id","session_id","evaluation_timestamp","guardrail_run_id"],"title":"DSISourceAttribute"},"DSIStatus":{"type":"string","enum":["active","inactive","draft","retired"],"title":"DSIStatus"},"DTRQuestionnaireResponse":{"properties":{"questionnaire_id":{"type":"string","title":"Questionnaire Id"},"patient_id":{"type":"string","title":"Patient Id"},"responses":{"additionalProperties":true,"type":"object","title":"Responses"},"attestation":{"type":"boolean","title":"Attestation","description":"Clinician attests responses are accurate","default":false}},"type":"object","required":["questionnaire_id","patient_id","responses"],"title":"DTRQuestionnaireResponse"},"DataConnector":{"properties":{"connector_id":{"type":"string","title":"Connector Id"},"name":{"type":"string","title":"Name"},"connector_type":{"$ref":"#/components/schemas/ConnectorType"},"connection_string_secret":{"type":"string","title":"Connection String Secret"},"schema_registry_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Registry Url"},"enabled":{"type":"boolean","title":"Enabled","default":true},"read_only":{"type":"boolean","title":"Read Only","default":false},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"registered_at":{"type":"string","format":"date-time","title":"Registered At"}},"type":"object","required":["name","connector_type","connection_string_secret"],"title":"DataConnector"},"DataResidency":{"type":"string","enum":["any","us_only","eu_only","on_prem_only"],"title":"DataResidency"},"DataWarehouseExportRequest":{"properties":{"cohort_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cohort Id"},"resource_types":{"items":{"type":"string"},"type":"array","title":"Resource Types"},"export_format":{"$ref":"#/components/schemas/ExportFormat","default":"parquet"},"destination":{"$ref":"#/components/schemas/ExportDestination","default":"gcs"},"destination_path":{"type":"string","title":"Destination Path"},"include_phi":{"type":"boolean","title":"Include Phi","description":"If False, apply HIPAA de-identification","default":false},"date_range_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Range Start"},"date_range_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Range End"}},"type":"object","required":["destination_path"],"title":"DataWarehouseExportRequest"},"DeactivateRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"DeactivateRequest"},"DeclineReferralRequest":{"properties":{"reason":{"type":"string","title":"Reason"},"redirect_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect To"}},"type":"object","required":["reason"],"title":"DeclineReferralRequest"},"DecryptRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"field_path":{"type":"string","title":"Field Path"},"category":{"$ref":"#/components/schemas/SensitivityCategory"},"ciphertext":{"type":"string","title":"Ciphertext"},"access_reason":{"type":"string","title":"Access Reason","description":"Clinical reason for access (audit trail)"}},"type":"object","required":["patient_id","field_path","category","ciphertext","access_reason"],"title":"DecryptRequest"},"DeductibleInfo":{"properties":{"individual_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Individual Total"},"individual_remaining":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Individual Remaining"},"family_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Family Total"},"family_remaining":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Family Remaining"},"network":{"$ref":"#/components/schemas/BenefitNetwork","default":"unknown"}},"type":"object","title":"DeductibleInfo"},"DedupCandidate":{"properties":{"source":{"type":"string","title":"Source","description":"Source system identifier"},"value":{"title":"Value","description":"The candidate value for this field"},"recorded_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recorded At","description":"ISO-8601 timestamp when source recorded this value"},"completeness_score":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Completeness Score","description":"0–1 score indicating how complete/populated this value is"}},"type":"object","required":["source","value"],"title":"DedupCandidate"},"DedupResolveRequest":{"properties":{"domain":{"$ref":"#/components/schemas/EntityDomain"},"field":{"type":"string","title":"Field"},"candidates":{"items":{"$ref":"#/components/schemas/DedupCandidate"},"type":"array","minItems":1,"title":"Candidates","description":"All candidate values from contributing source systems"}},"type":"object","required":["domain","field","candidates"],"title":"DedupResolveRequest"},"DekInitRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"}},"type":"object","required":["tenant_id"],"title":"DekInitRequest"},"DeleteRequest":{"properties":{"point_ids":{"items":{"type":"string"},"type":"array","title":"Point Ids"}},"type":"object","required":["point_ids"],"title":"DeleteRequest"},"DeliveryMode":{"type":"string","enum":["spontaneous_vaginal","assisted_vaginal","cesarean_primary","cesarean_repeat","vbac"],"title":"DeliveryMode"},"DeliveryRecord":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"patient_id":{"type":"string","title":"Patient Id"},"delivery_dt":{"type":"string","format":"date-time","title":"Delivery Dt"},"mode":{"$ref":"#/components/schemas/DeliveryMode"},"gestational_age_weeks":{"type":"number","title":"Gestational Age Weeks"},"birth_weight_g":{"type":"number","title":"Birth Weight G"},"apgar_1min":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Apgar 1Min"},"apgar_5min":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Apgar 5Min"},"apgar_10min":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Apgar 10Min"},"cord_blood_gas":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Cord Blood Gas"},"maternal_ebl_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maternal Ebl Ml"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"neonatal_sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Neonatal Sex"},"newborn_patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Newborn Patient Id"}},"type":"object","required":["encounter_id","patient_id","mode","gestational_age_weeks","birth_weight_g","apgar_1min","apgar_5min"],"title":"DeliveryRecord"},"DementiaStage":{"type":"string","enum":["normal","mild_cognitive_impairment","mild","moderate","severe"],"title":"DementiaStage"},"DenialAppealRequest":{"properties":{"claim_id":{"type":"string","title":"Claim Id"},"appeal_reason":{"type":"string","title":"Appeal Reason"},"supporting_documents":{"items":{"type":"string"},"type":"array","title":"Supporting Documents","description":"GCS URIs"},"medical_necessity_narrative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medical Necessity Narrative"}},"type":"object","required":["claim_id","appeal_reason"],"title":"DenialAppealRequest"},"DenialReason":{"type":"string","enum":["CO-97","CO-96","CO-4","CO-27","CO-15","CO-29","CO-50","CO-97","OA-23"],"title":"DenialReason"},"DenialResponderRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"denial_reason":{"type":"string","title":"Denial Reason"},"claim_id":{"type":"string","title":"Claim Id"}},"type":"object","required":["patient_id","denial_reason","claim_id"],"title":"DenialResponderRequest"},"DenialWorklistItem":{"properties":{"claim_id":{"type":"string","title":"Claim Id"},"patient_id":{"type":"string","title":"Patient Id"},"denial_reason":{"$ref":"#/components/schemas/DenialReason"},"denial_date":{"type":"string","format":"date-time","title":"Denial Date"},"charge_amount":{"type":"number","title":"Charge Amount"},"payer_id":{"type":"string","title":"Payer Id"},"days_in_denial":{"type":"integer","title":"Days In Denial"},"appeal_deadline":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Appeal Deadline"},"appeal_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appeal Status"}},"type":"object","required":["claim_id","patient_id","denial_reason","denial_date","charge_amount","payer_id","days_in_denial","appeal_deadline","appeal_status"],"title":"DenialWorklistItem"},"DentalChartEntry":{"properties":{"entry_id":{"type":"string","title":"Entry Id"},"patient_id":{"type":"string","title":"Patient Id"},"tooth_number":{"type":"string","title":"Tooth Number"},"notation_system":{"$ref":"#/components/schemas/ToothNotationSystem","default":"universal"},"condition":{"type":"string","title":"Condition"},"surfaces_affected":{"items":{"$ref":"#/components/schemas/DentalSurface"},"type":"array","title":"Surfaces Affected"},"cdt_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cdt Code"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"}},"type":"object","required":["patient_id","tooth_number","condition"],"title":"DentalChartEntry"},"DentalSurface":{"type":"string","enum":["mesial","distal","occlusal","buccal","lingual","incisal","facial"],"title":"DentalSurface"},"DentalTreatmentPlan":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"patient_id":{"type":"string","title":"Patient Id"},"created_date":{"type":"string","title":"Created Date"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"insurance_pre_auth_obtained":{"type":"boolean","title":"Insurance Pre Auth Obtained","default":false},"patient_accepted":{"type":"boolean","title":"Patient Accepted","default":false},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"}},"type":"object","required":["patient_id","created_date"],"title":"DentalTreatmentPlan"},"DeploymentReadinessOut":{"properties":{"jurisdiction":{"$ref":"#/components/schemas/Jurisdiction"},"region":{"$ref":"#/components/schemas/GcpRegion"},"ready":{"type":"boolean","title":"Ready"},"blockers":{"items":{"type":"string"},"type":"array","title":"Blockers"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"checked_at":{"type":"string","title":"Checked At"}},"type":"object","required":["jurisdiction","region","ready","blockers","warnings","checked_at"],"title":"DeploymentReadinessOut"},"DeploymentTier":{"type":"string","enum":["shared","dedicated","isolated"],"title":"DeploymentTier"},"DeteriorationRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"news2_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"News2 Score"},"vitals":{"additionalProperties":true,"type":"object","title":"Vitals"}},"type":"object","required":["patient_id"],"title":"DeteriorationRequest"},"DeviationType":{"type":"string","enum":["protocol_deviation","serious_protocol_deviation","eligibility_deviation","informed_consent_issue","gcp_violation"],"title":"DeviationType"},"DeviceObservation":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"device_id":{"type":"string","title":"Device Id"},"device_type":{"type":"string","title":"Device Type"},"loinc_code":{"type":"string","title":"Loinc Code"},"value":{"type":"number","title":"Value"},"unit":{"type":"string","title":"Unit"},"observation_datetime":{"type":"string","format":"date-time","title":"Observation Datetime"},"alert_triggered":{"type":"boolean","title":"Alert Triggered","default":false}},"type":"object","required":["patient_id","device_id","device_type","loinc_code","value","unit","observation_datetime"],"title":"DeviceObservation","description":"Waveform / vital from a connected device (ICU monitor, pulse ox, glucometer)."},"DevicePlatform":{"type":"string","enum":["ios","android"],"title":"DevicePlatform"},"DeviceRegistration":{"properties":{"ae_title":{"type":"string","title":"Ae Title","description":"DICOM Application Entity Title"},"modality":{"$ref":"#/components/schemas/Modality"},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"station_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Station Name"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"}},"type":"object","required":["ae_title","modality"],"title":"DeviceRegistration"},"DeviceResponse":{"properties":{"ae_title":{"type":"string","title":"Ae Title"},"modality":{"type":"string","title":"Modality"},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"station_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Station Name"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"last_heartbeat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Heartbeat"},"registered_at":{"type":"string","title":"Registered At"}},"type":"object","required":["ae_title","modality","manufacturer","model_name","station_name","ip_address","last_heartbeat","registered_at"],"title":"DeviceResponse"},"DiagnosticRequest":{"properties":{"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","title":"DiagnosticRequest"},"DialysisAdequacy":{"properties":{"adequacy_id":{"type":"string","title":"Adequacy Id"},"patient_id":{"type":"string","title":"Patient Id"},"assessment_date":{"type":"string","title":"Assessment Date"},"modality":{"$ref":"#/components/schemas/DialysisModality"},"kt_v":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kt V"},"urr_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Urr Pct"},"ccl_per_week":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ccl Per Week"},"status":{"$ref":"#/components/schemas/AdequacyStatus"},"assessed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assessed By"},"action_required":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Required"}},"type":"object","required":["patient_id","assessment_date","modality","status"],"title":"DialysisAdequacy"},"DialysisModality":{"type":"string","enum":["ihd","crrt","sled","capd","apd","hhd","nocturnal"],"title":"DialysisModality"},"DialysisPrescription":{"properties":{"rx_id":{"type":"string","title":"Rx Id"},"patient_id":{"type":"string","title":"Patient Id"},"modality":{"$ref":"#/components/schemas/DialysisModality"},"frequency_per_week":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequency Per Week"},"session_duration_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Session Duration Min"},"blood_flow_ml_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blood Flow Ml Min"},"dialysate_flow_ml_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dialysate Flow Ml Min"},"uf_goal_ml":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Uf Goal Ml"},"anticoagulation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anticoagulation"},"access_type":{"anyOf":[{"$ref":"#/components/schemas/AccessType"},{"type":"null"}]},"prescribed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prescribed By"},"effective_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Date"}},"type":"object","required":["patient_id","modality"],"title":"DialysisPrescription"},"DialysisTreatmentRun":{"properties":{"run_id":{"type":"string","title":"Run Id"},"patient_id":{"type":"string","title":"Patient Id"},"rx_id":{"type":"string","title":"Rx Id"},"start_dt":{"type":"string","format":"date-time","title":"Start Dt"},"end_dt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Dt"},"pre_weight_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pre Weight Kg"},"post_weight_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Post Weight Kg"},"uf_achieved_ml":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Uf Achieved Ml"},"blood_flow_ml_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blood Flow Ml Min"},"avg_arterial_pressure":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Arterial Pressure"},"avg_venous_pressure":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Venous Pressure"},"kt_v":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kt V"},"urr_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Urr Pct"},"access_used":{"anyOf":[{"$ref":"#/components/schemas/AccessType"},{"type":"null"}]},"outcome":{"$ref":"#/components/schemas/TreatmentOutcome","default":"completed"},"complications":{"items":{"type":"string"},"type":"array","title":"Complications"},"nurse_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nurse Id"}},"type":"object","required":["patient_id","rx_id"],"title":"DialysisTreatmentRun"},"DiarizationChannel":{"type":"string","enum":["clinician","patient","unknown"],"title":"DiarizationChannel"},"DiffRequest":{"properties":{"incoming_medications":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Incoming Medications","description":"Incoming FHIR MedicationRequest / MedicationStatement resources"},"incoming_allergies":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Incoming Allergies","description":"Incoming FHIR AllergyIntolerance resources"},"incoming_problems":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Incoming Problems","description":"Incoming FHIR Condition resources"},"source_document_reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Document Reference Id","description":"FHIR DocumentReference ID of the source C-CDA (for audit trail)"}},"type":"object","title":"DiffRequest","description":"Body for POST /reconciliation/{patient_id}/diff."},"DiffResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"source_document_reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Document Reference Id"},"items":{"items":{"$ref":"#/components/schemas/ReconcileItem"},"type":"array","title":"Items"}},"type":"object","required":["patient_id","items"],"title":"DiffResponse"},"DirectReceiveRequest":{"properties":{"from_address":{"type":"string","title":"From Address","description":"Sender's Direct address"},"subject":{"type":"string","title":"Subject","description":"Message subject","default":""},"ccda_base64":{"type":"string","title":"Ccda Base64","description":"Base64-encoded C-CDA R2.1 XML extracted from the MIME message"},"message_id":{"type":"string","title":"Message Id","description":"MIME Message-ID header value (for idempotency)","default":""},"disposition_notification_options":{"type":"string","title":"Disposition Notification Options","description":"Value of the RFC 3798 Disposition-Notification-Options header on the inbound MIME message; when present, /direct/receive generates an automatic MDN per (h)(1)(ii).","default":""},"return_mdn_to":{"type":"string","title":"Return Mdn To","description":"Optional override for the MDN recipient.  When omitted the MDN is addressed back to the inbound sender's Direct address.","default":""}},"type":"object","required":["from_address","ccda_base64"],"title":"DirectReceiveRequest","description":"Body for POST /direct/receive — ingest an inbound Direct message."},"DirectReceiveResponse":{"properties":{"message_id":{"type":"string","title":"Message Id"},"from_address":{"type":"string","title":"From Address"},"fhir_communication_id":{"type":"string","title":"Fhir Communication Id","description":"FHIR Communication resource ID storing the inbound message record"},"status":{"type":"string","title":"Status","description":"Processing status","default":"received"},"received_at":{"type":"string","title":"Received At"},"mdn":{"anyOf":[{"$ref":"#/components/schemas/MDNResponse"},{"type":"null"}],"description":"Populated when the inbound message requested a Message Disposition Notification (via disposition_notification_options) or when the operator explicitly requested one."}},"type":"object","required":["message_id","from_address","fhir_communication_id","received_at"],"title":"DirectReceiveResponse"},"DirectoryResourceResponse":{"properties":{"id":{"type":"string","title":"Id"},"resource_type":{"type":"string","title":"Resource Type"},"name":{"type":"string","title":"Name"},"active":{"type":"boolean","title":"Active"},"npi":{"type":"string","title":"Npi","default":""},"phone":{"type":"string","title":"Phone","default":""},"email":{"type":"string","title":"Email","default":""},"address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Address"},"organization_id":{"type":"string","title":"Organization Id","default":""},"practitioner_id":{"type":"string","title":"Practitioner Id","default":""},"location_id":{"type":"string","title":"Location Id","default":""},"specialty":{"type":"string","title":"Specialty","default":""}},"type":"object","required":["id","resource_type","name","active"],"title":"DirectoryResourceResponse"},"DisclosureIn":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"recipient_name":{"type":"string","title":"Recipient Name","description":"Entity/organization that received PHI"},"recipient_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Address"},"purpose":{"$ref":"#/components/schemas/app__serving__accounting_disclosures__DisclosurePurpose"},"description":{"type":"string","title":"Description","description":"Brief description of PHI disclosed"},"phi_categories":{"items":{"type":"string"},"type":"array","title":"Phi Categories","description":"Categories of PHI disclosed"},"disclosure_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disclosure Date","description":"ISO 8601 date; defaults to now"}},"type":"object","required":["patient_id","recipient_name","purpose","description"],"title":"DisclosureIn"},"DisclosureOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"recipient_name":{"type":"string","title":"Recipient Name"},"purpose":{"type":"string","title":"Purpose"},"description":{"type":"string","title":"Description"},"phi_categories":{"items":{"type":"string"},"type":"array","title":"Phi Categories"},"disclosure_date":{"type":"string","title":"Disclosure Date"},"recorded_by":{"type":"string","title":"Recorded By"},"recorded_date":{"type":"string","title":"Recorded Date"}},"type":"object","required":["id","patient_id","recipient_name","purpose","description","phi_categories","disclosure_date","recorded_by","recorded_date"],"title":"DisclosureOut"},"DisclosureRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"recipient_name":{"type":"string","title":"Recipient Name","description":"Entity receiving the disclosure"},"recipient_type":{"type":"string","title":"Recipient Type","description":"e.g., 'covered_entity', 'business_associate', 'government_agency'"},"purpose":{"$ref":"#/components/schemas/app__serving__privacy__DisclosurePurpose"},"description":{"type":"string","title":"Description","description":"Description of the PHI disclosed"},"date_disclosed":{"type":"string","title":"Date Disclosed","description":"ISO-8601 date of disclosure"},"excluded_from_accounting":{"type":"boolean","title":"Excluded From Accounting","default":false}},"type":"object","required":["patient_id","recipient_name","recipient_type","purpose","description","date_disclosed"],"title":"DisclosureRequest"},"DispensingEvent":{"type":"string","enum":["load_refill","pocket_open","witness_override","return","waste"],"title":"DispensingEvent"},"DiversionStatus":{"type":"string","enum":["open","partial_diversion","full_diversion","bypass"],"title":"DiversionStatus"},"DiversionUpdate":{"properties":{"facility_id":{"type":"string","title":"Facility Id"},"status":{"$ref":"#/components/schemas/DiversionStatus"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"expected_duration_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Duration Min"},"notified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notified By"}},"type":"object","required":["facility_id","status"],"title":"DiversionUpdate"},"DlqEntry":{"properties":{"enqueued_at":{"type":"string","title":"Enqueued At"},"attempt":{"type":"integer","title":"Attempt"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["enqueued_at","attempt","payload"],"title":"DlqEntry"},"DlqResponse":{"properties":{"sub_id":{"type":"string","title":"Sub Id"},"depth":{"type":"integer","title":"Depth"},"entries":{"items":{"$ref":"#/components/schemas/DlqEntry"},"type":"array","title":"Entries"}},"type":"object","required":["sub_id","depth","entries"],"title":"DlqResponse"},"DocumentSummary":{"properties":{"document_reference_id":{"type":"string","title":"Document Reference Id"},"doc_type":{"type":"string","title":"Doc Type"},"patient_id":{"type":"string","title":"Patient Id"},"status":{"type":"string","title":"Status"},"created":{"type":"string","title":"Created"}},"type":"object","required":["document_reference_id","doc_type","patient_id","status","created"],"title":"DocumentSummary"},"DocumentView":{"properties":{"document_reference_id":{"type":"string","title":"Document Reference Id"},"doc_type":{"type":"string","title":"Doc Type"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"created":{"type":"string","title":"Created"},"title":{"type":"string","title":"Title"},"sections":{"items":{"$ref":"#/components/schemas/RenderedSection"},"type":"array","title":"Sections"},"confidentiality_code":{"type":"string","title":"Confidentiality Code","default":"N"},"confidentiality_display":{"type":"string","title":"Confidentiality Display","default":"Normal"}},"type":"object","required":["document_reference_id","doc_type","patient_id","created","title","sections"],"title":"DocumentView","description":"Parsed representation of a stored C-CDA, suitable for clinician inspection."},"DonorRecord":{"properties":{"id":{"type":"string","title":"Id"},"donor_type":{"$ref":"#/components/schemas/DonorType"},"anonymous":{"type":"boolean","title":"Anonymous","default":true},"dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dob"},"blood_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blood Type"},"karyotype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Karyotype"},"genetic_screening_completed":{"type":"boolean","title":"Genetic Screening Completed","default":false},"infectious_disease_screening_completed":{"type":"boolean","title":"Infectious Disease Screening Completed","default":false},"fda_eligibility_determination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fda Eligibility Determination"},"quarantine_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Quarantine End Date"},"status":{"$ref":"#/components/schemas/DonorStatus","default":"screening"},"total_donations":{"type":"integer","title":"Total Donations","default":0},"max_donations_allowed":{"type":"integer","title":"Max Donations Allowed","default":6},"registry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["donor_type"],"title":"DonorRecord"},"DonorStatus":{"type":"string","enum":["screening","quarantine","released","rejected","active","retired"],"title":"DonorStatus"},"DonorType":{"type":"string","enum":["egg","sperm","embryo"],"title":"DonorType"},"DosageInstruction":{"properties":{"dose_value":{"type":"number","exclusiveMinimum":0.0,"title":"Dose Value","description":"Numeric dose amount"},"dose_unit":{"type":"string","minLength":1,"title":"Dose Unit","description":"Dose unit, e.g. 'mg' or 'tablet'"},"route_code":{"type":"string","title":"Route Code","description":"SNOMED CT code for the route"},"route_display":{"type":"string","title":"Route Display","description":"Human-readable route name"},"frequency_code":{"type":"string","title":"Frequency Code","description":"Timing code, e.g. 'BID', 'QD'"},"frequency_display":{"type":"string","title":"Frequency Display","description":"Human-readable frequency","default":""}},"type":"object","required":["dose_value","dose_unit","route_code","route_display","frequency_code"],"title":"DosageInstruction","description":"Dose, route, and frequency for a medication order."},"DoseAdjustmentReason":{"type":"string","enum":["renal_impairment","hepatic_impairment","toxicity_prior_cycle","weight_change","performance_status","clinical_judgement"],"title":"DoseAdjustmentReason"},"DoseRangeAlert":{"properties":{"alert_id":{"type":"string","title":"Alert Id"},"category":{"$ref":"#/components/schemas/DoseRangeCategory"},"medication_code":{"type":"string","title":"Medication Code"},"medication_display":{"type":"string","title":"Medication Display"},"description":{"type":"string","title":"Description"},"recommended_adjustment":{"type":"string","title":"Recommended Adjustment"}},"type":"object","required":["category","medication_code","medication_display","description","recommended_adjustment"],"title":"DoseRangeAlert"},"DoseRangeCategory":{"type":"string","enum":["renal","hepatic","weight_based","range"],"title":"DoseRangeCategory"},"DotPhraseRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"trigger":{"type":"string","title":"Trigger","description":"Dot phrase trigger (e.g., '.normalheart')"},"expansion":{"type":"string","title":"Expansion","description":"Text to expand to"},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"},"loinc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loinc Code"}},"type":"object","required":["tenant_id","trigger","expansion"],"title":"DotPhraseRequest"},"DownloadFormat":{"type":"string","enum":["fhir_bundle","ccda","pdf"],"title":"DownloadFormat"},"DrugAlcoholTest":{"properties":{"test_id":{"type":"string","title":"Test Id"},"employee_id":{"type":"string","title":"Employee Id"},"reason":{"$ref":"#/components/schemas/TestingReason"},"collection_date":{"type":"string","title":"Collection Date"},"result":{"anyOf":[{"$ref":"#/components/schemas/DrugTestResult"},{"type":"null"}]},"substances_detected":{"items":{"type":"string"},"type":"array","title":"Substances Detected"},"mro_reviewed":{"type":"boolean","title":"Mro Reviewed","default":false},"dot_regulated":{"type":"boolean","title":"Dot Regulated","default":false},"collection_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection Site"}},"type":"object","required":["employee_id","reason","collection_date"],"title":"DrugAlcoholTest"},"DrugComponent":{"properties":{"name":{"type":"string","title":"Name"},"dose":{"type":"number","title":"Dose"},"unit":{"type":"string","title":"Unit"},"route":{"$ref":"#/components/schemas/ChemoRouteOfAdmin","default":"iv"},"rate_ml_hr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate Ml Hr"},"duration_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Min"},"diluent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diluent"},"volume_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume Ml"}},"type":"object","required":["name","dose","unit"],"title":"DrugComponent"},"DrugFormularyEntry":{"properties":{"rxnorm_code":{"type":"string","title":"Rxnorm Code"},"drug_name":{"type":"string","title":"Drug Name"},"formulary_tier":{"$ref":"#/components/schemas/FormularyTier"},"requires_prior_auth":{"type":"boolean","title":"Requires Prior Auth"},"requires_step_therapy":{"type":"boolean","title":"Requires Step Therapy"},"quantity_limit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantity Limit"},"preferred_alternatives":{"items":{"type":"string"},"type":"array","title":"Preferred Alternatives"},"plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Id"}},"type":"object","required":["rxnorm_code","drug_name","formulary_tier","requires_prior_auth","requires_step_therapy","quantity_limit"],"title":"DrugFormularyEntry"},"DrugInfo":{"properties":{"rxnorm_code":{"type":"string","title":"Rxnorm Code","description":"RxNorm concept identifier (e.g. '1049502')"},"drug_description":{"type":"string","title":"Drug Description","description":"Human-readable drug name and strength"},"quantity":{"type":"string","title":"Quantity","description":"Dispense quantity with unit (e.g. '30 tablets')"},"days_supply":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Days Supply","description":"Days supply for the dispense"},"sig":{"type":"string","title":"Sig","description":"Patient instructions (Sig)"},"refills":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"Refills","description":"Number of authorised refills","default":0},"dea_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dea Schedule","description":"DEA schedule (CII-CV) if controlled; null otherwise. EPCS not supported in v1."}},"type":"object","required":["rxnorm_code","drug_description","quantity","days_supply","sig"],"title":"DrugInfo","description":"Minimal drug descriptor for NCPDP SCRIPT messages."},"DrugInteractionRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"proposed_medications":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Proposed Medications"},"include_allergy_check":{"type":"boolean","title":"Include Allergy Check","default":true}},"type":"object","required":["patient_id"],"title":"DrugInteractionRequest"},"DrugTestResult":{"type":"string","enum":["negative","positive","dilute_negative","refusal","cancelled"],"title":"DrugTestResult"},"DrummondAckRequest":{"properties":{"demo_session_id":{"type":"string","title":"Demo Session Id","description":"Session ID returned by /direct/drummond/demo"},"mdn_disposition":{"type":"string","title":"Mdn Disposition","description":"MDN Disposition header value (RFC 3798)","default":"automatic-action/MDN-sent-automatically; processed"},"ack_from_address":{"type":"string","title":"Ack From Address","description":"Direct address from which the MDN was received","default":"drummond-test@direct.drummondgroup.com"}},"type":"object","required":["demo_session_id"],"title":"DrummondAckRequest","description":"Body for POST /direct/drummond/ack."},"DrummondAckResponse":{"properties":{"demo_session_id":{"type":"string","title":"Demo Session Id"},"status":{"type":"string","title":"Status"},"acked_at":{"type":"string","title":"Acked At"},"mdn_disposition":{"type":"string","title":"Mdn Disposition"}},"type":"object","required":["demo_session_id","status","acked_at","mdn_disposition"],"title":"DrummondAckResponse"},"DrummondDemoRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient ID for the transition-of-care packet"},"recipient_direct_address":{"type":"string","title":"Recipient Direct Address","description":"Drummond test HISP Direct address","default":"drummond-test@direct.drummondgroup.com"},"doc_type":{"type":"string","title":"Doc Type","description":"C-CDA document type: ccd | referral | discharge","default":"ccd"}},"type":"object","required":["patient_id"],"title":"DrummondDemoRequest","description":"Body for POST /direct/drummond/demo."},"DrummondDemoResponse":{"properties":{"demo_session_id":{"type":"string","title":"Demo Session Id","description":"Unique ID for this demo session"},"patient_id":{"type":"string","title":"Patient Id"},"doc_type":{"type":"string","title":"Doc Type"},"recipient":{"type":"string","title":"Recipient"},"tracking_id":{"type":"string","title":"Tracking Id","description":"Direct message tracking ID"},"communication_id":{"type":"string","title":"Communication Id","description":"FHIR Communication resource ID"},"ack_endpoint":{"type":"string","title":"Ack Endpoint","description":"POST this URL with the MDN to complete the demo flow"},"status":{"type":"string","title":"Status","description":"Demo flow status: sent | acked | failed","default":"sent"},"sent_at":{"type":"string","title":"Sent At"}},"type":"object","required":["demo_session_id","patient_id","doc_type","recipient","tracking_id","communication_id","ack_endpoint","sent_at"],"title":"DrummondDemoResponse","description":"Result of the Drummond demo send flow."},"DryWeightAssessment":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"patient_id":{"type":"string","title":"Patient Id"},"assessment_date":{"type":"string","title":"Assessment Date"},"current_dry_weight_kg":{"type":"number","title":"Current Dry Weight Kg"},"previous_dry_weight_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Previous Dry Weight Kg"},"change_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Kg"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"assessed_by":{"type":"string","title":"Assessed By"},"next_reassessment_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Reassessment Date"}},"type":"object","required":["patient_id","assessment_date","current_dry_weight_kg","assessed_by"],"title":"DryWeightAssessment"},"DtrQuestionnaireResponse":{"properties":{"questionnaire_id":{"type":"string","title":"Questionnaire Id"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"version":{"type":"string","title":"Version"},"status":{"type":"string","title":"Status"},"item_count":{"type":"integer","title":"Item Count"},"fhir_questionnaire":{"additionalProperties":true,"type":"object","title":"Fhir Questionnaire"}},"type":"object","required":["questionnaire_id","title","url","version","status","item_count","fhir_questionnaire"],"title":"DtrQuestionnaireResponse"},"DualControlConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"required_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Required Role"},"first_approver_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Approver Uid"},"second_approver_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Second Approver Uid"}},"type":"object","title":"DualControlConfig","description":"Require two distinct users to confirm a step."},"DuplicateTherapyAlert":{"properties":{"alert_id":{"type":"string","title":"Alert Id"},"therapeutic_class":{"type":"string","title":"Therapeutic Class"},"existing_medication_code":{"type":"string","title":"Existing Medication Code"},"existing_medication_display":{"type":"string","title":"Existing Medication Display"},"description":{"type":"string","title":"Description"}},"type":"object","required":["therapeutic_class","existing_medication_code","existing_medication_display","description"],"title":"DuplicateTherapyAlert"},"EDDSIAlert":{"properties":{"alert_id":{"type":"string","title":"Alert Id"},"visit_id":{"type":"string","title":"Visit Id"},"patient_id":{"type":"string","title":"Patient Id"},"category":{"$ref":"#/components/schemas/EDDSICategory"},"severity":{"type":"string","title":"Severity"},"title":{"type":"string","title":"Title"},"message":{"type":"string","title":"Message"},"recommended_actions":{"items":{"type":"string"},"type":"array","title":"Recommended Actions"},"triggered_by":{"type":"string","title":"Triggered By"},"triggered_at":{"type":"string","format":"date-time","title":"Triggered At"},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false},"acknowledged_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledged By"},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Acknowledged At"},"override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Reason"},"snomed_codes":{"items":{"type":"string"},"type":"array","title":"Snomed Codes"}},"type":"object","required":["visit_id","patient_id","category","severity","title","message","triggered_by"],"title":"EDDSIAlert","description":"ED-specific decision support intervention alert."},"EDDSICategory":{"type":"string","enum":["sepsis_alert","stroke_alert","stemi_alert","pulmonary_embolism","drug_interaction","contrast_nephropathy","fall_risk","sepsis_bundle","critical_lab","imaging_recommendation"],"title":"EDDSICategory"},"EDPatientStatus":{"type":"string","enum":["waiting","in_triage","in_room","awaiting_results","awaiting_bed","discharge_pending","admitted","lwbs","lama","ama","transferred","discharged"],"title":"EDPatientStatus"},"EDVisit":{"properties":{"visit_id":{"type":"string","title":"Visit Id"},"patient_id":{"type":"string","title":"Patient Id"},"arrival_dt":{"type":"string","format":"date-time","title":"Arrival Dt"},"triage_level":{"anyOf":[{"$ref":"#/components/schemas/TriageLevel"},{"type":"null"}]},"chief_complaint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chief Complaint"},"status":{"$ref":"#/components/schemas/EDPatientStatus","default":"waiting"},"room":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room"},"assigned_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Provider"},"assigned_nurse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Nurse"},"door_to_triage_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Door To Triage Min"},"door_to_provider_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Door To Provider Min"},"length_of_stay_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Length Of Stay Min"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"admit_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admit Reason"}},"type":"object","required":["patient_id"],"title":"EDVisit"},"EDiscoveryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"matter_reference":{"type":"string","title":"Matter Reference"},"scope":{"$ref":"#/components/schemas/HoldScope","default":"all"},"date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"},"requesting_counsel":{"type":"string","title":"Requesting Counsel"},"authorization_reference":{"type":"string","title":"Authorization Reference","description":"Patient authorization ID or court order reference"}},"type":"object","required":["patient_id","matter_reference","requesting_counsel","authorization_reference"],"title":"EDiscoveryRequest"},"EMTALALog":{"properties":{"log_id":{"type":"string","title":"Log Id"},"visit_id":{"type":"string","title":"Visit Id"},"patient_id":{"type":"string","title":"Patient Id"},"mse_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mse Id"},"transfer_type":{"$ref":"#/components/schemas/EMTALATransferType"},"transfer_status":{"$ref":"#/components/schemas/TransferStatus","default":"initiated"},"receiving_facility":{"type":"string","title":"Receiving Facility"},"receiving_physician":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Receiving Physician"},"sending_physician":{"type":"string","title":"Sending Physician"},"transfer_reason":{"type":"string","title":"Transfer Reason"},"risks_benefits_discussed":{"type":"boolean","title":"Risks Benefits Discussed","default":false},"patient_or_rep_consent":{"type":"boolean","title":"Patient Or Rep Consent","default":false},"medical_records_sent":{"type":"boolean","title":"Medical Records Sent","default":false},"mode_of_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode Of Transport"},"initiated_at":{"type":"string","format":"date-time","title":"Initiated At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"certification_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Certification Notes"}},"type":"object","required":["visit_id","patient_id","transfer_type","receiving_facility","sending_physician","transfer_reason"],"title":"EMTALALog","description":"EMTALA transfer log entry — CMS CoP §489.20(r)."},"EMTALATransferType":{"type":"string","enum":["appropriate","patient_request","physician_certification"],"title":"EMTALATransferType"},"EPCSHardwareVerifyRequest":{"properties":{"credential_id":{"type":"string","title":"Credential Id"},"assertion_response":{"additionalProperties":true,"type":"object","title":"Assertion Response"}},"type":"object","required":["credential_id","assertion_response"],"title":"EPCSHardwareVerifyRequest","description":"Body for verifying a PIV-CAC / FIDO2 hardware token for DEA EPCS."},"ERPMessage":{"properties":{"message_id":{"type":"string","title":"Message Id"},"message_type":{"$ref":"#/components/schemas/ERPMessageType"},"erp_system":{"type":"string","title":"Erp System","description":"e.g. SAP, Oracle, Infor"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"status":{"type":"string","title":"Status","default":"received"}},"type":"object","required":["message_id","message_type","erp_system","payload","received_at"],"title":"ERPMessage"},"ERPMessageCreate":{"properties":{"message_type":{"$ref":"#/components/schemas/ERPMessageType"},"erp_system":{"type":"string","title":"Erp System"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["message_type","erp_system","payload"],"title":"ERPMessageCreate"},"ERPMessageType":{"type":"string","enum":["purchase_order","receipt","invoice","inventory_update"],"title":"ERPMessageType"},"ESRDCause":{"type":"string","enum":["diabetic_nephropathy","hypertensive_nephropathy","glomerulonephritis","polycystic_kidney_disease","lupus_nephritis","other"],"title":"ESRDCause"},"ESRDPatientRegistration":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"esrd_cause":{"$ref":"#/components/schemas/ESRDCause"},"esrd_onset_date":{"type":"string","title":"Esrd Onset Date"},"ckd_stage":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Ckd Stage","description":"CKD stage 1-5"},"current_modality":{"$ref":"#/components/schemas/DialysisModality"},"nephrologist_id":{"type":"string","title":"Nephrologist Id"},"enrolled_dt":{"type":"string","format":"date-time","title":"Enrolled Dt"},"transplant_waitlisted":{"type":"boolean","title":"Transplant Waitlisted","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","esrd_cause","esrd_onset_date","ckd_stage","current_modality","nephrologist_id"],"title":"ESRDPatientRegistration"},"ESRDQualityMetrics":{"properties":{"metrics_id":{"type":"string","title":"Metrics Id"},"patient_id":{"type":"string","title":"Patient Id"},"reporting_period":{"type":"string","title":"Reporting Period"},"kt_v_adequate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Kt V Adequate"},"urr_adequate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Urr Adequate"},"hemoglobin_in_range":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hemoglobin In Range"},"av_fistula_use":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Av Fistula Use"},"hypercalcemia_absent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hypercalcemia Absent"},"hospitalizations":{"type":"integer","title":"Hospitalizations","default":0},"vascular_access_infections":{"type":"integer","title":"Vascular Access Infections","default":0},"cms_2744_reported":{"type":"boolean","title":"Cms 2744 Reported","default":false}},"type":"object","required":["patient_id","reporting_period"],"title":"ESRDQualityMetrics"},"EVSTaskCreateRequest":{"properties":{"bed_id":{"type":"string","title":"Bed Id"},"unit_id":{"type":"string","title":"Unit Id"},"task_type":{"$ref":"#/components/schemas/EVSTaskType"},"priority":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Priority","description":"1=stat, 5=routine","default":2},"isolation_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Isolation Type","description":"e.g. 'contact', 'airborne', 'droplet'"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["bed_id","unit_id","task_type"],"title":"EVSTaskCreateRequest"},"EVSTaskResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"bed_id":{"type":"string","title":"Bed Id"},"unit_id":{"type":"string","title":"Unit Id"},"task_type":{"$ref":"#/components/schemas/EVSTaskType"},"priority":{"type":"integer","title":"Priority"},"status":{"$ref":"#/components/schemas/EVSTaskStatus"},"isolation_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Isolation Type"},"assignee_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"turnover_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turnover Minutes","description":"Elapsed minutes from pending to verified"}},"type":"object","required":["task_id","bed_id","unit_id","task_type","priority","status","isolation_type","assignee_id","notes","created_at","updated_at","completed_at"],"title":"EVSTaskResponse"},"EVSTaskStatus":{"type":"string","enum":["pending","in_progress","completed","verified","cancelled"],"title":"EVSTaskStatus"},"EVSTaskType":{"type":"string","enum":["terminal_clean","discharge_clean","routine","isolation_clean","spill"],"title":"EVSTaskType"},"EVSTaskUpdateRequest":{"properties":{"new_status":{"$ref":"#/components/schemas/EVSTaskStatus"},"assignee_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["new_status"],"title":"EVSTaskUpdateRequest"},"EditSeverity":{"type":"string","enum":["error","warning","info"],"title":"EditSeverity"},"EducationResourceIn":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"title":{"type":"string","title":"Title"},"content_url":{"type":"string","title":"Content Url","description":"URL of the education document"},"language":{"type":"string","title":"Language","description":"BCP-47 language tag","default":"en"},"related_condition_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Condition Code"},"related_medication_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Medication Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["patient_id","title","content_url"],"title":"EducationResourceIn"},"EducationResourceOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"title":{"type":"string","title":"Title"},"content_url":{"type":"string","title":"Content Url"},"language":{"type":"string","title":"Language"},"created_date":{"type":"string","title":"Created Date"},"related_condition_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Condition Code"},"related_medication_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Medication Code"}},"type":"object","required":["id","patient_id","title","content_url","language","created_date","related_condition_code","related_medication_code"],"title":"EducationResourceOut"},"EligibilityInquiryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"Internal patient identifier"},"payer_id":{"type":"string","title":"Payer Id","description":"Payer identifier (clearinghouse NPI or payer code)"},"service_type":{"$ref":"#/components/schemas/ServiceTypeCode","description":"X12 service type code for the inquiry","default":"30"},"service_date":{"type":"string","format":"date","title":"Service Date"},"provider_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Npi","description":"Rendering / billing provider NPI"},"cadence":{"$ref":"#/components/schemas/VerificationCadence","default":"real_time"},"use_davinci_crd":{"type":"boolean","title":"Use Davinci Crd","description":"Route through Da Vinci CRD FHIR endpoint","default":false},"use_cms_patient_access":{"type":"boolean","title":"Use Cms Patient Access","description":"Fetch Coverage from CMS Patient Access API","default":false}},"type":"object","required":["patient_id","payer_id"],"title":"EligibilityInquiryRequest"},"EligibilityResponse":{"properties":{"tracking_id":{"type":"string","title":"Tracking Id"},"patient_id":{"type":"string","title":"Patient Id"},"payer_id":{"type":"string","title":"Payer Id"},"payer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name"},"status":{"$ref":"#/components/schemas/EligibilityStatus"},"coverage_active":{"type":"boolean","title":"Coverage Active"},"service_type":{"type":"string","title":"Service Type"},"service_date":{"type":"string","format":"date","title":"Service Date"},"cadence":{"$ref":"#/components/schemas/VerificationCadence"},"plan":{"$ref":"#/components/schemas/PlanInfo"},"deductible":{"$ref":"#/components/schemas/DeductibleInfo"},"copay":{"$ref":"#/components/schemas/CopayInfo"},"coinsurance":{"$ref":"#/components/schemas/CoinsuranceInfo"},"out_of_pocket":{"$ref":"#/components/schemas/OutOfPocketInfo"},"x12_271_summary":{"additionalProperties":true,"type":"object","title":"X12 271 Summary"},"fhir_coverage_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Coverage Response Id"},"verified_at":{"type":"string","format":"date-time","title":"Verified At"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["tracking_id","patient_id","payer_id","status","coverage_active","service_type","service_date","cadence"],"title":"EligibilityResponse"},"EligibilityStatus":{"type":"string","enum":["eligible","ineligible","pending","error","unknown"],"title":"EligibilityStatus"},"EmarResult":{"type":"string","enum":["pass","warn","fail"],"title":"EmarResult"},"EmarScanRequest":{"properties":{"patient_barcode":{"type":"string","title":"Patient Barcode"},"medication_barcode":{"type":"string","title":"Medication Barcode"},"administered_dose":{"type":"string","title":"Administered Dose"},"route":{"type":"string","title":"Route"},"nurse_id":{"type":"string","title":"Nurse Id"},"encounter_id":{"type":"string","title":"Encounter Id"}},"type":"object","required":["patient_barcode","medication_barcode","administered_dose","route","nurse_id","encounter_id"],"title":"EmarScanRequest"},"EmarScanResult":{"properties":{"scan_id":{"type":"string","title":"Scan Id"},"result":{"$ref":"#/components/schemas/EmarResult"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"medication_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medication Name"},"expected_dose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Dose"},"administered_at":{"type":"string","title":"Administered At"}},"type":"object","required":["scan_id","result","administered_at"],"title":"EmarScanResult"},"EmbryoDisposition":{"type":"string","enum":["fresh_transfer","vitrified","discarded","donated_research","donated_family_building","biopsied"],"title":"EmbryoDisposition"},"EmbryoGrade":{"type":"string","enum":["AA","AB","BA","BB","AC","CA","BC","CB","CC","arrested","degenerate"],"title":"EmbryoGrade"},"EmbryoRecord":{"properties":{"id":{"type":"string","title":"Id"},"cycle_id":{"type":"string","title":"Cycle Id"},"patient_id":{"type":"string","title":"Patient Id"},"fertilisation_method":{"$ref":"#/components/schemas/FertilisationMethod"},"fertilisation_date":{"type":"string","format":"date","title":"Fertilisation Date"},"day_of_assessment":{"type":"integer","title":"Day Of Assessment"},"blastocyst_stage":{"anyOf":[{"$ref":"#/components/schemas/BlastocystStage"},{"type":"null"}]},"icm_grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icm Grade"},"te_grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Te Grade"},"overall_grade":{"anyOf":[{"$ref":"#/components/schemas/EmbryoGrade"},{"type":"null"}]},"pgt_a_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pgt A Result"},"pgt_m_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pgt M Result"},"pgt_sr_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pgt Sr Result"},"disposition":{"$ref":"#/components/schemas/EmbryoDisposition","default":"vitrified"},"vitrification_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Vitrification Date"},"thaw_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Thaw Date"},"storage_tank":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Tank"},"storage_goblet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Goblet"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["cycle_id","patient_id","fertilisation_method","fertilisation_date","day_of_assessment"],"title":"EmbryoRecord"},"EmployeeCreateRequest":{"properties":{"employee_id":{"type":"string","title":"Employee Id"},"full_name":{"type":"string","title":"Full Name"},"role":{"type":"string","title":"Role","description":"e.g. 'RN', 'CNA', 'TRANSPORTER'"},"unit_id":{"type":"string","title":"Unit Id"},"fte":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Fte","default":1.0},"hire_date":{"type":"string","title":"Hire Date","description":"ISO date YYYY-MM-DD"}},"type":"object","required":["employee_id","full_name","role","unit_id","hire_date"],"title":"EmployeeCreateRequest"},"EmployeeResponse":{"properties":{"employee_id":{"type":"string","title":"Employee Id"},"full_name":{"type":"string","title":"Full Name"},"role":{"type":"string","title":"Role"},"unit_id":{"type":"string","title":"Unit Id"},"fte":{"type":"number","title":"Fte"},"hire_date":{"type":"string","title":"Hire Date"},"active":{"type":"boolean","title":"Active"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["employee_id","full_name","role","unit_id","fte","hire_date","active","created_at"],"title":"EmployeeResponse"},"EncounterCompositionRequest":{"properties":{"encounter_id":{"type":"string","title":"Encounter Id"},"patient_id":{"type":"string","title":"Patient Id"},"agent_code":{"type":"string","title":"Agent Code"},"session_id":{"type":"string","title":"Session Id"},"agent_version":{"type":"string","title":"Agent Version"},"title":{"type":"string","title":"Title","description":"Human-readable title for the Composition","default":"Agent Encounter Composition"},"sections":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sections","description":"FHIR Composition.section list"}},"type":"object","required":["encounter_id","patient_id","agent_code","session_id","agent_version"],"title":"EncounterCompositionRequest"},"EncounterCompositionResponse":{"properties":{"composition_id":{"type":"string","title":"Composition Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"fhir_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Version Id"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["composition_id","encounter_id","fhir_version_id","created"],"title":"EncounterCompositionResponse"},"EncounterDisposition":{"type":"string","enum":["admitted","discharged","transferred","left_without_being_seen","against_medical_advice","expired"],"title":"EncounterDisposition"},"EncounterInfo":{"properties":{"encounter_id":{"type":"string","title":"Encounter Id","description":"FHIR Encounter ID","default":""},"encounter_class":{"type":"string","title":"Encounter Class","description":"Encounter class code (e.g. 'AMB', 'IMP')","default":""},"encounter_status":{"type":"string","title":"Encounter Status","description":"Encounter status","default":"finished"}},"type":"object","title":"EncounterInfo","description":"Encounter context for the eICR."},"EncryptAuthCredentialsStatus":{"properties":{"compliant":{"type":"boolean","title":"Compliant"},"environment":{"type":"string","title":"Environment"},"credential_storage":{"$ref":"#/components/schemas/CredentialStoragePolicy"},"service_token":{"$ref":"#/components/schemas/ServiceTokenPolicy"},"password_reset":{"$ref":"#/components/schemas/PasswordResetPolicy"},"secret_paths":{"items":{"type":"string"},"type":"array","title":"Secret Paths"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["compliant","environment","credential_storage","service_token","password_reset","secret_paths","notes"],"title":"EncryptAuthCredentialsStatus"},"EncryptRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"field_path":{"type":"string","title":"Field Path","description":"Dotted path to the field, e.g. 'Observation.valueString'"},"category":{"$ref":"#/components/schemas/SensitivityCategory"},"plaintext":{"type":"string","title":"Plaintext","description":"The sensitive field value to encrypt"}},"type":"object","required":["patient_id","field_path","category","plaintext"],"title":"EncryptRequest"},"EncryptResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"field_path":{"type":"string","title":"Field Path"},"category":{"$ref":"#/components/schemas/SensitivityCategory"},"ciphertext":{"type":"string","title":"Ciphertext","description":"Base64-encoded KMS ciphertext"},"kms_key_alias":{"type":"string","title":"Kms Key Alias"}},"type":"object","required":["patient_id","field_path","category","ciphertext","kms_key_alias"],"title":"EncryptResponse"},"EnrollBiometricRequest":{"properties":{"biometric_public_key":{"type":"string","title":"Biometric Public Key"}},"type":"object","required":["biometric_public_key"],"title":"EnrollBiometricRequest"},"EnrollCCMRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"program":{"$ref":"#/components/schemas/CCMProgram"},"care_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Care Plan Id"}},"type":"object","required":["patient_id","program"],"title":"EnrollCCMRequest"},"EnrollDeviceRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"device_type":{"$ref":"#/components/schemas/RPMDeviceType"},"manufacturer":{"type":"string","title":"Manufacturer","default":""},"model":{"type":"string","title":"Model","default":""},"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number"}},"type":"object","required":["patient_id","device_type"],"title":"EnrollDeviceRequest"},"EnrollmentCheckRequest":{"properties":{"npi":{"type":"string","title":"Npi"},"payer_ids":{"items":{"type":"string"},"type":"array","title":"Payer Ids","description":"Payer IDs to check; empty = all known payers"}},"type":"object","required":["npi"],"title":"EnrollmentCheckRequest"},"EntityDomain":{"type":"string","enum":["patient","encounter","medication","allergy","problem","lab","order","note","claim"],"title":"EntityDomain"},"EnvironmentalRound":{"properties":{"round_id":{"type":"string","title":"Round Id"},"unit":{"type":"string","title":"Unit"},"room":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room"},"round_type":{"$ref":"#/components/schemas/EnvironmentalRoundType"},"performed_by":{"type":"string","title":"Performed By"},"performed_dt":{"type":"string","format":"date-time","title":"Performed Dt"},"findings":{"items":{"type":"string"},"type":"array","title":"Findings"},"deficiencies_noted":{"type":"boolean","title":"Deficiencies Noted","default":false},"corrective_actions":{"items":{"type":"string"},"type":"array","title":"Corrective Actions"},"pass_fail":{"type":"string","title":"Pass Fail","default":"pass"}},"type":"object","required":["unit","round_type","performed_by"],"title":"EnvironmentalRound"},"EnvironmentalRoundType":{"type":"string","enum":["terminal_clean","high_touch_surface","air_handling","water_system","routine"],"title":"EnvironmentalRoundType"},"EscalateStepRequest":{"properties":{"step_key":{"type":"string","title":"Step Key"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["step_key"],"title":"EscalateStepRequest"},"EscalationPolicy":{"properties":{"trigger":{"$ref":"#/components/schemas/EscalationTrigger","default":"on_low_confidence"},"target":{"$ref":"#/components/schemas/EscalationTarget","default":"clinician_review_queue"},"notify_on_escalation":{"type":"boolean","title":"Notify On Escalation","default":true}},"type":"object","title":"EscalationPolicy"},"EscalationTarget":{"type":"string","enum":["clinician_review_queue","supervisor","alert_only"],"title":"EscalationTarget"},"EscalationTrigger":{"type":"string","enum":["on_low_confidence","on_safety_flag","on_any_flag","never"],"title":"EscalationTrigger"},"EstimateRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"charge_codes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Charge Codes"}},"type":"object","required":["patient_id","charge_codes"],"title":"EstimateRequest"},"EstimateResponse":{"properties":{"estimate_id":{"type":"string","title":"Estimate Id"},"patient_id":{"type":"string","title":"Patient Id"},"payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"},"line_items":{"items":{"$ref":"#/components/schemas/ChargeEstimate"},"type":"array","title":"Line Items"},"total_gross":{"type":"number","title":"Total Gross"},"total_estimated":{"type":"number","title":"Total Estimated"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"type":"object","required":["estimate_id","patient_id","payer_id","line_items","total_gross","total_estimated","generated_at"],"title":"EstimateResponse"},"EvalMetric":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"number","title":"Value"},"threshold":{"type":"number","title":"Threshold"},"passed":{"type":"boolean","title":"Passed","default":false}},"type":"object","required":["name","value","threshold"],"title":"EvalMetric"},"EvalPackType":{"type":"string","enum":["golden","adversarial","regression","holdout"],"title":"EvalPackType"},"EvaluationRequest":{"properties":{"rule_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Rule Ids","description":"Rule IDs to evaluate; null = evaluate all enabled rules"},"simulated_events":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Simulated Events"}},"type":"object","title":"EvaluationRequest"},"EventAck":{"properties":{"status":{"type":"string","title":"Status"},"message_id":{"type":"string","title":"Message Id"},"resource_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"interaction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interaction"}},"type":"object","required":["status","message_id"],"title":"EventAck","description":"Response body returned for accepted FHIR events."},"EventCategory":{"type":"string","enum":["FALL","MEDICATION_ERROR","NEAR_MISS","EQUIPMENT_FAILURE","PATIENT_COMPLAINT","PRESSURE_INJURY","HAI","PROCEDURE_COMPLICATION","OTHER"],"title":"EventCategory"},"EventSeverity":{"type":"string","enum":["NO_HARM","MILD","MODERATE","SEVERE","SENTINEL"],"title":"EventSeverity"},"EventStatus":{"type":"string","enum":["SUBMITTED","UNDER_REVIEW","RCA_OPEN","RCA_COMPLETE","CLOSED"],"title":"EventStatus"},"EventUpdateRequest":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/EventStatus"},{"type":"null"}]},"reviewer_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Uid"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"EventUpdateRequest"},"ExportDestination":{"type":"string","enum":["bigquery","snowflake","gcs","s3"],"title":"ExportDestination"},"ExportFormat":{"type":"string","enum":["ndjson","parquet","csv","iceberg"],"title":"ExportFormat"},"ExposureRecord":{"properties":{"exposure_id":{"type":"string","title":"Exposure Id"},"employee_id":{"type":"string","title":"Employee Id"},"substance":{"type":"string","title":"Substance"},"exposure_route":{"type":"string","title":"Exposure Route"},"exposure_date":{"type":"string","title":"Exposure Date"},"duration_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Min"},"ppe_worn":{"items":{"type":"string"},"type":"array","title":"Ppe Worn"},"air_monitoring_result":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Air Monitoring Result"},"action_level_exceeded":{"type":"boolean","title":"Action Level Exceeded","default":false},"medical_surveillance_triggered":{"type":"boolean","title":"Medical Surveillance Triggered","default":false}},"type":"object","required":["employee_id","substance","exposure_route","exposure_date"],"title":"ExposureRecord"},"FHRPattern":{"type":"string","enum":["category_i","category_ii","category_iii"],"title":"FHRPattern"},"FacilityConfig":{"properties":{"facility_name":{"type":"string","title":"Facility Name"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oid"},"hisp_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hisp Address"},"address":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Address"},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"},"timezone":{"type":"string","title":"Timezone","default":"America/Toronto"},"off_hours_start":{"type":"string","title":"Off Hours Start","default":"00:00"},"off_hours_end":{"type":"string","title":"Off Hours End","default":"06:00"},"custom_overrides":{"additionalProperties":true,"type":"object","title":"Custom Overrides"}},"type":"object","required":["facility_name"],"title":"FacilityConfig"},"FacilityConfigCreate":{"properties":{"facility_name":{"type":"string","title":"Facility Name"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oid"},"hisp_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hisp Address"},"address":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Address"},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"},"timezone":{"type":"string","title":"Timezone","default":"America/Toronto"},"off_hours_start":{"type":"string","title":"Off Hours Start","default":"00:00"},"off_hours_end":{"type":"string","title":"Off Hours End","default":"06:00"},"custom_overrides":{"additionalProperties":true,"type":"object","title":"Custom Overrides"}},"type":"object","required":["facility_name"],"title":"FacilityConfigCreate","description":"Full facility configuration for a care site."},"FacilityOverride":{"properties":{"facility_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Name"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oid"},"hisp_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hisp Address"},"address":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Address"},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"off_hours_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Off Hours Start"},"off_hours_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Off Hours End"},"custom_overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Overrides"}},"type":"object","title":"FacilityOverride","description":"Partial overrides applied on top of the tenant base config for a facility."},"FactMatrixEntryRequest":{"properties":{"domain":{"$ref":"#/components/schemas/EntityDomain"},"field":{"type":"string","title":"Field"},"authoritative_source":{"type":"string","title":"Authoritative Source","description":"Source system designated as the single source of truth for this field"},"rule_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Id","description":"Optional reference to a survivorship rule governing this entry"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["domain","field","authoritative_source"],"title":"FactMatrixEntryRequest"},"FactoryUpgradePreview":{"properties":{"spec_section_id":{"type":"string","title":"Spec Section Id"},"current_checksum":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Checksum"},"incoming_checksum":{"type":"string","title":"Incoming Checksum"},"artifacts_would_change":{"items":{"type":"string"},"type":"array","title":"Artifacts Would Change"},"is_hand_authored_surface":{"type":"boolean","title":"Is Hand Authored Surface"}},"type":"object","required":["spec_section_id","current_checksum","incoming_checksum","artifacts_would_change","is_hand_authored_surface"],"title":"FactoryUpgradePreview","description":"Diff preview produced by a dry-run factory upgrade."},"FailoverPolicy":{"properties":{"policy_id":{"type":"string","title":"Policy Id"},"trigger":{"type":"string","title":"Trigger"},"source_region":{"type":"string","title":"Source Region"},"target_region":{"type":"string","title":"Target Region"},"auto_failover":{"type":"boolean","title":"Auto Failover","default":true},"min_healthy_regions":{"type":"integer","title":"Min Healthy Regions","default":2},"rpo_seconds":{"type":"integer","title":"Rpo Seconds","default":30},"rto_seconds":{"type":"integer","title":"Rto Seconds","default":60}},"type":"object","required":["trigger","source_region","target_region"],"title":"FailoverPolicy"},"FallRiskAssessment":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"assessment_date":{"type":"string","format":"date","title":"Assessment Date"},"tool":{"$ref":"#/components/schemas/FallRiskTool"},"score":{"type":"integer","title":"Score"},"risk_level":{"$ref":"#/components/schemas/FallRiskLevel"},"fall_history_last_6mo":{"type":"boolean","title":"Fall History Last 6Mo","default":false},"assistive_device_used":{"type":"boolean","title":"Assistive Device Used","default":false},"iv_line_present":{"type":"boolean","title":"Iv Line Present","default":false},"gait_impaired":{"type":"boolean","title":"Gait Impaired","default":false},"altered_mental_status":{"type":"boolean","title":"Altered Mental Status","default":false},"interventions_ordered":{"items":{"type":"string"},"type":"array","title":"Interventions Ordered"},"provider_id":{"type":"string","title":"Provider Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","assessment_date","tool","score","risk_level","provider_id"],"title":"FallRiskAssessment"},"FallRiskLevel":{"type":"string","enum":["low","moderate","high"],"title":"FallRiskLevel"},"FallRiskRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"morse_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Morse Score"},"stratify_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stratify Score"}},"type":"object","required":["patient_id"],"title":"FallRiskRequest"},"FallRiskTool":{"type":"string","enum":["morse","stratify","hendrich_ii"],"title":"FallRiskTool"},"FamilyHistoryEntry":{"properties":{"relationship":{"type":"string","maxLength":200,"title":"Relationship","description":"Relationship to patient (e.g. 'mother', 'paternal grandfather')"},"condition":{"type":"string","maxLength":500,"title":"Condition","description":"Condition or disease (e.g. 'type 2 diabetes')"},"age_at_onset":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Age At Onset","description":"Approximate age at onset if known"},"deceased":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deceased","description":"Whether the family member is deceased"},"cause_of_death":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Cause Of Death","description":"Cause of death if applicable"}},"type":"object","required":["relationship","condition"],"title":"FamilyHistoryEntry","description":"Family health history entry (USCDI v3 Health Status / Family Health History)."},"FamilyMemberHistoryOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"relationship_code":{"type":"string","title":"Relationship Code"},"relationship_display":{"type":"string","title":"Relationship Display"},"sex":{"type":"string","title":"Sex"},"age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age"},"deceased":{"type":"boolean","title":"Deceased"},"age_at_death":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age At Death"},"conditions":{"items":{"$ref":"#/components/schemas/ConditionOut"},"type":"array","title":"Conditions"},"notes":{"type":"string","title":"Notes"},"history_status":{"type":"string","title":"History Status"}},"type":"object","required":["id","patient_id","relationship_code","relationship_display","sex","age","deceased","age_at_death","conditions","notes","history_status"],"title":"FamilyMemberHistoryOut"},"FamilyMemberHistoryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"relationship_code":{"type":"string","title":"Relationship Code","description":"SNOMED CT US Edition (March 2022) concept ID for the family relationship (e.g. 72705000 = Mother, 66839005 = Father). Legacy HL7 v3 RoleCode mnemonics (MTH, FTH, SIB, ...) are also accepted and translated server-side. Binding: ONC § 170.207(a)(1)."},"relationship_display":{"type":"string","title":"Relationship Display","description":"Human-readable relationship label"},"sex":{"type":"string","title":"Sex","description":"Biological sex: male | female | other | unknown","default":"unknown"},"age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age","description":"Current age in years (if alive)"},"deceased":{"type":"boolean","title":"Deceased","description":"Whether the family member is deceased","default":false},"age_at_death":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age At Death","description":"Age at death in years (if deceased)"},"conditions":{"items":{"$ref":"#/components/schemas/ConditionEntry"},"type":"array","title":"Conditions","description":"List of known conditions for this family member"},"notes":{"type":"string","title":"Notes","description":"General notes about this family member","default":""},"history_status":{"type":"string","title":"History Status","description":"Completeness of information: complete | partial | unknown","default":"partial"}},"type":"object","required":["patient_id","relationship_code","relationship_display"],"title":"FamilyMemberHistoryRequest","description":"Body for creating or updating a family member history record."},"FaxIngestionRequest":{"properties":{"fax_id":{"type":"string","title":"Fax Id","description":"Unique identifier from the fax gateway"},"sender_fax":{"type":"string","title":"Sender Fax"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"pages":{"type":"integer","minimum":1.0,"title":"Pages"},"raw_text":{"type":"string","title":"Raw Text","description":"OCR-extracted text from the fax"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"pa_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pa Id"}},"type":"object","required":["fax_id","sender_fax","received_at","pages","raw_text"],"title":"FaxIngestionRequest"},"FaxIngestionResponse":{"properties":{"fax_id":{"type":"string","title":"Fax Id"},"document_reference_id":{"type":"string","title":"Document Reference Id"},"matched_pa_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Pa Id"},"extracted_decision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extracted Decision"},"extracted_pa_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extracted Pa Number"},"stored_at":{"type":"string","format":"date-time","title":"Stored At"}},"type":"object","required":["fax_id","document_reference_id","matched_pa_id","extracted_decision","extracted_pa_number","stored_at"],"title":"FaxIngestionResponse"},"FeatureFlagUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"FeatureFlagUpdate"},"FeedingMethod":{"type":"string","enum":["breastfeeding","formula","combination","ng_tube","og_tube","parenteral"],"title":"FeedingMethod"},"FertilisationMethod":{"type":"string","enum":["conventional_ivf","icsi","picsi","ivf_icsi_split"],"title":"FertilisationMethod"},"FhirCitation":{"properties":{"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"type":"string","title":"Resource Id"},"version_id":{"type":"string","title":"Version Id"},"patient_id":{"type":"string","title":"Patient Id"},"display":{"type":"string","title":"Display","default":""}},"type":"object","required":["resource_type","resource_id","version_id","patient_id"],"title":"FhirCitation","description":"Pointer to a specific FHIR resource version."},"FieldType":{"type":"string","enum":["text","textarea","number","date","select","multi_select","fhir_reference","checkbox"],"title":"FieldType"},"FilteredReportResponse":{"properties":{"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"},"filters_applied":{"additionalProperties":true,"type":"object","title":"Filters Applied"},"measure_results":{"items":{"$ref":"#/components/schemas/StratifiedMeasureResult"},"type":"array","title":"Measure Results"},"patient_count":{"type":"integer","title":"Patient Count"},"generated_at":{"type":"string","title":"Generated At"}},"type":"object","required":["period_start","period_end","filters_applied","measure_results","patient_count","generated_at"],"title":"FilteredReportResponse","description":"Response from the CQM filter endpoint."},"FistulaMaturationRecord":{"properties":{"maturation_id":{"type":"string","title":"Maturation Id"},"patient_id":{"type":"string","title":"Patient Id"},"access_type":{"$ref":"#/components/schemas/AccessType"},"placement_date":{"type":"string","title":"Placement Date"},"site":{"type":"string","title":"Site"},"surgeon_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surgeon Id"},"maturation_stage":{"$ref":"#/components/schemas/FistulaMaturationStage","default":"surgically_created"},"maturation_check_dates":{"items":{"type":"string"},"type":"array","title":"Maturation Check Dates"},"flow_measurements":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Flow Measurements"},"first_cannulation_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Cannulation Date"},"active":{"type":"boolean","title":"Active","default":true},"decommission_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decommission Date"},"decommission_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decommission Reason"}},"type":"object","required":["patient_id","access_type","placement_date","site"],"title":"FistulaMaturationRecord"},"FistulaMaturationStage":{"type":"string","enum":["surgically_created","maturing","ready_for_cannulation","in_use","abandoned","failed"],"title":"FistulaMaturationStage"},"FitForDutyAssessment":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"employee_id":{"type":"string","title":"Employee Id"},"work_status":{"$ref":"#/components/schemas/WorkStatus"},"assessment_date":{"type":"string","title":"Assessment Date"},"restrictions":{"items":{"type":"string"},"type":"array","title":"Restrictions"},"next_review_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Review Date"},"examining_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Examining Provider"},"fmla_applicable":{"type":"boolean","title":"Fmla Applicable","default":false},"ada_accommodation_needed":{"type":"boolean","title":"Ada Accommodation Needed","default":false}},"type":"object","required":["employee_id","work_status","assessment_date"],"title":"FitForDutyAssessment"},"ForecastRecord":{"properties":{"vaccine_group":{"type":"string","title":"Vaccine Group"},"recommended_date":{"type":"string","title":"Recommended Date"},"overdue_date":{"type":"string","title":"Overdue Date"},"earliest_date":{"type":"string","title":"Earliest Date"},"latest_date":{"type":"string","title":"Latest Date"},"series":{"type":"string","title":"Series"}},"type":"object","required":["vaccine_group","recommended_date","overdue_date","earliest_date","latest_date","series"],"title":"ForecastRecord","description":"A forecast recommendation parsed from an RSP OBX segment."},"ForensicBundleRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"matter_reference":{"type":"string","title":"Matter Reference"},"scope":{"$ref":"#/components/schemas/HoldScope","default":"all"},"date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From","description":"ISO-8601 start date for records window; null = all records"},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To","description":"ISO-8601 end date for records window; null = now"},"requesting_counsel":{"type":"string","title":"Requesting Counsel"},"authorization_reference":{"type":"string","title":"Authorization Reference","description":"Patient authorization ID or court order reference"},"include_audit_trail":{"type":"boolean","title":"Include Audit Trail","description":"Include system audit log entries in the bundle","default":true}},"type":"object","required":["patient_id","matter_reference","requesting_counsel","authorization_reference"],"title":"ForensicBundleRequest"},"FormularySearchResult":{"properties":{"query_code":{"type":"string","title":"Query Code"},"plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Id"},"entries":{"items":{"$ref":"#/components/schemas/DrugFormularyEntry"},"type":"array","title":"Entries"}},"type":"object","required":["query_code","plan_id","entries"],"title":"FormularySearchResult"},"FormularyTier":{"type":"string","enum":["preferred-generic","generic","preferred-brand","non-preferred-brand","specialty","not-covered"],"title":"FormularyTier"},"G10PatientReadiness":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"display_name":{"type":"string","title":"Display Name"},"patient_read":{"type":"boolean","title":"Patient Read"},"resources":{"items":{"$ref":"#/components/schemas/G10PatientResourceStatus"},"type":"array","title":"Resources"},"ready":{"type":"boolean","title":"Ready"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["patient_id","display_name","patient_read","resources","ready"],"title":"G10PatientReadiness"},"G10PatientResourceStatus":{"properties":{"resource_type":{"type":"string","title":"Resource Type"},"expected_min":{"type":"integer","title":"Expected Min"},"actual":{"type":"integer","title":"Actual"},"ready":{"type":"boolean","title":"Ready"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["resource_type","expected_min","actual","ready"],"title":"G10PatientResourceStatus"},"G10Readiness":{"properties":{"ready":{"type":"boolean","title":"Ready"},"patients":{"items":{"$ref":"#/components/schemas/G10PatientReadiness"},"type":"array","title":"Patients"}},"type":"object","required":["ready","patients"],"title":"G10Readiness"},"GBSStatus":{"type":"string","enum":["positive","negative","unknown","not_tested"],"title":"GBSStatus"},"GUDIDDevice":{"properties":{"udi":{"type":"string","title":"Udi"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"version_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Model"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"device_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Description"},"gmdn_terms":{"items":{"type":"string"},"type":"array","title":"Gmdn Terms"},"is_single_use":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Single Use"},"is_implantable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Implantable"},"has_sterile_restriction":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Sterile Restriction"},"mri_safety":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mri Safety"},"source":{"type":"string","title":"Source","default":"gudid"}},"type":"object","required":["udi"],"title":"GUDIDDevice"},"GateSignOffRequest":{"properties":{"reviewer_uid":{"type":"string","title":"Reviewer Uid"},"reviewer_role":{"type":"string","title":"Reviewer Role"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["reviewer_uid","reviewer_role"],"title":"GateSignOffRequest"},"GcpRegion":{"type":"string","enum":["us-central1","us-east4","us-west1","europe-west1","europe-west4","asia-east1","asia-northeast1","asia-southeast1","northamerica-northeast1","southamerica-east1","australia-southeast1"],"title":"GcpRegion"},"GenerateBriefRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient logical ID"}},"type":"object","required":["patient_id"],"title":"GenerateBriefRequest"},"GenerateResponse":{"properties":{"document_reference_id":{"type":"string","title":"Document Reference Id","description":"FHIR DocumentReference ID for the stored C-CDA"},"doc_type":{"type":"string","title":"Doc Type"},"patient_id":{"type":"string","title":"Patient Id"},"ccda_base64":{"type":"string","title":"Ccda Base64","description":"Base64-encoded C-CDA XML"},"confidentiality_code":{"type":"string","title":"Confidentiality Code","description":"HL7 HCS confidentiality code applied to this document (N=Normal, R=Restricted, V=VeryRestricted). ONC § 170.315(b)(7).","default":"N"}},"type":"object","required":["document_reference_id","doc_type","patient_id","ccda_base64"],"title":"GenerateResponse","description":"Response from POST /transitions/{patient_id}/generate."},"GeneratedArtifact":{"properties":{"artifact_id":{"type":"string","title":"Artifact Id"},"artifact_type":{"type":"string","title":"Artifact Type","description":"'router' | 'test' | 'migration' | 'doc'"},"module_name":{"type":"string","title":"Module Name"},"content":{"type":"string","title":"Content"},"traceability":{"$ref":"#/components/schemas/TraceabilityRef"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","required":["artifact_id","artifact_type","module_name","content","traceability"],"title":"GeneratedArtifact","description":"A code artifact produced by the factory pipeline."},"GoalOut":{"properties":{"id":{"type":"string","title":"Id"},"description":{"type":"string","title":"Description"},"snomed_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snomed Code"},"snomed_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snomed Display"},"lifecycle_status":{"type":"string","title":"Lifecycle Status"},"targets":{"items":{"$ref":"#/components/schemas/GoalTarget"},"type":"array","title":"Targets"},"notes":{"type":"string","title":"Notes"}},"type":"object","required":["id","description","snomed_code","snomed_display","lifecycle_status","targets","notes"],"title":"GoalOut"},"GoalRequest":{"properties":{"description":{"type":"string","title":"Description","description":"Human-readable goal description"},"snomed_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snomed Code","description":"SNOMED CT code for the goal type"},"snomed_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snomed Display","description":"SNOMED CT display name"},"lifecycle_status":{"type":"string","title":"Lifecycle Status","description":"Goal lifecycle: proposed | planned | accepted | active | on-hold | completed | cancelled","default":"active"},"targets":{"items":{"$ref":"#/components/schemas/GoalTarget"},"type":"array","title":"Targets","description":"Measurable targets"},"notes":{"type":"string","title":"Notes","description":"Clinical notes","default":""}},"type":"object","required":["description"],"title":"GoalRequest","description":"Goal to create or update within a care plan."},"GoalTarget":{"properties":{"measure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Measure Code","description":"LOINC or SNOMED code for the measure"},"measure_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Measure Display","description":"Display text for the measure"},"detail_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail String","description":"Free-text target value"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date","description":"ISO 8601 target date (YYYY-MM-DD)"}},"type":"object","title":"GoalTarget","description":"A single measurable target for a Goal."},"GoodFaithEstimateRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"scheduled_items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Scheduled Items","description":"Planned services (CDM codes)"},"payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"},"expected_service_date":{"type":"string","title":"Expected Service Date"}},"type":"object","required":["patient_id","scheduled_items","expected_service_date"],"title":"GoodFaithEstimateRequest","description":"No Surprises Act § 2799B-6 good-faith estimate."},"GoodFaithEstimateResponse":{"properties":{"gfe_id":{"type":"string","title":"Gfe Id"},"patient_id":{"type":"string","title":"Patient Id"},"total_expected_charge":{"type":"number","title":"Total Expected Charge"},"low_estimate":{"type":"number","title":"Low Estimate"},"high_estimate":{"type":"number","title":"High Estimate"},"line_items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Line Items"},"valid_period_days":{"type":"integer","title":"Valid Period Days","default":60},"issued_at":{"type":"string","format":"date-time","title":"Issued At"}},"type":"object","required":["gfe_id","patient_id","total_expected_charge","low_estimate","high_estimate","line_items","issued_at"],"title":"GoodFaithEstimateResponse"},"GovernanceSettings":{"properties":{"requires_clinician_review":{"type":"boolean","title":"Requires Clinician Review","default":true},"auto_accept_threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Auto Accept Threshold","description":"Confidence score at or above which output may be auto-accepted (if policy allows)","default":0.95},"phi_approved":{"type":"boolean","title":"Phi Approved","default":true},"max_output_tokens":{"type":"integer","maximum":32768.0,"minimum":64.0,"title":"Max Output Tokens","default":2048},"audit_every_run":{"type":"boolean","title":"Audit Every Run","default":true}},"type":"object","title":"GovernanceSettings"},"GrantProxyAccessRequest":{"properties":{"delegate_uid":{"type":"string","title":"Delegate Uid"},"delegate_name":{"type":"string","title":"Delegate Name"},"relationship_type":{"$ref":"#/components/schemas/ProxyRelationshipType"},"access_scope":{"$ref":"#/components/schemas/ProxyAccessScope","default":"read_non_confidential"},"confidential_categories_excluded":{"items":{"type":"string"},"type":"array","title":"Confidential Categories Excluded"}},"type":"object","required":["delegate_uid","delegate_name","relationship_type"],"title":"GrantProxyAccessRequest"},"GraphNeighborsResponse":{"properties":{"node_id":{"type":"string","title":"Node Id"},"neighbors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Neighbors"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["node_id","neighbors","total"],"title":"GraphNeighborsResponse"},"GraphNode":{"properties":{"node_id":{"type":"string","title":"Node Id"},"label":{"$ref":"#/components/schemas/NodeLabel"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"}},"type":"object","required":["node_id","label"],"title":"GraphNode"},"GraphRelationship":{"properties":{"from_id":{"type":"string","title":"From Id"},"to_id":{"type":"string","title":"To Id"},"relationship":{"$ref":"#/components/schemas/RelationshipType"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"}},"type":"object","required":["from_id","to_id","relationship"],"title":"GraphRelationship"},"GrowthChart":{"type":"string","enum":["who_0_2","cdc_2_20"],"title":"GrowthChart"},"GrowthMeasurement":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"measurement_date":{"type":"string","format":"date","title":"Measurement Date"},"measurement_type":{"$ref":"#/components/schemas/GrowthMeasurementType"},"value":{"type":"number","title":"Value"},"chart_used":{"$ref":"#/components/schemas/GrowthChart"},"percentile":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percentile"},"z_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Z Score"},"age_months":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Age Months"},"provider_id":{"type":"string","title":"Provider Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","measurement_date","measurement_type","value","chart_used","provider_id"],"title":"GrowthMeasurement"},"GrowthMeasurementType":{"type":"string","enum":["weight_kg","height_cm","bmi","head_circumference_cm","weight_for_height","length_for_age"],"title":"GrowthMeasurementType"},"GuardrailConfig":{"properties":{"config_id":{"type":"string","title":"Config Id"},"agent_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Code"},"enabled_guardrails":{"items":{"$ref":"#/components/schemas/GuardrailType"},"type":"array","title":"Enabled Guardrails"},"severity_overrides":{"additionalProperties":{"$ref":"#/components/schemas/GuardrailSeverity"},"type":"object","title":"Severity Overrides"},"phi_fields":{"items":{"type":"string"},"type":"array","title":"Phi Fields"},"protected_attributes":{"items":{"type":"string"},"type":"array","title":"Protected Attributes"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["config_id","created_at","updated_at"],"title":"GuardrailConfig","description":"Per-agent (or global) guardrail configuration."},"GuardrailOutcome":{"type":"string","enum":["pass","warn","block"],"title":"GuardrailOutcome"},"GuardrailPipelineResult":{"properties":{"run_id":{"type":"string","title":"Run Id"},"overall_outcome":{"$ref":"#/components/schemas/GuardrailOutcome"},"results":{"items":{"$ref":"#/components/schemas/GuardrailResult"},"type":"array","title":"Results"},"dsi_source":{"anyOf":[{"$ref":"#/components/schemas/DSISourceAttribute"},{"type":"null"}]},"evaluated_at":{"type":"string","title":"Evaluated At"}},"type":"object","required":["run_id","overall_outcome","evaluated_at"],"title":"GuardrailPipelineResult"},"GuardrailResult":{"properties":{"guardrail_type":{"$ref":"#/components/schemas/GuardrailType"},"outcome":{"$ref":"#/components/schemas/GuardrailOutcome"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"details":{"additionalProperties":true,"type":"object","title":"Details"}},"type":"object","required":["guardrail_type","outcome"],"title":"GuardrailResult"},"GuardrailSeverity":{"type":"string","enum":["block","warn","audit"],"title":"GuardrailSeverity"},"GuardrailType":{"type":"string","enum":["phi_minimiser","prompt_injection","output_schema","phi_scrubber","hallucination_check","refusal_handler","dsi_source_attribute","bias_monitor"],"title":"GuardrailType"},"GuidelineRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"clinical_question":{"type":"string","title":"Clinical Question"},"guideline_sources":{"items":{"type":"string"},"type":"array","title":"Guideline Sources"}},"type":"object","required":["patient_id","clinical_question"],"title":"GuidelineRequest"},"HAICase":{"properties":{"case_id":{"type":"string","title":"Case Id"},"patient_id":{"type":"string","title":"Patient Id"},"hai_type":{"$ref":"#/components/schemas/HAIType"},"location_unit":{"type":"string","title":"Location Unit"},"identified_dt":{"type":"string","format":"date-time","title":"Identified Dt"},"device_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Device Days"},"pathogen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pathogen"},"susceptibility_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Susceptibility Pattern"},"reported_to_nhsn":{"type":"boolean","title":"Reported To Nhsn","default":false},"nhsn_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nhsn Event Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","hai_type","location_unit"],"title":"HAICase"},"HAIType":{"type":"string","enum":["clabsi","cauti","vae","cdi","mrsa","ssi_superficial","ssi_deep","ssi_organ_space","ventilator_pneumonia","other"],"title":"HAIType"},"HCCCaptureRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"}},"type":"object","required":["patient_id"],"title":"HCCCaptureRequest"},"HL7InboundMessage":{"properties":{"message_type":{"$ref":"#/components/schemas/HL7MessageType"},"raw_hl7":{"type":"string","title":"Raw Hl7","description":"Raw HL7 v2 pipe-delimited message"},"source_system":{"type":"string","title":"Source System"},"source_facility":{"type":"string","title":"Source Facility"},"transport":{"$ref":"#/components/schemas/TransportType","default":"https"},"message_control_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Control Id"}},"type":"object","required":["message_type","raw_hl7","source_system","source_facility"],"title":"HL7InboundMessage"},"HL7MessageType":{"type":"string","enum":["ADT^A01","ADT^A02","ADT^A03","ADT^A04","ADT^A05","ADT^A06","ADT^A07","ADT^A08","ADT^A09","ADT^A10","ADT^A11","ADT^A12","ADT^A13","ADT^A14","ADT^A15","ADT^A16","ADT^A17","ADT^A18","ADT^A19","ADT^A20","ADT^A21","ADT^A22","ADT^A23","ADT^A24","ADT^A25","ADT^A26","ADT^A27","ADT^A28","ADT^A29","ADT^A30","ADT^A31","ADT^A32","ADT^A33","ADT^A34","ADT^A35","ADT^A36","ADT^A37","ADT^A38","ADT^A39","ADT^A40","ADT^A41","ADT^A42","ADT^A43","ADT^A44","ADT^A45","ADT^A46","ADT^A47","ADT^A48","ADT^A49","ADT^A50","ADT^A51","ADT^A52","ADT^A53","ADT^A54","ADT^A55","ADT^A60","ORM^O01","OML^O21","OML^O33","ORU^R01","ORU^R30","RDE^O11","RDE^O25","RAS^O17","RGV^O15","SIU^S12","SIU^S13","SIU^S14","SIU^S15","SIU^S17","SIU^S26","DFT^P03","DFT^P11","VXU^V04","VXR^V03","MDM^T01","MDM^T02","MDM^T03","MDM^T04","MDM^T05","MDM^T06","MDM^T07","MDM^T08","MDM^T09","MDM^T10","MDM^T11","REF^I12","REF^I13","REF^I14","REF^I15","BAR^P01","BAR^P02","BAR^P05","BAR^P06","BAR^P10","BAR^P12","ACK"],"title":"HL7MessageType"},"HL7ParsedMessage":{"properties":{"message_control_id":{"type":"string","title":"Message Control Id"},"message_type":{"$ref":"#/components/schemas/HL7MessageType"},"sending_facility":{"type":"string","title":"Sending Facility"},"receiving_facility":{"type":"string","title":"Receiving Facility"},"message_datetime":{"type":"string","title":"Message Datetime"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"fhir_resource":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fhir Resource","description":"Translated FHIR R4 resource per v2-to-FHIR IG"},"acknowledgement":{"type":"string","title":"Acknowledgement","description":"AA=Accept, AE=Error, AR=Reject","default":"AA"},"ack_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ack Message","description":"Full HL7 ACK message text"}},"type":"object","required":["message_control_id","message_type","sending_facility","receiving_facility","message_datetime","patient_id"],"title":"HL7ParsedMessage"},"HL7RouteConfig":{"properties":{"source_system":{"type":"string","title":"Source System"},"message_types":{"items":{"$ref":"#/components/schemas/HL7MessageType"},"type":"array","title":"Message Types"},"destination":{"type":"string","title":"Destination","description":"Destination system/queue name"},"transport":{"$ref":"#/components/schemas/TransportType","default":"mllp_tls"},"transform_profile":{"type":"string","title":"Transform Profile","description":"Transform profile name","default":"v251_to_fhir_r4"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["source_system","message_types","destination"],"title":"HL7RouteConfig"},"HTI5CriterionReadiness":{"properties":{"criterion_code":{"type":"string","title":"Criterion Code"},"description":{"type":"string","title":"Description"},"status":{"$ref":"#/components/schemas/HTI5CriterionStatus","default":"not_started"},"target_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Date"},"blocking_issues":{"items":{"type":"string"},"type":"array","title":"Blocking Issues"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"}},"type":"object","required":["criterion_code","description"],"title":"HTI5CriterionReadiness"},"HTI5CriterionStatus":{"type":"string","enum":["not_started","in_design","in_development","testing","ready","certified"],"title":"HTI5CriterionStatus"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandAuthoredSurface":{"properties":{"surface_id":{"type":"string","title":"Surface Id"},"kind":{"$ref":"#/components/schemas/SurfaceKind"},"module_path":{"type":"string","title":"Module Path"},"rationale":{"type":"string","title":"Rationale"},"registered_at":{"type":"string","format":"date-time","title":"Registered At"}},"type":"object","required":["surface_id","kind","module_path","rationale","registered_at"],"title":"HandAuthoredSurface","description":"An entry in the hand-authored surface registry.\n\nHand-authored surfaces are excluded from automated factory rewrites."},"HandHygieneAudit":{"properties":{"audit_id":{"type":"string","title":"Audit Id"},"unit":{"type":"string","title":"Unit"},"audit_date":{"type":"string","title":"Audit Date"},"opportunities":{"type":"integer","title":"Opportunities"},"compliant":{"type":"integer","title":"Compliant"},"audited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audited By"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["unit","audit_date","opportunities","compliant"],"title":"HandHygieneAudit"},"HashRequest":{"properties":{"content":{"type":"string","title":"Content","description":"Document content to hash (UTF-8 text or base64-encoded binary)."},"content_type":{"type":"string","title":"Content Type","description":"MIME type hint — informational only; hashing is content-agnostic.","default":"text/plain"}},"type":"object","required":["content"],"title":"HashRequest","description":"Request body for document hashing."},"HashResponse":{"properties":{"algorithm":{"type":"string","title":"Algorithm"},"hex_digest":{"type":"string","title":"Hex Digest"},"content_length":{"type":"integer","title":"Content Length"},"computed_at":{"type":"string","title":"Computed At"}},"type":"object","required":["algorithm","hex_digest","content_length","computed_at"],"title":"HashResponse"},"HazardEntry":{"properties":{"id":{"type":"string","title":"Id"},"module":{"type":"string","title":"Module"},"title":{"type":"string","title":"Title"},"hazard":{"type":"string","title":"Hazard"},"harm":{"type":"string","title":"Harm"},"likelihood_before":{"type":"string","title":"Likelihood Before"},"severity":{"type":"string","title":"Severity"},"initial_risk":{"type":"string","title":"Initial Risk"},"controls":{"items":{"type":"string"},"type":"array","title":"Controls"},"residual_likelihood":{"type":"string","title":"Residual Likelihood"},"residual_severity":{"type":"string","title":"Residual Severity"},"residual_risk":{"type":"string","title":"Residual Risk"},"status":{"type":"string","title":"Status"},"high_risk_module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"High Risk Module"}},"type":"object","required":["id","module","title","hazard","harm","likelihood_before","severity","initial_risk","controls","residual_likelihood","residual_severity","residual_risk","status","high_risk_module"],"title":"HazardEntry"},"HazardReviewCreate":{"properties":{"reviewer":{"type":"string","maxLength":100,"minLength":2,"title":"Reviewer"},"outcome":{"type":"string","enum":["no-change","controls-updated","risk-reclassified","closed"],"title":"Outcome"},"notes":{"type":"string","minLength":10,"title":"Notes"},"linked_incident":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Incident"}},"type":"object","required":["reviewer","outcome","notes"],"title":"HazardReviewCreate"},"HazardReviewRecord":{"properties":{"review_id":{"type":"string","title":"Review Id"},"hazard_id":{"type":"string","title":"Hazard Id"},"reviewer":{"type":"string","title":"Reviewer"},"outcome":{"type":"string","title":"Outcome"},"notes":{"type":"string","title":"Notes"},"linked_incident":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Incident"},"reviewed_at":{"type":"string","title":"Reviewed At"},"recorded_by":{"type":"string","title":"Recorded By"}},"type":"object","required":["review_id","hazard_id","reviewer","outcome","notes","linked_incident","reviewed_at","recorded_by"],"title":"HazardReviewRecord"},"HispReadinessResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"mode":{"type":"string","title":"Mode"},"from_address":{"type":"string","title":"From Address"},"hisp_configured":{"type":"boolean","title":"Hisp Configured"},"missing":{"items":{"type":"string"},"type":"array","title":"Missing"},"checks":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Checks"},"note":{"type":"string","title":"Note"}},"type":"object","required":["ok","mode","from_address","hisp_configured","missing","checks","note"],"title":"HispReadinessResponse","description":"Non-secret Direct HISP readiness for production cert preflight."},"HispStatusResponse":{"properties":{"mode":{"type":"string","title":"Mode"},"from_address":{"type":"string","title":"From Address"},"hisp_configured":{"type":"boolean","title":"Hisp Configured"},"hisp_base_url":{"type":"string","title":"Hisp Base Url","description":"HISP REST API base URL (empty when mode != rest)","default":""},"note":{"type":"string","title":"Note","description":"Human-readable integration note for the current mode","default":""}},"type":"object","required":["mode","from_address","hisp_configured"],"title":"HispStatusResponse","description":"Response from GET /direct/hisp/status."},"HoldScope":{"type":"string","enum":["all","clinical","billing","audit"],"title":"HoldScope"},"HospiceRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"primary_terminal_diagnosis":{"type":"string","title":"Primary Terminal Diagnosis"},"election_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Election Date"}},"type":"object","required":["patient_id","primary_terminal_diagnosis"],"title":"HospiceRequest"},"HrexConsentStatus":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"has_data_sharing_consent":{"type":"boolean","title":"Has Data Sharing Consent"},"consent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Id"},"consent_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Date"},"authorized_payers":{"items":{"type":"string"},"type":"array","title":"Authorized Payers"},"scope":{"items":{"type":"string"},"type":"array","title":"Scope"},"expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry"}},"type":"object","required":["patient_id","has_data_sharing_consent"],"title":"HrexConsentStatus","description":"HRex Consent verification response."},"HrexCoverageRequirement":{"properties":{"requirement_id":{"type":"string","title":"Requirement Id"},"coverage_id":{"type":"string","title":"Coverage Id"},"payer_name":{"type":"string","title":"Payer Name"},"service_type":{"type":"string","title":"Service Type"},"prior_auth_required":{"type":"boolean","title":"Prior Auth Required"},"documentation_required":{"type":"boolean","title":"Documentation Required"},"step_therapy_required":{"type":"boolean","title":"Step Therapy Required"},"quantity_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity Limit"},"frequency_limit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency Limit"},"coverage_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Notes"},"effective_date":{"type":"string","title":"Effective Date"},"expiry_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry Date"}},"type":"object","required":["requirement_id","coverage_id","payer_name","service_type","prior_auth_required","documentation_required","step_therapy_required","effective_date"],"title":"HrexCoverageRequirement","description":"HRex Coverage Requirement (CRD supplement)."},"HrexMemberAttributionList":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"Group"},"id":{"type":"string","title":"Id"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"type":{"type":"string","title":"Type","default":"person"},"actual":{"type":"boolean","title":"Actual","default":true},"name":{"type":"string","title":"Name"},"managing_entity":{"additionalProperties":true,"type":"object","title":"Managing Entity"},"member":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Member"},"characteristic":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Characteristic"},"total_count":{"type":"integer","title":"Total Count"}},"type":"object","required":["id","meta","name","managing_entity","member","total_count"],"title":"HrexMemberAttributionList","description":"HRex Member Attribution List (davinci-atr IG)."},"HrexTaskRequest":{"properties":{"task_type":{"type":"string","title":"Task Type","description":"'data-request' | 'data-query'"},"requester":{"additionalProperties":true,"type":"object","title":"Requester"},"owner":{"additionalProperties":true,"type":"object","title":"Owner"},"focus_reference":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Focus Reference"},"input_parameters":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Input Parameters"},"business_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Status"}},"type":"object","required":["task_type","requester","owner"],"title":"HrexTaskRequest","description":"HRex Task-based exchange request."},"HrexTaskResponse":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"Task"},"id":{"type":"string","title":"Id"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"status":{"$ref":"#/components/schemas/HrexTaskStatus"},"intent":{"type":"string","title":"Intent","default":"order"},"code":{"additionalProperties":true,"type":"object","title":"Code"},"requester":{"additionalProperties":true,"type":"object","title":"Requester"},"owner":{"additionalProperties":true,"type":"object","title":"Owner"},"authored_on":{"type":"string","title":"Authored On"},"last_modified":{"type":"string","title":"Last Modified"},"input":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Input"},"output":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Output"},"restriction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Restriction"}},"type":"object","required":["id","meta","status","code","requester","owner","authored_on","last_modified"],"title":"HrexTaskResponse","description":"HRex Task resource response."},"HrexTaskStatus":{"type":"string","enum":["requested","accepted","rejected","in-progress","failed","completed","on-hold"],"title":"HrexTaskStatus","description":"HRex Task lifecycle statuses."},"Hti5Capability":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"CapabilityStatement"},"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"version":{"type":"string","title":"Version"},"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"date":{"type":"string","title":"Date"},"fhir_version":{"type":"string","title":"Fhir Version"},"format":{"items":{"type":"string"},"type":"array","title":"Format"},"rest":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rest"},"implementation_guide":{"items":{"type":"string"},"type":"array","title":"Implementation Guide"}},"type":"object","required":["id","url","version","name","title","status","date","fhir_version","format","rest","implementation_guide"],"title":"Hti5Capability","description":"HTI-5 conformant FHIR CapabilityStatement (abridged)."},"HumanName":{"properties":{"family":{"type":"string","title":"Family"},"given":{"items":{"type":"string"},"type":"array","title":"Given"},"prefix":{"items":{"type":"string"},"type":"array","title":"Prefix"}},"type":"object","required":["family"],"title":"HumanName"},"I18nBundleOut":{"properties":{"locale":{"type":"string","title":"Locale"},"bcp47_tag":{"type":"string","title":"Bcp47 Tag"},"direction":{"$ref":"#/components/schemas/TextDirection"},"formats":{"additionalProperties":true,"type":"object","title":"Formats"},"message_key_count":{"type":"integer","title":"Message Key Count"},"generated_at":{"type":"string","title":"Generated At"}},"type":"object","required":["locale","bcp47_tag","direction","formats","message_key_count","generated_at"],"title":"I18nBundleOut"},"IAL2EvidenceSubmission":{"properties":{"session_id":{"type":"string","title":"Session Id"},"evidence_document_ref":{"type":"string","title":"Evidence Document Ref","description":"Encrypted reference to uploaded ID image"},"selfie_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selfie Ref","description":"Encrypted liveness selfie reference"},"attestation":{"type":"boolean","title":"Attestation","description":"Subject attests information is accurate"}},"type":"object","required":["session_id","evidence_document_ref","attestation"],"title":"IAL2EvidenceSubmission","description":"IAL2 evidence document submission for a proofing session."},"IAL2IdentityRequest":{"properties":{"subject_given_name":{"type":"string","title":"Subject Given Name"},"subject_family_name":{"type":"string","title":"Subject Family Name"},"subject_birth_date":{"type":"string","title":"Subject Birth Date"},"subject_email":{"type":"string","title":"Subject Email"},"subject_phone":{"type":"string","title":"Subject Phone"},"evidence_type":{"type":"string","title":"Evidence Type","description":"NIST IAL2 evidence type: STATE_ID, PASSPORT, DRIVER_LICENSE","default":"STATE_ID"},"purpose_of_use":{"$ref":"#/components/schemas/app__serving__tefca_qhin__PurposeOfUse","default":"INDIVIDUAL_ACCESS"}},"type":"object","required":["subject_given_name","subject_family_name","subject_birth_date","subject_email","subject_phone"],"title":"IAL2IdentityRequest","description":"Individual Access Services — IAL2 identity proofing session initiation."},"ICUAdmission":{"properties":{"admission_id":{"type":"string","title":"Admission Id"},"patient_id":{"type":"string","title":"Patient Id"},"icu_type":{"$ref":"#/components/schemas/ICUType","default":"medical"},"bed":{"type":"string","title":"Bed"},"admitting_diagnosis":{"type":"string","title":"Admitting Diagnosis"},"admitting_provider":{"type":"string","title":"Admitting Provider"},"admitted_at":{"type":"string","format":"date-time","title":"Admitted At"},"primary_nurse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Nurse"},"is_ventilated":{"type":"boolean","title":"Is Ventilated","default":false}},"type":"object","required":["patient_id","bed","admitting_diagnosis","admitting_provider"],"title":"ICUAdmission"},"ICUDSIAcknowledge":{"properties":{"acknowledged_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledged By"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"ICUDSIAcknowledge"},"ICUDSIAlert":{"properties":{"alert_id":{"type":"string","title":"Alert Id"},"admission_id":{"type":"string","title":"Admission Id"},"category":{"$ref":"#/components/schemas/ICUDSICategory"},"severity":{"$ref":"#/components/schemas/ICUDSISeverity","default":"warning"},"message":{"type":"string","title":"Message"},"triggered_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Triggered Value"},"triggered_parameter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Triggered Parameter"},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false},"acknowledged_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledged By"},"alerted_at":{"type":"string","format":"date-time","title":"Alerted At"},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Acknowledged At"}},"type":"object","required":["admission_id","category","message"],"title":"ICUDSIAlert"},"ICUDSICategory":{"type":"string","enum":["sepsis_early_warning","ards_severity","readmission_risk","delirium_risk","deterioration","medication_reconciliation","prone_positioning"],"title":"ICUDSICategory"},"ICUDSISeverity":{"type":"string","enum":["info","warning","critical"],"title":"ICUDSISeverity"},"ICUType":{"type":"string","enum":["medical","surgical","cardiac","neuro","burn","pediatric","neonatal","trauma"],"title":"ICUType"},"IDPRegisterRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"display_name":{"type":"string","title":"Display Name"},"protocol":{"type":"string","title":"Protocol"},"issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"},"discovery_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discovery Url"},"idp_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idp Entity Id"},"sso_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sso Url"},"x509_cert":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X509 Cert"},"role_attribute":{"type":"string","title":"Role Attribute","default":"sphere_role"},"role_map":{"additionalProperties":{"type":"string"},"type":"object","title":"Role Map","default":{}}},"type":"object","required":["tenant_id","display_name","protocol"],"title":"IDPRegisterRequest"},"IPassHandoff":{"properties":{"illness_severity":{"type":"string","title":"Illness Severity"},"patient_summary":{"type":"string","title":"Patient Summary"},"action_list":{"items":{"type":"string"},"type":"array","title":"Action List"},"situation_awareness":{"type":"string","title":"Situation Awareness"},"synthesis_by_receiver":{"type":"string","title":"Synthesis By Receiver","default":""}},"type":"object","required":["illness_severity","patient_summary","situation_awareness"],"title":"IPassHandoff","description":"I-PASS structured handoff (NEJM 2014 / AHRQ)."},"IRBDecision":{"type":"string","enum":["approved","approved_with_modifications","tabled","disapproved","exempt"],"title":"IRBDecision"},"IRBSubmission":{"properties":{"submission_id":{"type":"string","title":"Submission Id"},"protocol_id":{"type":"string","title":"Protocol Id"},"submission_type":{"type":"string","title":"Submission Type"},"submission_date":{"type":"string","title":"Submission Date"},"irb_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Irb Number"},"decision":{"anyOf":[{"$ref":"#/components/schemas/IRBDecision"},{"type":"null"}]},"decision_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Date"},"expiry_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry Date"}},"type":"object","required":["protocol_id","submission_type","submission_date"],"title":"IRBSubmission"},"IVFCycle":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"partner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Id"},"cycle_type":{"$ref":"#/components/schemas/CycleType"},"stimulation_protocol":{"$ref":"#/components/schemas/StimulationProtocol"},"cycle_start_date":{"type":"string","format":"date","title":"Cycle Start Date"},"trigger_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Trigger Date"},"trigger_medication":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Medication"},"retrieval_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Retrieval Date"},"oocytes_retrieved":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Oocytes Retrieved"},"mature_oocytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mature Oocytes"},"transfer_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Transfer Date"},"embryos_transferred":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Embryos Transferred"},"status":{"$ref":"#/components/schemas/CycleStatus","default":"initiated"},"endometrial_thickness_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Endometrial Thickness Mm"},"peak_estradiol_pg_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peak Estradiol Pg Ml"},"lead_follicle_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lead Follicle Mm"},"total_gonadotropin_iu":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Gonadotropin Iu"},"beta_hcg_result":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Beta Hcg Result"},"beta_hcg_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Beta Hcg Date"},"clinical_pregnancy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Clinical Pregnancy"},"live_birth":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Live Birth"},"provider_id":{"type":"string","title":"Provider Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","cycle_type","stimulation_protocol","cycle_start_date","provider_id"],"title":"IVFCycle"},"IVFCycleRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"cycle_number":{"type":"integer","title":"Cycle Number","default":1},"stimulation_protocol":{"type":"string","title":"Stimulation Protocol","default":"antagonist"}},"type":"object","required":["patient_id"],"title":"IVFCycleRequest"},"IcebergSnapshotReceipt":{"properties":{"snapshot_id":{"type":"string","title":"Snapshot Id"},"table":{"type":"string","title":"Table"},"catalog_uri":{"type":"string","title":"Catalog Uri"},"warehouse":{"type":"string","title":"Warehouse"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["snapshot_id","table","catalog_uri","warehouse","created_at"],"title":"IcebergSnapshotReceipt"},"IcebergSnapshotRequest":{"properties":{"table":{"type":"string","title":"Table","description":"Fully-qualified Iceberg table name, e.g. sphere.clinical.patients"},"reason":{"type":"string","title":"Reason","description":"Snapshot reason tag","default":"scheduled"}},"type":"object","required":["table"],"title":"IcebergSnapshotRequest"},"IdentityAssuranceLevel":{"type":"string","enum":["ial1","ial2","ial3"],"title":"IdentityAssuranceLevel"},"ImagingCatalogEntry":{"properties":{"code":{"type":"string","title":"Code"},"display":{"type":"string","title":"Display"},"modality":{"type":"string","title":"Modality","default":""},"modality_display":{"type":"string","title":"Modality Display","default":""}},"type":"object","required":["code","display"],"title":"ImagingCatalogEntry","description":"A single entry in the imaging procedure catalog."},"ImagingModality":{"type":"string","enum":["CT","MRI","XR","US","NM","PT","MG","RF","XA"],"title":"ImagingModality"},"ImagingOrderRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"procedure_code":{"type":"string","title":"Procedure Code","description":"SNOMED CT code for the imaging procedure"},"procedure_display":{"type":"string","title":"Procedure Display","description":"Human-readable procedure name"},"modality_code":{"type":"string","title":"Modality Code","description":"DICOM modality code (e.g. CT, MR, DX, US)","default":""},"modality_display":{"type":"string","title":"Modality Display","description":"Human-readable modality name","default":""},"body_site_code":{"type":"string","title":"Body Site Code","description":"SNOMED CT code for the body site","default":""},"body_site_display":{"type":"string","title":"Body Site Display","description":"Human-readable body site","default":""},"laterality":{"type":"string","title":"Laterality","description":"Laterality of the study (e.g. left, right, bilateral)","default":""},"priority":{"type":"string","title":"Priority","description":"Order priority: routine | urgent | asap | stat","default":"routine"},"clinical_notes":{"type":"string","title":"Clinical Notes","description":"Clinical indication / reason for study","default":""},"reason_code":{"type":"string","title":"Reason Code","description":"SNOMED CT code for the clinical reason","default":""},"reason_display":{"type":"string","title":"Reason Display","description":"SNOMED CT display for the clinical reason","default":""}},"type":"object","required":["patient_id","procedure_code","procedure_display"],"title":"ImagingOrderRequest","description":"Body for creating or updating a diagnostic imaging order."},"ImagingOrderResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"patient_id":{"type":"string","title":"Patient Id"},"provider_id":{"type":"string","title":"Provider Id"},"procedure_code":{"type":"string","title":"Procedure Code"},"procedure_display":{"type":"string","title":"Procedure Display"},"modality_code":{"type":"string","title":"Modality Code"},"modality_display":{"type":"string","title":"Modality Display"},"body_site_code":{"type":"string","title":"Body Site Code"},"body_site_display":{"type":"string","title":"Body Site Display"},"laterality":{"type":"string","title":"Laterality"},"priority":{"type":"string","title":"Priority"},"clinical_notes":{"type":"string","title":"Clinical Notes"},"reason_code":{"type":"string","title":"Reason Code"},"reason_display":{"type":"string","title":"Reason Display"},"authored_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authored On"}},"type":"object","required":["id","status","patient_id","provider_id","procedure_code","procedure_display","modality_code","modality_display","body_site_code","body_site_display","laterality","priority","clinical_notes","reason_code","reason_display","authored_on"],"title":"ImagingOrderResponse","description":"Flattened view of a FHIR ServiceRequest returned to the caller."},"ImmunizationReconcileRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"registry_records":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Registry Records"}},"type":"object","required":["patient_id"],"title":"ImmunizationReconcileRequest"},"ImmunizationRecord":{"properties":{"cvx_code":{"type":"string","title":"Cvx Code"},"vaccine_name":{"type":"string","title":"Vaccine Name"},"admin_date":{"type":"string","title":"Admin Date"},"lot_number":{"type":"string","title":"Lot Number"},"mvx_code":{"type":"string","title":"Mvx Code"},"completion_status":{"type":"string","title":"Completion Status"},"info_source":{"type":"string","title":"Info Source"}},"type":"object","required":["cvx_code","vaccine_name","admin_date","lot_number","mvx_code","completion_status","info_source"],"title":"ImmunizationRecord","description":"A single immunization record parsed from an RSP/VXU RXA segment."},"ImplantableDeviceOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"udi":{"type":"string","title":"Udi"},"device_identifier":{"type":"string","title":"Device Identifier"},"serial_number":{"type":"string","title":"Serial Number"},"lot_number":{"type":"string","title":"Lot Number"},"expiry_date":{"type":"string","title":"Expiry Date"},"manufacture_date":{"type":"string","title":"Manufacture Date"},"status":{"type":"string","title":"Status"},"brand_name":{"type":"string","title":"Brand Name"},"version_model_number":{"type":"string","title":"Version Model Number"},"company_name":{"type":"string","title":"Company Name"},"device_description":{"type":"string","title":"Device Description"},"snomed_type_code":{"type":"string","title":"Snomed Type Code"},"snomed_type_display":{"type":"string","title":"Snomed Type Display"},"notes":{"type":"string","title":"Notes"},"hctp_code":{"type":"string","title":"Hctp Code","default":""},"mri_safety":{"type":"string","title":"Mri Safety","default":""},"nrl_latex":{"type":"string","title":"Nrl Latex","default":""}},"type":"object","required":["id","patient_id","udi","device_identifier","serial_number","lot_number","expiry_date","manufacture_date","status","brand_name","version_model_number","company_name","device_description","snomed_type_code","snomed_type_display","notes"],"title":"ImplantableDeviceOut"},"ImplantableDeviceRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"udi":{"type":"string","title":"Udi","description":"Full UDI string (human-readable carrier, typed or scanned)"},"status":{"type":"string","title":"Status","description":"Device status: active | inactive | entered-in-error | unknown","default":"active"},"brand_name":{"type":"string","title":"Brand Name","description":"Device brand name","default":""},"version_model_number":{"type":"string","title":"Version Model Number","description":"Model / version number","default":""},"company_name":{"type":"string","title":"Company Name","description":"Manufacturer name","default":""},"device_description":{"type":"string","title":"Device Description","description":"Free-text device description","default":""},"snomed_type_code":{"type":"string","title":"Snomed Type Code","description":"SNOMED CT code for device type","default":""},"snomed_type_display":{"type":"string","title":"Snomed Type Display","description":"SNOMED CT display for device type","default":""},"notes":{"type":"string","title":"Notes","description":"Clinical notes","default":""}},"type":"object","required":["patient_id","udi"],"title":"ImplantableDeviceRequest","description":"Body for recording a new implantable device."},"ImportFormat":{"type":"string","enum":["ccda","hl7v2","fhir_bundle","csv_demographics"],"title":"ImportFormat"},"ImportJobRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"source_system":{"$ref":"#/components/schemas/SourceSystem"},"format":{"$ref":"#/components/schemas/ImportFormat"},"staging_uri":{"type":"string","title":"Staging Uri","description":"GCS URI of the uploaded legacy data package (gs://...)"},"patient_count_estimate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Patient Count Estimate","description":"Approximate number of patient records in the package"},"conflict_strategy":{"$ref":"#/components/schemas/app__serving__b7_legacy_ehr_import__ConflictStrategy","description":"How to handle records that already exist in Sphere-EHR","default":"skip"},"dry_run":{"type":"boolean","title":"Dry Run","description":"Validate and generate preview without writing to HAPI FHIR","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["tenant_id","source_system","format","staging_uri"],"title":"ImportJobRequest"},"ImportJobStatus":{"type":"string","enum":["queued","validating","awaiting_approval","importing","completed","failed","cancelled","rolled_back"],"title":"ImportJobStatus"},"ImportQRDAResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"measure_ids":{"items":{"type":"string"},"type":"array","title":"Measure Ids"},"data_elements_imported":{"type":"integer","title":"Data Elements Imported"},"scores":{"items":{"$ref":"#/components/schemas/MeasureScoreResponse"},"type":"array","title":"Scores"}},"type":"object","required":["patient_id","measure_ids","data_elements_imported","scores"],"title":"ImportQRDAResponse","description":"Result of importing a QRDA Category I document."},"InboundMessage":{"properties":{"uid":{"type":"string","title":"Uid"},"message_id":{"type":"string","title":"Message Id","default":""},"from_address":{"type":"string","title":"From Address","default":""},"to_address":{"type":"string","title":"To Address","default":""},"subject":{"type":"string","title":"Subject","default":""},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"preview":{"type":"string","title":"Preview","default":""},"attachments":{"items":{"type":"string"},"type":"array","title":"Attachments"}},"type":"object","required":["uid"],"title":"InboundMessage"},"InboundMessageResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"message_type":{"type":"string","enum":["NewRx","RxRenewalResponse","RxChangeResponse","CancelRx","RxRenewalRequest","RxChangeRequest","RxFill"],"title":"Message Type"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"fhir_task_id":{"type":"string","title":"Fhir Task Id"},"status":{"type":"string","enum":["pending","sent","received","error","cancelled"],"title":"Status"}},"type":"object","required":["transmission_id","message_type","fhir_task_id","status"],"title":"InboundMessageResponse","description":"Response when an inbound pharmacy message is received."},"InboxMessage":{"properties":{"uid":{"type":"string","title":"Uid"},"message_id":{"type":"string","title":"Message Id","default":""},"from_address":{"type":"string","title":"From Address","default":""},"to_address":{"type":"string","title":"To Address","default":""},"subject":{"type":"string","title":"Subject","default":""},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"preview":{"type":"string","title":"Preview","default":""},"has_ccda":{"type":"boolean","title":"Has Ccda","default":false},"attachments":{"items":{"type":"string"},"type":"array","title":"Attachments"}},"type":"object","required":["uid"],"title":"InboxMessage"},"IndexKnowledgeRequest":{"properties":{"source":{"$ref":"#/components/schemas/KnowledgeSource"},"document_id":{"type":"string","title":"Document Id"},"title":{"type":"string","title":"Title"},"text":{"type":"string","title":"Text"},"vector":{"items":{"type":"number"},"type":"array","title":"Vector"},"section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section"},"publication_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Publication Year"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"extra_payload":{"additionalProperties":true,"type":"object","title":"Extra Payload"}},"type":"object","required":["source","title","text","vector"],"title":"IndexKnowledgeRequest"},"IndexKnowledgeResponse":{"properties":{"point_id":{"type":"string","title":"Point Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["point_id","collection"],"title":"IndexKnowledgeResponse"},"IndexPatientRecordRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"type":"string","title":"Resource Id"},"version_id":{"type":"string","title":"Version Id"},"text":{"type":"string","title":"Text","description":"Extracted text content of the resource"},"vector":{"items":{"type":"number"},"type":"array","title":"Vector","description":"Embedding of text"},"display":{"type":"string","title":"Display","default":""},"extra_payload":{"additionalProperties":true,"type":"object","title":"Extra Payload"}},"type":"object","required":["patient_id","resource_type","resource_id","version_id","text","vector"],"title":"IndexPatientRecordRequest"},"IndexPatientRecordResponse":{"properties":{"point_id":{"type":"string","title":"Point Id"},"collection":{"type":"string","title":"Collection"}},"type":"object","required":["point_id","collection"],"title":"IndexPatientRecordResponse"},"InfoBlockingRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"requested_resource_type":{"type":"string","title":"Requested Resource Type"},"requester_type":{"type":"string","title":"Requester Type","default":"patient"}},"type":"object","required":["patient_id","requested_resource_type"],"title":"InfoBlockingRequest"},"InformationBlockingLogRequest":{"properties":{"request_id":{"type":"string","title":"Request Id","description":"Unique identifier for the access/exchange/use request"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"requester":{"type":"string","title":"Requester","description":"Entity or individual who requested access/exchange/use"},"ehi_description":{"type":"string","title":"Ehi Description","description":"Description of electronic health information involved"},"decision":{"type":"string","title":"Decision","description":"'granted', 'denied', 'partial'"},"exception_claimed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exception Claimed","description":"Information-blocking exception invoked, if any (e.g., 'Privacy', 'Security', 'Infeasibility')"},"rationale":{"type":"string","title":"Rationale","description":"Clinical, legal, or operational rationale for the decision"}},"type":"object","required":["request_id","requester","ehi_description","decision","rationale"],"title":"InformationBlockingLogRequest","description":"Log a decision about whether access/exchange/use of EHI was restricted (21 CFR Part 171)."},"InformedConsent":{"properties":{"consent_id":{"type":"string","title":"Consent Id"},"subject_id":{"type":"string","title":"Subject Id"},"protocol_id":{"type":"string","title":"Protocol Id"},"document_version":{"type":"string","title":"Document Version"},"signed_at":{"type":"string","format":"date-time","title":"Signed At"},"patient_signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Signature"},"witness_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Witness Id"},"electronic":{"type":"boolean","title":"Electronic","default":true},"part11_audit_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part11 Audit Id"}},"type":"object","required":["subject_id","protocol_id","document_version"],"title":"InformedConsent"},"InfusionChair":{"properties":{"chair_id":{"type":"string","title":"Chair Id"},"location":{"type":"string","title":"Location"},"available":{"type":"boolean","title":"Available","default":true}},"type":"object","required":["location"],"title":"InfusionChair"},"InfusionSession":{"properties":{"session_id":{"type":"string","title":"Session Id"},"order_id":{"type":"string","title":"Order Id"},"patient_id":{"type":"string","title":"Patient Id"},"chair_id":{"type":"string","title":"Chair Id"},"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"session_status":{"$ref":"#/components/schemas/InfusionSessionStatus","default":"scheduled"},"pre_meds_given":{"items":{"type":"string"},"type":"array","title":"Pre Meds Given"},"reactions":{"items":{"type":"string"},"type":"array","title":"Reactions"},"nurse_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nurse Id"},"abort_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Abort Reason"}},"type":"object","required":["order_id","patient_id","chair_id"],"title":"InfusionSession"},"InfusionSessionStatus":{"type":"string","enum":["scheduled","in_progress","completed","aborted"],"title":"InfusionSessionStatus"},"IngestChunkRequest":{"properties":{"speaker_label":{"type":"string","title":"Speaker Label","default":"unknown"},"channel":{"$ref":"#/components/schemas/DiarizationChannel","default":"unknown"},"transcript_text":{"type":"string","title":"Transcript Text"},"confidence":{"type":"number","title":"Confidence","default":1.0},"offset_ms":{"type":"integer","title":"Offset Ms","default":0},"duration_ms":{"type":"integer","title":"Duration Ms","default":0},"word_timestamps":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Word Timestamps"}},"type":"object","required":["transcript_text"],"title":"IngestChunkRequest","description":"Represents a processed audio chunk with metadata.\n\nRaw audio bytes are NOT sent here — the client-side SDK sends audio to\nthe STT provider directly and pushes the resulting transcript segments\nto this endpoint."},"IngestJobState":{"type":"string","enum":["queued","processing","completed","failed","partial"],"title":"IngestJobState"},"IngestReadingRequest":{"properties":{"device_id":{"type":"string","title":"Device Id"},"value":{"type":"number","title":"Value"},"unit":{"type":"string","title":"Unit"},"secondary_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Secondary Value"},"secondary_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary Unit"},"metric":{"type":"string","title":"Metric","default":""}},"type":"object","required":["device_id","value","unit"],"title":"IngestReadingRequest"},"IngestRequest":{"properties":{"source_doc":{"type":"string","title":"Source Doc"},"raw_text":{"type":"string","title":"Raw Text"}},"type":"object","required":["source_doc","raw_text"],"title":"IngestRequest"},"IngestResponse":{"properties":{"sections_parsed":{"type":"integer","title":"Sections Parsed"},"section_ids":{"items":{"type":"string"},"type":"array","title":"Section Ids"}},"type":"object","required":["sections_parsed","section_ids"],"title":"IngestResponse"},"InitiateKBARequest":{"properties":{"relationship_id":{"type":"string","title":"Relationship Id"},"delegate_uid":{"type":"string","title":"Delegate Uid"}},"type":"object","required":["relationship_id","delegate_uid"],"title":"InitiateKBARequest"},"InjuryType":{"type":"string","enum":["musculoskeletal","laceration","chemical_exposure","needle_stick","burn","fracture","concussion","respiratory","other"],"title":"InjuryType"},"InpatientAdmission":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"setting_type":{"$ref":"#/components/schemas/AcuteSettingType","default":"inpatient"},"admission_date":{"type":"string","format":"date-time","title":"Admission Date"},"discharge_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discharge Date"},"admitting_diagnosis":{"type":"string","title":"Admitting Diagnosis"},"bed_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bed Id"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"attending_provider_id":{"type":"string","title":"Attending Provider Id"},"disposition":{"$ref":"#/components/schemas/EncounterDisposition","default":"admitted"},"ltach_qualifying_diagnosis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ltach Qualifying Diagnosis"},"irf_qualifying_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Irf Qualifying Condition"},"functional_independence_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Functional Independence Score"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","admission_date","admitting_diagnosis","attending_provider_id"],"title":"InpatientAdmission"},"InsightCategory":{"type":"string","enum":["api_usage","patient_access","interoperability","patient_matching","bulk_export","cqms"],"title":"InsightCategory"},"InsightMetric":{"properties":{"metric_name":{"type":"string","title":"Metric Name"},"value":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"string"}],"title":"Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"},"category":{"$ref":"#/components/schemas/InsightCategory"}},"type":"object","required":["metric_name","value","period_start","period_end","category"],"title":"InsightMetric"},"InsightsExportIn":{"properties":{"period_start":{"type":"string","title":"Period Start","description":"ISO 8601 date"},"period_end":{"type":"string","title":"Period End","description":"ISO 8601 date"},"categories":{"anyOf":[{"items":{"$ref":"#/components/schemas/InsightCategory"},"type":"array"},{"type":"null"}],"title":"Categories"},"format":{"type":"string","pattern":"^(json|csv|ndjson)$","title":"Format","default":"json"}},"type":"object","required":["period_start","period_end"],"title":"InsightsExportIn"},"InsightsExportOut":{"properties":{"export_id":{"type":"string","title":"Export Id"},"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"},"generated_at":{"type":"string","title":"Generated At"},"metric_count":{"type":"integer","title":"Metric Count"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"metrics":{"items":{"$ref":"#/components/schemas/InsightMetric"},"type":"array","title":"Metrics"}},"type":"object","required":["export_id","period_start","period_end","generated_at","metric_count","categories","metrics"],"title":"InsightsExportOut"},"InstrumentCount":{"properties":{"id":{"type":"string","title":"Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"sponge_count_correct":{"type":"boolean","title":"Sponge Count Correct"},"sharps_count_correct":{"type":"boolean","title":"Sharps Count Correct"},"instrument_count_correct":{"type":"boolean","title":"Instrument Count Correct"},"status":{"$ref":"#/components/schemas/InstrumentCountStatus","default":"pending"},"count_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Count Completed At"},"counted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Counted By"},"x_ray_obtained":{"type":"boolean","title":"X Ray Obtained","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["encounter_id","sponge_count_correct","sharps_count_correct","instrument_count_correct"],"title":"InstrumentCount"},"InstrumentCountStatus":{"type":"string","enum":["correct","incorrect","pending"],"title":"InstrumentCountStatus"},"IntakeFormRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"form_type":{"type":"string","title":"Form Type","default":"pre_visit"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"}},"type":"object","required":["patient_id"],"title":"IntakeFormRequest"},"InteractionAlert":{"properties":{"issue_id":{"type":"string","title":"Issue Id","description":"Locally generated UUID for this alert"},"category":{"type":"string","title":"Category","description":"'drug-drug' or 'drug-allergy'"},"severity":{"$ref":"#/components/schemas/InteractionSeverity"},"fhir_severity":{"type":"string","title":"Fhir Severity","description":"FHIR DetectedIssue severity code"},"implicated_code":{"type":"string","title":"Implicated Code","description":"RxNorm code of the interacting active med, or SNOMED allergen code"},"implicated_display":{"type":"string","title":"Implicated Display","default":""},"description":{"type":"string","title":"Description"},"fhir_resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Resource Id","description":"ID of the persisted DetectedIssue resource"}},"type":"object","required":["issue_id","category","severity","fhir_severity","implicated_code","description"],"title":"InteractionAlert","description":"A single detected interaction alert."},"InteractionSeverity":{"type":"string","enum":["contraindicated","severe","moderate","minor"],"title":"InteractionSeverity"},"InterfaceChannel":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"protocol":{"type":"string","title":"Protocol"},"direction":{"type":"string","title":"Direction"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","name","protocol","direction","status"],"title":"InterfaceChannel"},"InventoryTransaction":{"properties":{"transaction_id":{"type":"string","title":"Transaction Id"},"item_id":{"type":"string","title":"Item Id"},"transaction_type":{"$ref":"#/components/schemas/TransactionType"},"quantity":{"type":"number","title":"Quantity"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"lot_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lot Number"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"performed_by":{"type":"string","title":"Performed By"},"performed_at":{"type":"string","format":"date-time","title":"Performed At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["transaction_id","item_id","transaction_type","quantity","performed_by","performed_at"],"title":"InventoryTransaction"},"InventoryTransactionCreate":{"properties":{"item_id":{"type":"string","title":"Item Id"},"transaction_type":{"$ref":"#/components/schemas/TransactionType"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"lot_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lot Number"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["item_id","transaction_type","quantity"],"title":"InventoryTransactionCreate"},"IsolationOrder":{"properties":{"order_id":{"type":"string","title":"Order Id"},"patient_id":{"type":"string","title":"Patient Id"},"precaution_type":{"$ref":"#/components/schemas/IsolationPrecaution"},"indication":{"type":"string","title":"Indication"},"ordered_by":{"type":"string","title":"Ordered By"},"ordered_at":{"type":"string","format":"date-time","title":"Ordered At"},"room":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room"},"active":{"type":"boolean","title":"Active","default":true},"discontinued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discontinued At"},"discontinued_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discontinued By"},"signage_placed":{"type":"boolean","title":"Signage Placed","default":false},"ppe_required":{"items":{"type":"string"},"type":"array","title":"Ppe Required"}},"type":"object","required":["patient_id","precaution_type","indication","ordered_by"],"title":"IsolationOrder"},"IsolationPrecaution":{"type":"string","enum":["standard","contact","droplet","airborne","contact_droplet","enhanced_barrier"],"title":"IsolationPrecaution"},"IssueCreate":{"properties":{"criterion_id":{"type":"string","title":"Criterion Id","description":"In-scope criterion key, e.g. 'a1'"},"title":{"type":"string","maxLength":200,"minLength":5,"title":"Title"},"severity":{"type":"string","enum":["critical","major","minor","enhancement"],"title":"Severity"},"description":{"type":"string","minLength":10,"title":"Description"},"steps_to_reproduce":{"type":"string","title":"Steps To Reproduce","default":""},"suggested_fix":{"type":"string","title":"Suggested Fix","default":""}},"type":"object","required":["criterion_id","title","severity","description"],"title":"IssueCreate"},"IssueResponse":{"properties":{"id":{"type":"string","title":"Id"},"criterion_id":{"type":"string","title":"Criterion Id"},"criterion_description":{"type":"string","title":"Criterion Description"},"title":{"type":"string","title":"Title"},"severity":{"type":"string","title":"Severity"},"status":{"type":"string","title":"Status"},"description":{"type":"string","title":"Description"},"steps_to_reproduce":{"type":"string","title":"Steps To Reproduce"},"suggested_fix":{"type":"string","title":"Suggested Fix"},"resolution":{"type":"string","title":"Resolution"},"linked_ticket":{"type":"string","title":"Linked Ticket"},"reported_by":{"type":"string","title":"Reported By"},"reported_at":{"type":"string","title":"Reported At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","criterion_id","criterion_description","title","severity","status","description","steps_to_reproduce","suggested_fix","resolution","linked_ticket","reported_by","reported_at","updated_at"],"title":"IssueResponse"},"IssueUpdate":{"properties":{"status":{"anyOf":[{"type":"string","enum":["open","in-progress","resolved","wont-fix"]},{"type":"null"}],"title":"Status"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"linked_ticket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Ticket"}},"type":"object","title":"IssueUpdate"},"ItemMaster":{"properties":{"item_id":{"type":"string","title":"Item Id"},"gtin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gtin","description":"GS1 GTIN-14"},"udi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Udi","description":"FDA UDI — device identifier"},"description":{"type":"string","title":"Description"},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor"},"unit_of_measure":{"type":"string","title":"Unit Of Measure","default":"EA"},"unit_cost":{"type":"number","minimum":0.0,"title":"Unit Cost"},"par_level":{"type":"number","minimum":0.0,"title":"Par Level","description":"Minimum on-hand quantity","default":0},"reorder_point":{"type":"number","minimum":0.0,"title":"Reorder Point","default":0},"on_hand":{"type":"number","title":"On Hand","default":0},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"is_device":{"type":"boolean","title":"Is Device","default":false}},"type":"object","required":["item_id","description","unit_cost"],"title":"ItemMaster"},"ItemMasterCreate":{"properties":{"gtin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gtin"},"udi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Udi"},"description":{"type":"string","title":"Description"},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor"},"unit_of_measure":{"type":"string","title":"Unit Of Measure","default":"EA"},"unit_cost":{"type":"number","minimum":0.0,"title":"Unit Cost"},"par_level":{"type":"number","title":"Par Level","default":0},"reorder_point":{"type":"number","title":"Reorder Point","default":0},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"is_device":{"type":"boolean","title":"Is Device","default":false}},"type":"object","required":["description","unit_cost"],"title":"ItemMasterCreate"},"IvCompounderEvent":{"properties":{"compounder_id":{"type":"string","title":"Compounder Id"},"batch_id":{"type":"string","title":"Batch Id"},"compound_name":{"type":"string","title":"Compound Name"},"quantity_ml":{"type":"number","title":"Quantity Ml"},"gravimetric_pass":{"type":"boolean","title":"Gravimetric Pass"},"label_printed":{"type":"boolean","title":"Label Printed"},"pharmacist_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pharmacist Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["compounder_id","batch_id","compound_name","quantity_ml","gravimetric_pass","label_printed"],"title":"IvCompounderEvent"},"Jurisdiction":{"type":"string","enum":["US","EU","CA","CA-ON","GB","AU","JP","BR","SG","TH","IN"],"title":"Jurisdiction"},"JurisdictionComplianceOut":{"properties":{"jurisdiction":{"$ref":"#/components/schemas/Jurisdiction"},"display_name":{"type":"string","title":"Display Name"},"privacy_regimes":{"items":{"$ref":"#/components/schemas/PrivacyRegime"},"type":"array","title":"Privacy Regimes"},"data_residency_required":{"type":"boolean","title":"Data Residency Required"},"approved_gcp_regions":{"items":{"$ref":"#/components/schemas/GcpRegion"},"type":"array","title":"Approved Gcp Regions"},"right_to_erasure":{"type":"boolean","title":"Right To Erasure"},"data_portability":{"type":"boolean","title":"Data Portability"},"breach_notification_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Breach Notification Hours"},"dpa_contact_required":{"type":"boolean","title":"Dpa Contact Required"},"notes":{"type":"string","title":"Notes"}},"type":"object","required":["jurisdiction","display_name","privacy_regimes","data_residency_required","approved_gcp_regions","right_to_erasure","data_portability","breach_notification_hours","dpa_contact_required","notes"],"title":"JurisdictionComplianceOut"},"KafkaEvent":{"properties":{"topic":{"$ref":"#/components/schemas/KafkaTopic"},"key":{"type":"string","title":"Key","description":"Partition key — typically the patient or resource ID"},"payload":{"additionalProperties":true,"type":"object","title":"Payload","description":"Event payload (FHIR resource or custom envelope)"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"}},"type":"object","required":["topic","key","payload"],"title":"KafkaEvent"},"KafkaEventReceipt":{"properties":{"event_id":{"type":"string","title":"Event Id"},"topic":{"type":"string","title":"Topic"},"offset":{"type":"integer","title":"Offset"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["event_id","topic","offset","timestamp"],"title":"KafkaEventReceipt"},"KafkaTopic":{"type":"string","enum":["clinical.events","audit.trail","vitals.stream","adt.events","order.events","medication.events","lab.results","imaging.results"],"title":"KafkaTopic"},"KnowledgeCitation":{"properties":{"source":{"$ref":"#/components/schemas/KnowledgeSource"},"document_id":{"type":"string","title":"Document Id"},"title":{"type":"string","title":"Title"},"section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section"},"publication_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Publication Year"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["source","document_id","title"],"title":"KnowledgeCitation","description":"Pointer to a knowledge-base document."},"KnowledgeRetrieveHit":{"properties":{"point_id":{"type":"string","title":"Point Id"},"score":{"type":"number","title":"Score"},"citation":{"$ref":"#/components/schemas/KnowledgeCitation"},"snippet":{"type":"string","title":"Snippet"}},"type":"object","required":["point_id","score","citation","snippet"],"title":"KnowledgeRetrieveHit"},"KnowledgeRetrieveRequest":{"properties":{"query_vector":{"items":{"type":"number"},"type":"array","title":"Query Vector"},"top_k":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Top K","default":5},"score_threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Score Threshold","default":0.7},"sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/KnowledgeSource"},"type":"array"},{"type":"null"}],"title":"Sources","description":"Restrict to specific knowledge sources"}},"type":"object","required":["query_vector"],"title":"KnowledgeRetrieveRequest"},"KnowledgeRetrieveResponse":{"properties":{"hits":{"items":{"$ref":"#/components/schemas/KnowledgeRetrieveHit"},"type":"array","title":"Hits"},"total_searched":{"type":"integer","title":"Total Searched"}},"type":"object","required":["hits","total_searched"],"title":"KnowledgeRetrieveResponse"},"KnowledgeSource":{"type":"string","enum":["USPSTF","IDSA","AHA","ASCO","FORMULARY","PRIOR_AUTH","SOP"],"title":"KnowledgeSource"},"LISOrderRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"ordering_provider_npi":{"type":"string","title":"Ordering Provider Npi"},"lab_tests":{"items":{"type":"string"},"type":"array","title":"Lab Tests","description":"LOINC codes for ordered tests"},"specimen_type":{"type":"string","title":"Specimen Type","description":"SNOMED specimen type","default":"venous_blood"},"collection_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Collection Datetime"},"priority":{"type":"string","title":"Priority","description":"routine | urgent | stat","default":"routine"},"clinical_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinical Notes"}},"type":"object","required":["patient_id","encounter_id","ordering_provider_npi","lab_tests"],"title":"LISOrderRequest"},"LISResultIngest":{"properties":{"lis_order_id":{"type":"string","title":"Lis Order Id"},"patient_id":{"type":"string","title":"Patient Id"},"performing_lab_npi":{"type":"string","title":"Performing Lab Npi"},"observations":{"items":{"$ref":"#/components/schemas/LISResultObservation"},"type":"array","title":"Observations"},"result_status":{"$ref":"#/components/schemas/ResultStatus"},"result_datetime":{"type":"string","format":"date-time","title":"Result Datetime"},"specimen_collected_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Specimen Collected Datetime"},"report_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Text"},"hl7_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hl7 Message Id"}},"type":"object","required":["lis_order_id","patient_id","performing_lab_npi","observations","result_status","result_datetime"],"title":"LISResultIngest","description":"Inbound result from LIS (HL7 v2 ORU^R01 translated to JSON)."},"LISResultObservation":{"properties":{"loinc_code":{"type":"string","title":"Loinc Code"},"loinc_display":{"type":"string","title":"Loinc Display"},"value_quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Quantity"},"value_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value String"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"reference_range_low":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reference Range Low"},"reference_range_high":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reference Range High"},"criticality":{"$ref":"#/components/schemas/Criticality","default":"normal"},"interpretation_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interpretation Text"}},"type":"object","required":["loinc_code","loinc_display"],"title":"LISResultObservation"},"LabOrderRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"loinc_code":{"type":"string","title":"Loinc Code","description":"LOINC code for the ordered test"},"loinc_display":{"type":"string","title":"Loinc Display","description":"Human-readable test name"},"priority":{"type":"string","title":"Priority","description":"Order priority: routine | urgent | asap | stat","default":"routine"},"specimen_type":{"type":"string","title":"Specimen Type","description":"Specimen type (e.g. 'Serum', 'Urine')","default":""},"clinical_notes":{"type":"string","title":"Clinical Notes","description":"Clinical notes / indication","default":""},"snomed_context_code":{"type":"string","title":"Snomed Context Code","description":"SNOMED CT code for clinical context","default":""},"snomed_context_display":{"type":"string","title":"Snomed Context Display","description":"SNOMED CT display for clinical context","default":""}},"type":"object","required":["patient_id","loinc_code","loinc_display"],"title":"LabOrderRequest","description":"Body for creating or updating a laboratory order."},"LabOrderResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"patient_id":{"type":"string","title":"Patient Id"},"provider_id":{"type":"string","title":"Provider Id"},"loinc_code":{"type":"string","title":"Loinc Code"},"loinc_display":{"type":"string","title":"Loinc Display"},"priority":{"type":"string","title":"Priority"},"specimen_type":{"type":"string","title":"Specimen Type"},"clinical_notes":{"type":"string","title":"Clinical Notes"},"snomed_context_code":{"type":"string","title":"Snomed Context Code"},"snomed_context_display":{"type":"string","title":"Snomed Context Display"},"authored_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authored On"}},"type":"object","required":["id","status","patient_id","provider_id","loinc_code","loinc_display","priority","specimen_type","clinical_notes","snomed_context_code","snomed_context_display","authored_on"],"title":"LabOrderResponse","description":"Flattened view of a FHIR ServiceRequest returned to the caller."},"LabResultInfo":{"properties":{"order_id":{"type":"string","title":"Order Id","description":"Placer order number / lab order ID"},"loinc_code":{"type":"string","title":"Loinc Code","description":"LOINC code for the test"},"loinc_display":{"type":"string","title":"Loinc Display","description":"Human-readable test name","default":""},"value_type":{"type":"string","title":"Value Type","description":"HL7 value type: NM=Numeric, ST=String, CWE=Coded, TX=Text","default":"ST"},"value":{"type":"string","title":"Value","description":"Observation value"},"units":{"type":"string","title":"Units","description":"Units of measure (UCUM preferred)","default":""},"reference_range":{"type":"string","title":"Reference Range","description":"Normal range string","default":""},"abnormal_flag":{"type":"string","title":"Abnormal Flag","description":"H=High, L=Low, A=Abnormal, N=Normal","default":""},"result_status":{"type":"string","title":"Result Status","description":"F=Final, P=Preliminary, C=Correction","default":"F"},"observation_datetime":{"type":"string","title":"Observation Datetime","description":"HL7 DTM (yyyyMMddHHmmss); defaults to current UTC if omitted","default":""},"comment":{"type":"string","title":"Comment","description":"Optional free-text comment (NTE segment)","default":""}},"type":"object","required":["order_id","loinc_code","value"],"title":"LabResultInfo","description":"Lab result details used to build the ORU^R01 message."},"LaborProgress":{"properties":{"encounter_id":{"type":"string","title":"Encounter Id"},"patient_id":{"type":"string","title":"Patient Id"},"labor_onset_dt":{"type":"string","format":"date-time","title":"Labor Onset Dt"},"stage":{"$ref":"#/components/schemas/LaborStage","default":"latent"},"cervical_dilation_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cervical Dilation Cm"},"effacement_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Effacement Pct"},"station":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Station"},"contractions_per_10min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contractions Per 10Min"},"fhr_pattern":{"anyOf":[{"$ref":"#/components/schemas/FHRPattern"},{"type":"null"}]},"rupture_of_membranes":{"type":"boolean","title":"Rupture Of Membranes","default":false},"rom_dt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rom Dt"},"oxytocin_infusion":{"type":"boolean","title":"Oxytocin Infusion","default":false},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"}},"type":"object","required":["patient_id"],"title":"LaborProgress"},"LaborStage":{"type":"string","enum":["latent","active","second_stage","third_stage","fourth_stage"],"title":"LaborStage"},"LaunchTokenCreate":{"properties":{"patient":{"type":"string","title":"Patient","description":"FHIR Patient ID to bind to the launch context"},"encounter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter","description":"Optional FHIR Encounter ID to bind to the launch context"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"If set, only this registered SMART client may consume the token at /oauth/authorize. If omitted, any registered client may consume it."}},"type":"object","required":["patient"],"title":"LaunchTokenCreate","description":"Request body for POST /oauth/launch (admin-only EHR-launch handoff)."},"LaunchTokenResponse":{"properties":{"launch_token":{"type":"string","title":"Launch Token"},"expires_in":{"type":"integer","title":"Expires In","default":600}},"type":"object","required":["launch_token"],"title":"LaunchTokenResponse"},"LegacyBridgeQueryRequest":{"properties":{"bridge":{"$ref":"#/components/schemas/CommunityBridge"},"patient_demographics":{"$ref":"#/components/schemas/PatientDemographics"},"identifiers":{"items":{"$ref":"#/components/schemas/PatientIdentifier"},"type":"array","title":"Identifiers"},"purpose_of_use":{"$ref":"#/components/schemas/app__serving__tefca_qhin__PurposeOfUse","default":"TREATMENT"},"document_types":{"items":{"type":"string"},"type":"array","title":"Document Types"}},"type":"object","required":["bridge","patient_demographics"],"title":"LegacyBridgeQueryRequest","description":"Carequality / CommonWell legacy bridge query (sunsetting under TEFCA)."},"LegalHoldRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"scope":{"$ref":"#/components/schemas/HoldScope","default":"all"},"matter_reference":{"type":"string","title":"Matter Reference","description":"Legal matter / case reference number"},"placed_by_counsel":{"type":"string","title":"Placed By Counsel","description":"Name or bar ID of requesting counsel"},"expiry_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry Date","description":"ISO-8601 date when hold auto-expires; null = indefinite"}},"type":"object","required":["patient_id","matter_reference","placed_by_counsel"],"title":"LegalHoldRequest"},"LocaleCreateIn":{"properties":{"code":{"type":"string","maxLength":20,"minLength":2,"title":"Code"},"language":{"type":"string","title":"Language"},"region_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Code"},"bcp47_tag":{"type":"string","title":"Bcp47 Tag"},"direction":{"$ref":"#/components/schemas/TextDirection","default":"ltr"},"date_format":{"type":"string","title":"Date Format"},"time_format":{"type":"string","title":"Time Format"},"number_decimal_separator":{"type":"string","title":"Number Decimal Separator","default":"."},"number_thousands_separator":{"type":"string","title":"Number Thousands Separator","default":","},"currency_symbol":{"type":"string","title":"Currency Symbol"},"currency_code":{"type":"string","maxLength":3,"minLength":3,"title":"Currency Code"},"iana_timezone":{"type":"string","title":"Iana Timezone"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["code","language","bcp47_tag","date_format","time_format","currency_symbol","currency_code","iana_timezone"],"title":"LocaleCreateIn"},"LocaleOut":{"properties":{"code":{"type":"string","title":"Code"},"language":{"type":"string","title":"Language"},"region_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Code"},"bcp47_tag":{"type":"string","title":"Bcp47 Tag"},"direction":{"$ref":"#/components/schemas/TextDirection"},"date_format":{"type":"string","title":"Date Format"},"time_format":{"type":"string","title":"Time Format"},"number_decimal_separator":{"type":"string","title":"Number Decimal Separator"},"number_thousands_separator":{"type":"string","title":"Number Thousands Separator"},"currency_symbol":{"type":"string","title":"Currency Symbol"},"currency_code":{"type":"string","title":"Currency Code"},"iana_timezone":{"type":"string","title":"Iana Timezone"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["code","language","region_code","bcp47_tag","direction","date_format","time_format","number_decimal_separator","number_thousands_separator","currency_symbol","currency_code","iana_timezone","active"],"title":"LocaleOut"},"LocationCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"organization_id":{"type":"string","title":"Organization Id"},"phone":{"type":"string","title":"Phone","default":""},"email":{"type":"string","title":"Email","default":""},"address":{"anyOf":[{"$ref":"#/components/schemas/app__serving__directory__AddressInput"},{"type":"null"}]},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["name","organization_id"],"title":"LocationCreateRequest"},"LogTimeRequest":{"properties":{"enrollment_id":{"type":"string","title":"Enrollment Id"},"minutes":{"type":"integer","title":"Minutes"},"activity_type":{"type":"string","title":"Activity Type"},"notes":{"type":"string","title":"Notes","default":""},"billing_month":{"type":"string","title":"Billing Month"}},"type":"object","required":["enrollment_id","minutes","activity_type","billing_month"],"title":"LogTimeRequest"},"LoginAndMintRequest":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"pattern":".+@.+\\..+","title":"Email"},"password":{"type":"string","maxLength":512,"minLength":1,"title":"Password"},"mfa_code":{"type":"string","maxLength":10,"minLength":4,"title":"Mfa Code"},"display_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Display Name"},"expires_in_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Expires In Days","default":90}},"type":"object","required":["email","password","mfa_code"],"title":"LoginAndMintRequest","description":"Credentials + MFA code for one-shot sign-in + PAT mint.\n\nUsed by Postman/curl callers that don't already hold a Firebase ID token.\nThe server proxies Firebase Identity Toolkit (`signInWithPassword` →\n`mfaSignIn:start` → `mfaSignIn:finalize`) and returns a PAT in one round-trip."},"LoincEntry":{"properties":{"code":{"type":"string","title":"Code"},"display":{"type":"string","title":"Display"},"long_name":{"type":"string","title":"Long Name","default":""},"component":{"type":"string","title":"Component","default":""},"property":{"type":"string","title":"Property","default":""},"specimen":{"type":"string","title":"Specimen","default":""}},"type":"object","required":["code","display"],"title":"LoincEntry","description":"A single entry in the LOINC test catalog."},"MCHATResult":{"type":"string","enum":["low_risk","medium_risk","high_risk"],"title":"MCHATResult"},"MCHATScreen":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"screen_date":{"type":"string","format":"date","title":"Screen Date"},"age_months":{"type":"integer","title":"Age Months"},"total_score":{"type":"integer","title":"Total Score"},"followup_conducted":{"type":"boolean","title":"Followup Conducted","default":false},"followup_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Followup Score"},"result":{"$ref":"#/components/schemas/MCHATResult"},"referral_recommended":{"type":"boolean","title":"Referral Recommended","default":false},"provider_id":{"type":"string","title":"Provider Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","screen_date","age_months","total_score","result","provider_id"],"title":"MCHATScreen"},"MDNResponse":{"properties":{"message_id":{"type":"string","title":"Message Id"},"final_recipient":{"type":"string","title":"Final Recipient"},"original_message_id":{"type":"string","title":"Original Message Id"},"disposition":{"type":"string","title":"Disposition"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["message_id","final_recipient","original_message_id","disposition","timestamp"],"title":"MDNResponse","description":"RFC 3798 Message Disposition Notification auto-response shape."},"MDS3Request":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"assessment_reference_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assessment Reference Date"},"assessment_type":{"type":"string","title":"Assessment Type","default":"5_day"}},"type":"object","required":["patient_id"],"title":"MDS3Request"},"MEWTStatus":{"type":"string","enum":["active","responded","resolved"],"title":"MEWTStatus"},"MLLPEndpointConfig":{"properties":{"host":{"type":"string","title":"Host","default":"0.0.0.0"},"port":{"type":"integer","title":"Port","default":2575},"tls_enabled":{"type":"boolean","title":"Tls Enabled","default":true},"tls_cert_secret":{"type":"string","title":"Tls Cert Secret","description":"GCP Secret Manager key for TLS cert","default":"hl7v2-mllp-tls-cert"},"tls_key_secret":{"type":"string","title":"Tls Key Secret","description":"GCP Secret Manager key for TLS key","default":"hl7v2-mllp-tls-key"},"max_connections":{"type":"integer","title":"Max Connections","default":500},"recv_timeout_seconds":{"type":"integer","title":"Recv Timeout Seconds","default":30}},"type":"object","title":"MLLPEndpointConfig","description":"Configuration for an MLLP listener endpoint."},"MPPSResponse":{"properties":{"mpps_uid":{"type":"string","title":"Mpps Uid"},"ae_title":{"type":"string","title":"Ae Title"},"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"accession_number":{"type":"string","title":"Accession Number"},"status":{"type":"string","title":"Status"},"modality":{"type":"string","title":"Modality"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["mpps_uid","ae_title","study_instance_uid","accession_number","status","modality","updated_at"],"title":"MPPSResponse"},"MPPSStatus":{"type":"string","enum":["IN PROGRESS","COMPLETED","DISCONTINUED"],"title":"MPPSStatus"},"MPPSUpdate":{"properties":{"mpps_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mpps Uid"},"ae_title":{"type":"string","title":"Ae Title","description":"Modality AE Title"},"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"accession_number":{"type":"string","title":"Accession Number"},"performed_procedure_step_status":{"$ref":"#/components/schemas/MPPSStatus"},"modality":{"$ref":"#/components/schemas/Modality"},"performed_series":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Performed Series"}},"type":"object","required":["ae_title","study_instance_uid","accession_number","performed_procedure_step_status","modality"],"title":"MPPSUpdate"},"MRFEntry":{"properties":{"charge_code":{"type":"string","title":"Charge Code"},"description":{"type":"string","title":"Description"},"cpt_codes":{"items":{"type":"string"},"type":"array","title":"Cpt Codes"},"hcpcs_codes":{"items":{"type":"string"},"type":"array","title":"Hcpcs Codes"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code"},"gross_charge":{"type":"number","title":"Gross Charge"},"discounted_cash_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discounted Cash Price"},"payer_specific_negotiated_charges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Payer Specific Negotiated Charges"}},"type":"object","required":["charge_code","description","cpt_codes","hcpcs_codes","revenue_code","gross_charge","discounted_cash_price","payer_specific_negotiated_charges"],"title":"MRFEntry"},"MSEOutcome":{"type":"string","enum":["emergency_condition","no_emergency_condition","pending"],"title":"MSEOutcome"},"MSERecord":{"properties":{"mse_id":{"type":"string","title":"Mse Id"},"visit_id":{"type":"string","title":"Visit Id"},"patient_id":{"type":"string","title":"Patient Id"},"performed_by":{"type":"string","title":"Performed By"},"performed_at":{"type":"string","format":"date-time","title":"Performed At"},"chief_complaint":{"type":"string","title":"Chief Complaint"},"vital_signs":{"additionalProperties":true,"type":"object","title":"Vital Signs"},"history_present_illness":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"History Present Illness"},"physical_exam_findings":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Physical Exam Findings"},"ancillary_tests":{"items":{"type":"string"},"type":"array","title":"Ancillary Tests"},"outcome":{"$ref":"#/components/schemas/MSEOutcome","default":"pending"},"emergency_condition_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Condition Description"},"stabilisation_provided":{"type":"boolean","title":"Stabilisation Provided","default":false},"stabilisation_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stabilisation Notes"}},"type":"object","required":["visit_id","patient_id","performed_by","chief_complaint"],"title":"MSERecord","description":"Medical Screening Examination record — EMTALA 42 CFR §489.24(a)."},"MTPActivation":{"properties":{"mtp_id":{"type":"string","title":"Mtp Id"},"patient_id":{"type":"string","title":"Patient Id"},"activated_by":{"type":"string","title":"Activated By"},"indication":{"type":"string","title":"Indication"},"activated_at":{"type":"string","format":"date-time","title":"Activated At"},"deactivated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deactivated At"},"status":{"$ref":"#/components/schemas/MTPStatus","default":"activated"},"prbcs_issued":{"type":"integer","title":"Prbcs Issued","default":0},"ffp_issued":{"type":"integer","title":"Ffp Issued","default":0},"platelets_issued":{"type":"integer","title":"Platelets Issued","default":0},"cryo_issued":{"type":"integer","title":"Cryo Issued","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","activated_by","indication"],"title":"MTPActivation"},"MTPStatus":{"type":"string","enum":["activated","deactivated"],"title":"MTPStatus"},"MUECheckRequest":{"properties":{"procedure_codes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Procedure Codes"},"units_billed":{"items":{"type":"integer"},"type":"array","minItems":1,"title":"Units Billed"}},"type":"object","required":["procedure_codes","units_billed"],"title":"MUECheckRequest"},"MUECheckResult":{"properties":{"procedure_code":{"type":"string","title":"Procedure Code"},"mue_value":{"type":"integer","title":"Mue Value"},"units_billed":{"type":"integer","title":"Units Billed"},"exceeds_mue":{"type":"boolean","title":"Exceeds Mue"},"adjudication_indicator":{"type":"string","title":"Adjudication Indicator"}},"type":"object","required":["procedure_code","mue_value","units_billed","exceeds_mue","adjudication_indicator"],"title":"MUECheckResult"},"MWLItem":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"patient_name":{"type":"string","title":"Patient Name"},"accession_number":{"type":"string","title":"Accession Number"},"requested_procedure_id":{"type":"string","title":"Requested Procedure Id"},"scheduled_procedure_step_id":{"type":"string","title":"Scheduled Procedure Step Id"},"scheduled_datetime":{"type":"string","title":"Scheduled Datetime"},"modality":{"$ref":"#/components/schemas/Modality"},"scheduled_station_ae_title":{"type":"string","title":"Scheduled Station Ae Title"},"performing_physician":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Performing Physician"}},"type":"object","required":["patient_id","patient_name","accession_number","requested_procedure_id","scheduled_procedure_step_id","scheduled_datetime","modality","scheduled_station_ae_title"],"title":"MWLItem"},"MWLResponse":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"patient_name":{"type":"string","title":"Patient Name"},"accession_number":{"type":"string","title":"Accession Number"},"scheduled_procedure_step_id":{"type":"string","title":"Scheduled Procedure Step Id"},"scheduled_datetime":{"type":"string","title":"Scheduled Datetime"},"modality":{"type":"string","title":"Modality"},"scheduled_station_ae_title":{"type":"string","title":"Scheduled Station Ae Title"},"performing_physician":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Performing Physician"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","patient_id","patient_name","accession_number","scheduled_procedure_step_id","scheduled_datetime","modality","scheduled_station_ae_title","performing_physician","created_at"],"title":"MWLResponse"},"MachineReadableFile":{"properties":{"hospital_name":{"type":"string","title":"Hospital Name"},"last_updated_on":{"type":"string","format":"date","title":"Last Updated On"},"version":{"type":"string","title":"Version"},"hospital_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hospital Location"},"financial_aid_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Financial Aid Policy"},"standard_charge_information":{"items":{"$ref":"#/components/schemas/MRFEntry"},"type":"array","title":"Standard Charge Information"}},"type":"object","required":["hospital_name","last_updated_on","version","hospital_location","financial_aid_policy","standard_charge_information"],"title":"MachineReadableFile"},"MatchRequest":{"properties":{"given_name":{"type":"string","title":"Given Name"},"family_name":{"type":"string","title":"Family Name"},"date_of_birth":{"type":"string","title":"Date Of Birth"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"identifier":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Identifier","description":"e.g., {'system': 'http://hl7.org/fhir/sid/us-ssn', 'value': '...'}"}},"type":"object","required":["given_name","family_name","date_of_birth"],"title":"MatchRequest"},"MaternalEarlyWarning":{"properties":{"trigger_id":{"type":"string","title":"Trigger Id"},"patient_id":{"type":"string","title":"Patient Id"},"triggered_at":{"type":"string","format":"date-time","title":"Triggered At"},"trigger_criteria":{"items":{"type":"string"},"type":"array","title":"Trigger Criteria"},"sbp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sbp"},"dbp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dbp"},"hr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hr"},"rr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rr"},"o2_sat_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"O2 Sat Pct"},"mewt_status":{"$ref":"#/components/schemas/MEWTStatus","default":"active"},"responded_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responded By"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"}},"type":"object","required":["patient_id","trigger_criteria"],"title":"MaternalEarlyWarning"},"MeasureCalcRequest":{"properties":{"measure_id":{"type":"string","title":"Measure Id","description":"FHIR Measure id or canonical URL"},"period_start":{"type":"string","title":"Period Start","description":"ISO 8601 date"},"period_end":{"type":"string","title":"Period End","description":"ISO 8601 date"},"report_type":{"$ref":"#/components/schemas/ReportType","default":"summary"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"Patient/<id> for individual report"},"practitioner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practitioner","description":"Filter by practitioner"}},"type":"object","required":["measure_id","period_start","period_end"],"title":"MeasureCalcRequest"},"MeasureCalcResult":{"properties":{"resourceType":{"type":"string","const":"MeasureReport","title":"Resourcetype","default":"MeasureReport"},"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"measure_id":{"type":"string","title":"Measure Id"},"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"},"report_type":{"type":"string","title":"Report Type"},"status":{"type":"string","title":"Status"},"calculated_at":{"type":"string","title":"Calculated At"},"populations":{"items":{"$ref":"#/components/schemas/PopulationResult"},"type":"array","title":"Populations"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"}},"type":"object","required":["id","type","measure_id","period_start","period_end","report_type","status","calculated_at","populations"],"title":"MeasureCalcResult"},"MeasureDashboardRequest":{"properties":{"measure_ids":{"items":{"type":"string"},"type":"array","title":"Measure Ids"},"population_cohort_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Population Cohort Id"},"reporting_period_start":{"type":"string","format":"date","title":"Reporting Period Start"},"reporting_period_end":{"type":"string","format":"date","title":"Reporting Period End"},"stratify_by":{"items":{"type":"string"},"type":"array","title":"Stratify By","description":"e.g. ['gender', 'age_group', 'payer']"}},"type":"object","required":["measure_ids","reporting_period_start","reporting_period_end"],"title":"MeasureDashboardRequest"},"MeasureId":{"type":"string","enum":["CMS122v14","CMS130v14","CMS138v14"],"title":"MeasureId"},"MeasureScoreResponse":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"measure_id":{"type":"string","title":"Measure Id"},"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"},"initial_population":{"type":"boolean","title":"Initial Population"},"denominator":{"type":"boolean","title":"Denominator"},"denominator_exclusion":{"type":"boolean","title":"Denominator Exclusion"},"numerator":{"type":"boolean","title":"Numerator"},"score_date":{"type":"string","title":"Score Date"},"data_element_count":{"type":"integer","title":"Data Element Count"}},"type":"object","required":["id","patient_id","measure_id","period_start","period_end","initial_population","denominator","denominator_exclusion","numerator","score_date","data_element_count"],"title":"MeasureScoreResponse","description":"Population membership result for one patient / measure / period."},"MedHistoryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"date_range_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Range Start"},"date_range_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Range End"}},"type":"object","required":["patient_id"],"title":"MedHistoryRequest"},"MedNecessityRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"pa_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pa Id"},"requesting_provider_name":{"type":"string","title":"Requesting Provider Name"},"requesting_provider_npi":{"type":"string","title":"Requesting Provider Npi"},"payer_name":{"type":"string","title":"Payer Name"},"service_description":{"type":"string","title":"Service Description"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"clinical_summary":{"type":"string","title":"Clinical Summary","description":"Brief clinical narrative supporting medical necessity"},"peer_reviewed_support":{"items":{"type":"string"},"type":"array","title":"Peer Reviewed Support","description":"Optional citations (guidelines, literature) supporting the request"}},"type":"object","required":["patient_id","requesting_provider_name","requesting_provider_npi","payer_name","service_description","diagnosis_codes","clinical_summary"],"title":"MedNecessityRequest"},"MedNecessityResponse":{"properties":{"letter_id":{"type":"string","title":"Letter Id"},"patient_id":{"type":"string","title":"Patient Id"},"pa_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pa Id"},"letter_text":{"type":"string","title":"Letter Text"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"type":"object","required":["letter_id","patient_id","pa_id","letter_text","generated_at"],"title":"MedNecessityResponse"},"MediaUploadRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"device_id":{"type":"string","title":"Device Id"},"content_type":{"type":"string","title":"Content Type"},"data_b64":{"type":"string","title":"Data B64"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"body_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Site"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["patient_id","device_id","content_type","data_b64"],"title":"MediaUploadRequest"},"MedicationEntry-Output":{"properties":{"name":{"type":"string","maxLength":500,"title":"Name","description":"Medication name"},"dose":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Dose","description":"Dose and unit"},"frequency":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Frequency","description":"How often taken"},"indication":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Indication","description":"Reason for taking"}},"type":"object","required":["name"],"title":"MedicationEntry","description":"Single current medication entry (USCDI v3 Medications)."},"MedicationOrderRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"medication_code":{"type":"string","title":"Medication Code","description":"RxNorm code"},"medication_display":{"type":"string","title":"Medication Display","description":"Medication name"},"dosage":{"$ref":"#/components/schemas/DosageInstruction"},"indication":{"type":"string","title":"Indication","description":"Clinical indication / reason"},"notes":{"type":"string","title":"Notes","description":"Optional prescriber notes","default":""}},"type":"object","required":["patient_id","medication_code","medication_display","dosage","indication"],"title":"MedicationOrderRequest","description":"Body for creating or updating a medication order."},"MedicationOrderResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"patient_id":{"type":"string","title":"Patient Id"},"provider_id":{"type":"string","title":"Provider Id"},"medication_code":{"type":"string","title":"Medication Code"},"medication_display":{"type":"string","title":"Medication Display"},"dose_value":{"type":"number","title":"Dose Value"},"dose_unit":{"type":"string","title":"Dose Unit"},"route_code":{"type":"string","title":"Route Code"},"route_display":{"type":"string","title":"Route Display"},"frequency_code":{"type":"string","title":"Frequency Code"},"indication":{"type":"string","title":"Indication"},"notes":{"type":"string","title":"Notes"},"authored_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authored On"}},"type":"object","required":["id","status","patient_id","provider_id","medication_code","medication_display","dose_value","dose_unit","route_code","route_display","frequency_code","indication","notes","authored_on"],"title":"MedicationOrderResponse","description":"Flattened view of a FHIR MedicationRequest returned to the caller."},"MedicationSummary":{"properties":{"id":{"type":"string","title":"Id"},"resource_type":{"type":"string","title":"Resource Type"},"medication":{"type":"string","title":"Medication"},"status":{"type":"string","title":"Status"},"dose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dose"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency"},"authored_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authored On"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","resource_type","medication","status"],"title":"MedicationSummary","description":"Merged view of MedicationRequest + MedicationStatement for the Overview tab."},"MergeRequest":{"properties":{"source_patient_id":{"type":"string","title":"Source Patient Id","description":"Non-surviving record"},"target_patient_id":{"type":"string","title":"Target Patient Id","description":"Surviving golden record"},"reason":{"type":"string","title":"Reason"},"reviewed_by_clinician":{"type":"boolean","title":"Reviewed By Clinician","description":"Clinician confirms merge is clinically safe"}},"type":"object","required":["source_patient_id","target_patient_id","reason","reviewed_by_clinician"],"title":"MergeRequest"},"MessageDirection":{"type":"string","enum":["patient_to_care_team","care_team_to_patient"],"title":"MessageDirection"},"MessageIn":{"properties":{"recipient_patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Patient Id","description":"Patient recipient (for provider → patient)"},"recipient_practitioner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Practitioner Id","description":"Provider recipient (for patient → provider)"},"subject_patient_id":{"type":"string","title":"Subject Patient Id","description":"Patient the message concerns"},"topic":{"type":"string","maxLength":200,"title":"Topic"},"body":{"type":"string","title":"Body","description":"Plain-text message body"},"priority":{"type":"string","pattern":"^(routine|urgent|asap|stat)$","title":"Priority","default":"routine"},"reply_to_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To Message Id"}},"type":"object","required":["subject_patient_id","topic","body"],"title":"MessageIn"},"MessageOut":{"properties":{"id":{"type":"string","title":"Id"},"sender_id":{"type":"string","title":"Sender Id"},"sender_type":{"type":"string","title":"Sender Type"},"recipient_id":{"type":"string","title":"Recipient Id"},"recipient_type":{"type":"string","title":"Recipient Type"},"subject_patient_id":{"type":"string","title":"Subject Patient Id"},"topic":{"type":"string","title":"Topic"},"body":{"type":"string","title":"Body"},"priority":{"type":"string","title":"Priority"},"status":{"type":"string","title":"Status"},"sent_date":{"type":"string","title":"Sent Date"},"read_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Date"}},"type":"object","required":["id","sender_id","sender_type","recipient_id","recipient_type","subject_patient_id","topic","body","priority","status","sent_date","read_date"],"title":"MessageOut"},"MessageSummary":{"properties":{"id":{"type":"string","title":"Id"},"direction":{"type":"string","title":"Direction"},"subject":{"type":"string","title":"Subject"},"sender":{"type":"string","title":"Sender"},"recipient":{"type":"string","title":"Recipient"},"body_preview":{"type":"string","title":"Body Preview"},"sent_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent At"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","direction","subject","sender","recipient","body_preview","status"],"title":"MessageSummary"},"MigrationFormat":{"type":"string","enum":["ccda","hl7v2","fhir_bundle","csv_demographics"],"title":"MigrationFormat"},"MigrationJobRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"source_system":{"type":"string","title":"Source System","description":"Name of the source EHR system (e.g., 'OSCAR EMR', 'Epic', 'Meditech')"},"format":{"$ref":"#/components/schemas/MigrationFormat"},"staging_uri":{"type":"string","title":"Staging Uri","description":"GCS URI of the uploaded data package (gs://...)"},"patient_count_estimate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Patient Count Estimate"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["tenant_id","source_system","format","staging_uri"],"title":"MigrationJobRequest"},"MilestoneRequest":{"properties":{"label":{"type":"string","title":"Label","description":"Short human-readable milestone label."},"owner":{"type":"string","title":"Owner"},"target_date":{"type":"string","title":"Target Date","description":"ISO date (YYYY-MM-DD) or datetime."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["label","owner","target_date"],"title":"MilestoneRequest"},"MilestoneStatus":{"type":"string","enum":["pending","complete","blocked"],"title":"MilestoneStatus"},"MilestoneUpdate":{"properties":{"status":{"$ref":"#/components/schemas/MilestoneStatus"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["status"],"title":"MilestoneUpdate"},"MinorProfileRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"date_of_birth":{"type":"string","title":"Date Of Birth"},"emancipated":{"type":"boolean","title":"Emancipated","default":false},"confidential_categories":{"items":{"type":"string"},"type":"array","title":"Confidential Categories"}},"type":"object","required":["patient_id","date_of_birth"],"title":"MinorProfileRequest"},"MockAimsReceiveRequest":{"properties":{"eicr_xml":{"type":"string","title":"Eicr Xml","description":"Raw eICR C-CDA XML document"},"transmission_id":{"type":"string","title":"Transmission Id","description":"Transmission ID","default":""}},"type":"object","required":["eicr_xml"],"title":"MockAimsReceiveRequest"},"MockAimsReceiveResponse":{"properties":{"rr_xml":{"type":"string","title":"Rr Xml"},"rr_status":{"type":"string","title":"Rr Status"},"transmission_id":{"type":"string","title":"Transmission Id"}},"type":"object","required":["rr_xml","rr_status","transmission_id"],"title":"MockAimsReceiveResponse"},"MockIISReceiveRequest":{"properties":{"hl7_message":{"type":"string","title":"Hl7 Message","description":"Raw HL7 v2.5.1 pipe-delimited message"}},"type":"object","required":["hl7_message"],"title":"MockIISReceiveRequest","description":"Body for POST /immunization-registries/mock-iis/receive."},"MockIISReceiveResponse":{"properties":{"hl7_response":{"type":"string","title":"Hl7 Response"}},"type":"object","required":["hl7_response"],"title":"MockIISReceiveResponse"},"MockPHAReceiveResponse":{"properties":{"hl7_response":{"type":"string","title":"Hl7 Response"},"msg_type":{"type":"string","title":"Msg Type"},"mcid":{"type":"string","title":"Mcid"}},"type":"object","required":["hl7_response","msg_type","mcid"],"title":"MockPHAReceiveResponse"},"Modality":{"type":"string","enum":["CT","MR","CR","DX","MG","US","NM","PT","XA","RF","OT"],"title":"Modality"},"ModelClass":{"type":"string","enum":["opus","sonnet","haiku"],"title":"ModelClass","description":"Coarse model tier — maps to a concrete model ID at runtime."},"ModelLifecycleStage":{"type":"string","enum":["propose","validate","shadow","canary","limited_ga","ga","drift","recalibrate","retire"],"title":"ModelLifecycleStage"},"MotherBabyCouplet":{"properties":{"couplet_id":{"type":"string","title":"Couplet Id"},"maternal_patient_id":{"type":"string","title":"Maternal Patient Id"},"newborn_patient_id":{"type":"string","title":"Newborn Patient Id"},"delivery_id":{"type":"string","title":"Delivery Id"},"room":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room"},"feeding_method":{"$ref":"#/components/schemas/FeedingMethod","default":"breastfeeding"},"rooming_in":{"type":"boolean","title":"Rooming In","default":true},"skin_to_skin_initiated":{"type":"boolean","title":"Skin To Skin Initiated","default":false},"lactation_consult_requested":{"type":"boolean","title":"Lactation Consult Requested","default":false},"discharge_target_dt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discharge Target Dt"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["maternal_patient_id","newborn_patient_id","delivery_id"],"title":"MotherBabyCouplet"},"MutationRequest":{"properties":{"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"operation":{"type":"string","title":"Operation"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"},"client_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Version"},"ancestor_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ancestor Version"}},"type":"object","required":["resource_type","operation"],"title":"MutationRequest"},"NCCICheckRequest":{"properties":{"procedure_codes":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Procedure Codes"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"place_of_service":{"type":"string","title":"Place Of Service","default":"11"},"encounter_date":{"type":"string","title":"Encounter Date"}},"type":"object","required":["procedure_codes","encounter_date"],"title":"NCCICheckRequest"},"NCCIEditResult":{"properties":{"edit_type":{"$ref":"#/components/schemas/NCCIEditType"},"column1_code":{"type":"string","title":"Column1 Code"},"column2_code":{"type":"string","title":"Column2 Code"},"modifier_allowed":{"type":"boolean","title":"Modifier Allowed"},"rationale":{"type":"string","title":"Rationale"},"severity":{"$ref":"#/components/schemas/EditSeverity"}},"type":"object","required":["edit_type","column1_code","column2_code","modifier_allowed","rationale","severity"],"title":"NCCIEditResult"},"NCCIEditType":{"type":"string","enum":["column1_column2","mutually_exclusive","mue"],"title":"NCCIEditType"},"NCPDPResponseCode":{"type":"string","enum":["A","C","D","P"],"title":"NCPDPResponseCode"},"NHSNAntimicrobialReport":{"properties":{"facility_id":{"type":"string","title":"Facility Id"},"reporting_month":{"type":"string","title":"Reporting Month","description":"YYYY-MM"},"usage_records":{"items":{"$ref":"#/components/schemas/AntimicrobialUsageRecord"},"type":"array","title":"Usage Records"},"resistance_records":{"items":{"$ref":"#/components/schemas/AntimicrobialResistanceRecord"},"type":"array","title":"Resistance Records"},"total_patient_days":{"type":"integer","minimum":0.0,"title":"Total Patient Days"},"summary_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Notes"}},"type":"object","required":["facility_id","reporting_month","total_patient_days"],"title":"NHSNAntimicrobialReport","description":"NHSN AU/AR monthly submission — (f)(6)."},"NHSNReportRequest":{"properties":{"report_type":{"$ref":"#/components/schemas/NHSNReportType"},"facility_id":{"type":"string","title":"Facility Id"},"reporting_month":{"type":"string","title":"Reporting Month","description":"YYYY-MM"},"event_count":{"type":"integer","minimum":0.0,"title":"Event Count","default":0},"device_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Device Days"},"procedure_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Procedure Count"},"patient_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Patient Days"},"additional_fields":{"additionalProperties":true,"type":"object","title":"Additional Fields"}},"type":"object","required":["report_type","facility_id","reporting_month"],"title":"NHSNReportRequest"},"NHSNReportType":{"type":"string","enum":["CLABSI","CAUTI","VAE","CDI","MRSA","SSI","COVID_19","AU","AR"],"title":"NHSNReportType"},"NHSNSubmission":{"properties":{"submission_id":{"type":"string","title":"Submission Id"},"case_id":{"type":"string","title":"Case Id"},"hai_type":{"$ref":"#/components/schemas/HAIType"},"facility_id":{"type":"string","title":"Facility Id"},"reporting_period":{"type":"string","title":"Reporting Period"},"submission_status":{"$ref":"#/components/schemas/NHSNSubmissionStatus","default":"pending"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"nhsn_event_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nhsn Event Number"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"}},"type":"object","required":["case_id","hai_type","facility_id","reporting_period"],"title":"NHSNSubmission"},"NHSNSubmissionStatus":{"type":"string","enum":["pending","submitted","accepted","rejected","resubmit_required"],"title":"NHSNSubmissionStatus"},"NICUAdmission":{"properties":{"nicu_admission_id":{"type":"string","title":"Nicu Admission Id"},"newborn_patient_id":{"type":"string","title":"Newborn Patient Id"},"delivery_id":{"type":"string","title":"Delivery Id"},"admitted_at":{"type":"string","format":"date-time","title":"Admitted At"},"nicu_level":{"$ref":"#/components/schemas/NICULevel","default":"level_iii"},"admission_reason":{"type":"string","title":"Admission Reason"},"gestational_age_weeks":{"type":"number","title":"Gestational Age Weeks"},"birth_weight_g":{"type":"number","title":"Birth Weight G"},"bed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bed"},"attending_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attending Provider"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["newborn_patient_id","delivery_id","admission_reason","gestational_age_weeks","birth_weight_g"],"title":"NICUAdmission"},"NICUDischarge":{"properties":{"discharge_id":{"type":"string","title":"Discharge Id"},"nicu_admission_id":{"type":"string","title":"Nicu Admission Id"},"discharged_at":{"type":"string","format":"date-time","title":"Discharged At"},"discharge_weight_g":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discharge Weight G"},"discharge_feeding":{"anyOf":[{"$ref":"#/components/schemas/FeedingMethod"},{"type":"null"}]},"car_seat_test_passed":{"type":"boolean","title":"Car Seat Test Passed","default":false},"follow_up_pcp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Follow Up Pcp"},"von_data_submitted":{"type":"boolean","title":"Von Data Submitted","default":false}},"type":"object","required":["nicu_admission_id"],"title":"NICUDischarge"},"NICULevel":{"type":"string","enum":["level_ii","level_iii","level_iv"],"title":"NICULevel"},"NICUVitalSigns":{"properties":{"vital_id":{"type":"string","title":"Vital Id"},"nicu_admission_id":{"type":"string","title":"Nicu Admission Id"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"},"heart_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Heart Rate"},"respiratory_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Respiratory Rate"},"spo2_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spo2 Pct"},"temp_celsius":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temp Celsius"},"glucose_mg_dl":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Glucose Mg Dl"},"weight_g":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight G"},"feeding_method":{"anyOf":[{"$ref":"#/components/schemas/FeedingMethod"},{"type":"null"}]},"feeding_volume_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Feeding Volume Ml"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"}},"type":"object","required":["nicu_admission_id"],"title":"NICUVitalSigns"},"NPDBQueryRequest":{"properties":{"npi":{"type":"string","title":"Npi"},"subject_first_name":{"type":"string","title":"Subject First Name"},"subject_last_name":{"type":"string","title":"Subject Last Name"},"subject_dob":{"type":"string","format":"date","title":"Subject Dob"},"subject_ssn_last4":{"type":"string","title":"Subject Ssn Last4"},"querying_entity_id":{"type":"string","title":"Querying Entity Id","description":"NPDB-issued Entity ID for the querying organization"},"query_type":{"type":"string","title":"Query Type","description":"one_time | continuous_query","default":"continuous_query"}},"type":"object","required":["npi","subject_first_name","subject_last_name","subject_dob","subject_ssn_last4","querying_entity_id"],"title":"NPDBQueryRequest"},"NPPAcknowledgment":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"npp_version_id":{"type":"string","title":"Npp Version Id"},"ack_status":{"$ref":"#/components/schemas/AckStatus"},"ack_date":{"type":"string","format":"date","title":"Ack Date"},"method":{"type":"string","title":"Method","description":"e.g. 'portal_click', 'paper_form', 'verbal'"},"staff_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Staff Uid","description":"Staff who documented the ack (for non-portal methods)"},"refusal_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal Reason"}},"type":"object","required":["patient_id","npp_version_id","ack_status","ack_date","method"],"title":"NPPAcknowledgment"},"NPPAcknowledgmentRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"npp_version":{"type":"string","title":"Npp Version","description":"Version of NPP being acknowledged"},"method":{"type":"string","title":"Method","description":"Acknowledgment method: 'electronic', 'written', 'verbal', 'refused'","default":"electronic"}},"type":"object","required":["patient_id","npp_version"],"title":"NPPAcknowledgmentRequest"},"NPPPublishRequest":{"properties":{"version":{"type":"string","title":"Version"},"effective_date":{"type":"string","title":"Effective Date"},"content_hash":{"type":"string","title":"Content Hash","description":"SHA-256 hash of the NPP document"}},"type":"object","required":["version","effective_date","content_hash"],"title":"NPPPublishRequest"},"NPPVersion":{"properties":{"version_label":{"type":"string","title":"Version Label","description":"e.g. '2025-01', 'v4.2'"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"summary_of_changes":{"type":"string","title":"Summary Of Changes"},"document_url":{"type":"string","title":"Document Url","description":"Canonical URL to the NPP document"},"supersedes_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supersedes Version Id"}},"type":"object","required":["version_label","effective_date","summary_of_changes","document_url"],"title":"NPPVersion"},"NameInput":{"properties":{"family":{"type":"string","title":"Family","description":"Family (last) name"},"given":{"items":{"type":"string"},"type":"array","title":"Given","description":"Given (first, middle) names"},"prefix":{"type":"string","title":"Prefix","description":"Name prefix (e.g. Dr., Mr.)","default":""},"suffix":{"type":"string","title":"Suffix","description":"Name suffix (e.g. Jr., III)","default":""}},"type":"object","required":["family"],"title":"NameInput"},"NativeBridgeHandshakeRequest":{"properties":{"platform":{"$ref":"#/components/schemas/DevicePlatform"},"native_sdk_version":{"type":"string","title":"Native Sdk Version"},"device_id":{"type":"string","title":"Device Id"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities","description":"e.g. ['heif_capture','face_id','secure_enclave','hevc_encode']"}},"type":"object","required":["platform","native_sdk_version","device_id"],"title":"NativeBridgeHandshakeRequest","description":"Sent by SwiftUI (iOS) or Compose (Android) bridge on first launch."},"NegotiatedRate":{"properties":{"payer_id":{"type":"string","title":"Payer Id"},"payer_name":{"type":"string","title":"Payer Name"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"negotiated_type":{"$ref":"#/components/schemas/NegotiatedType"},"negotiated_rate":{"type":"number","minimum":0.0,"title":"Negotiated Rate"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"}},"type":"object","required":["payer_id","payer_name","negotiated_type","negotiated_rate","effective_date"],"title":"NegotiatedRate"},"NegotiatedRateUpsert":{"properties":{"payer_id":{"type":"string","title":"Payer Id"},"payer_name":{"type":"string","title":"Payer Name"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"negotiated_type":{"$ref":"#/components/schemas/NegotiatedType"},"negotiated_rate":{"type":"number","minimum":0.0,"title":"Negotiated Rate"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"}},"type":"object","required":["payer_id","payer_name","negotiated_type","negotiated_rate","effective_date"],"title":"NegotiatedRateUpsert"},"NegotiatedType":{"type":"string","enum":["negotiated","fee_schedule","per_diem","case_rate","bundled","min","max","derived"],"title":"NegotiatedType"},"NeonatalScreening":{"properties":{"screening_id":{"type":"string","title":"Screening Id"},"delivery_id":{"type":"string","title":"Delivery Id"},"patient_id":{"type":"string","title":"Patient Id"},"nbs_sample_collected":{"type":"boolean","title":"Nbs Sample Collected","default":false},"nbs_collected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Nbs Collected At"},"cchd_screening_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cchd Screening Passed"},"hearing_screening_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hearing Screening Passed"},"hepatitis_b_vaccine_given":{"type":"boolean","title":"Hepatitis B Vaccine Given","default":false},"vitamin_k_given":{"type":"boolean","title":"Vitamin K Given","default":false},"eye_prophylaxis_given":{"type":"boolean","title":"Eye Prophylaxis Given","default":false},"safe_sleep_education_given":{"type":"boolean","title":"Safe Sleep Education Given","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["delivery_id","patient_id"],"title":"NeonatalScreening"},"NewRxResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"message_type":{"type":"string","title":"Message Type","default":"NewRx"},"patient_id":{"type":"string","title":"Patient Id"},"pharmacy_ncpdp_id":{"type":"string","title":"Pharmacy Ncpdp Id"},"fhir_task_id":{"type":"string","title":"Fhir Task Id"},"status":{"type":"string","enum":["pending","sent","received","error","cancelled"],"title":"Status"}},"type":"object","required":["transmission_id","patient_id","pharmacy_ncpdp_id","fhir_task_id","status"],"title":"NewRxResponse","description":"Response from POST /eprescribing/{patient_id}/new-rx."},"NodeLabel":{"type":"string","enum":["Patient","Practitioner","Organization","Drug","Condition","Procedure"],"title":"NodeLabel"},"NoteFinalizeRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"draft_text":{"type":"string","title":"Draft Text"}},"type":"object","required":["patient_id","draft_text"],"title":"NoteFinalizeRequest"},"NoteSections":{"properties":{"subjective":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subjective"},"objective":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective"},"assessment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assessment"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"history":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"History"},"physical_exam":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Physical Exam"},"review_of_systems":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Of Systems"},"medications":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medications"},"allergies":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allergies"},"labs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Labs"},"imaging":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imaging"},"free_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Free Text"}},"type":"object","title":"NoteSections","description":"Structured template sections for a clinical note."},"NoteStatus":{"type":"string","enum":["draft","signed"],"title":"NoteStatus"},"NotifyRequest":{"properties":{"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"type":"string","title":"Resource Id"},"event_type":{"type":"string","title":"Event Type","description":"FHIR event type: create | update | delete","default":"create"},"resource":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Resource"}},"type":"object","required":["resource_type","resource_id"],"title":"NotifyRequest"},"NumeratorEventIn":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"measure_id":{"type":"string","title":"Measure Id","description":"eCQM measure canonical URL or CMS identifier"},"measure_display":{"type":"string","title":"Measure Display"},"period_start":{"type":"string","title":"Period Start","description":"Measurement period start ISO 8601 date"},"period_end":{"type":"string","title":"Period End","description":"Measurement period end ISO 8601 date"},"numerator_met":{"type":"boolean","title":"Numerator Met","default":true},"denominator_met":{"type":"boolean","title":"Denominator Met","default":true},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","measure_id","measure_display","period_start","period_end"],"title":"NumeratorEventIn"},"NumeratorEventOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"measure_id":{"type":"string","title":"Measure Id"},"measure_display":{"type":"string","title":"Measure Display"},"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"},"numerator_met":{"type":"boolean","title":"Numerator Met"},"denominator_met":{"type":"boolean","title":"Denominator Met"},"recorded_at":{"type":"string","title":"Recorded At"}},"type":"object","required":["id","patient_id","measure_id","measure_display","period_start","period_end","numerator_met","denominator_met","recorded_at"],"title":"NumeratorEventOut"},"OASISRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"assessment_type":{"type":"string","title":"Assessment Type","default":"start_of_care"}},"type":"object","required":["patient_id"],"title":"OASISRequest"},"OIDCCallbackRequest":{"properties":{"state":{"type":"string","title":"State"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"id_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id Token"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["state"],"title":"OIDCCallbackRequest"},"ONCClassification":{"type":"string","enum":["none","cds","dsi","ambient"],"title":"ONCClassification"},"OSHAIncidentReport":{"properties":{"incident_id":{"type":"string","title":"Incident Id"},"employee_id":{"type":"string","title":"Employee Id"},"incident_date":{"type":"string","title":"Incident Date"},"incident_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incident Time"},"location":{"type":"string","title":"Location"},"injury_type":{"$ref":"#/components/schemas/InjuryType"},"description":{"type":"string","title":"Description"},"days_away_from_work":{"type":"integer","title":"Days Away From Work","default":0},"days_restricted":{"type":"integer","title":"Days Restricted","default":0},"recordable":{"type":"boolean","title":"Recordable","default":true},"reportable_to_osha":{"type":"boolean","title":"Reportable To Osha","default":false},"osha_300_case_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Osha 300 Case No"},"supervisor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supervisor Id"},"reported_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reported By"}},"type":"object","required":["employee_id","incident_date","location","injury_type","description"],"title":"OSHAIncidentReport"},"OUDRiskRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"pdmp_records":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Pdmp Records"},"opioid_risk_tool_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Opioid Risk Tool Score"}},"type":"object","required":["patient_id"],"title":"OUDRiskRequest"},"ObservationSummary":{"properties":{"id":{"type":"string","title":"Id"},"loinc_code":{"type":"string","title":"Loinc Code"},"display":{"type":"string","title":"Display"},"value":{"type":"string","title":"Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"effective_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Date"},"interpretation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interpretation"}},"type":"object","required":["id","loinc_code","display","value"],"title":"ObservationSummary"},"OpenAudioSessionRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"capture_mode":{"$ref":"#/components/schemas/CaptureMode","default":"hot_mic"}},"type":"object","required":["patient_id"],"title":"OpenAudioSessionRequest"},"OpenCallRequest":{"properties":{"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"caller_name":{"type":"string","title":"Caller Name","default":""},"caller_phone":{"type":"string","title":"Caller Phone","default":""}},"type":"object","title":"OpenCallRequest"},"OpenSessionRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"}},"type":"object","required":["patient_id"],"title":"OpenSessionRequest"},"OrderHistoryResponse":{"properties":{"resource_type":{"type":"string","title":"Resource Type"},"order_id":{"type":"string","title":"Order Id"},"current_status":{"type":"string","title":"Current Status"},"history":{"items":{"$ref":"#/components/schemas/OrderStatusEvent"},"type":"array","title":"History"}},"type":"object","required":["resource_type","order_id","current_status","history"],"title":"OrderHistoryResponse"},"OrderItem":{"properties":{"order_type":{"type":"string","title":"Order Type","description":"'medication'|'lab'|'imaging'|'consult'|'nursing'|'diet'"},"code":{"type":"string","title":"Code","description":"SNOMED, LOINC, or RxNorm code"},"display":{"type":"string","title":"Display"},"default_selected":{"type":"boolean","title":"Default Selected","default":true},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition","description":"Optional conditional logic expression (e.g., 'if eGFR < 60')"}},"type":"object","required":["order_type","code","display"],"title":"OrderItem"},"OrderSafetyCheckRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"medication_code":{"type":"string","title":"Medication Code","description":"RxNorm code of proposed medication"},"medication_display":{"type":"string","title":"Medication Display","description":"Human-readable medication name"}},"type":"object","required":["patient_id","medication_code","medication_display"],"title":"OrderSafetyCheckRequest","description":"Run all safety checks for a proposed medication at order-entry time."},"OrderSafetyCheckResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"medication_code":{"type":"string","title":"Medication Code"},"medication_display":{"type":"string","title":"Medication Display"},"interaction_alerts":{"items":{"$ref":"#/components/schemas/InteractionAlert"},"type":"array","title":"Interaction Alerts"},"duplicate_therapy_alerts":{"items":{"$ref":"#/components/schemas/DuplicateTherapyAlert"},"type":"array","title":"Duplicate Therapy Alerts"},"dose_range_alerts":{"items":{"$ref":"#/components/schemas/DoseRangeAlert"},"type":"array","title":"Dose Range Alerts"},"total_alerts":{"type":"integer","title":"Total Alerts"},"has_blocking_alerts":{"type":"boolean","title":"Has Blocking Alerts"}},"type":"object","required":["patient_id","medication_code","medication_display","interaction_alerts","duplicate_therapy_alerts","dose_range_alerts","total_alerts","has_blocking_alerts"],"title":"OrderSafetyCheckResponse"},"OrderSetCategory":{"type":"string","enum":["admission","discharge","procedure","medication","diagnostic","preventive_care","emergency","other"],"title":"OrderSetCategory"},"OrderSetUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"indication":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indication"},"orders":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrderItem"},"type":"array"},{"type":"null"}],"title":"Orders"},"evidence_references":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Evidence References"},"bump":{"$ref":"#/components/schemas/BumpType","description":"Which semver segment to increment","default":"patch"},"change_summary":{"type":"string","title":"Change Summary","description":"Human-readable summary of what changed"}},"type":"object","required":["change_summary"],"title":"OrderSetUpdateRequest"},"OrderStatusEvent":{"properties":{"event_time":{"type":"string","title":"Event Time"},"from_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Status"},"to_status":{"type":"string","title":"To Status"},"actor":{"type":"string","title":"Actor"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["event_time","from_status","to_status","actor"],"title":"OrderStatusEvent"},"OrganizationCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"npi":{"type":"string","title":"Npi","default":""},"phone":{"type":"string","title":"Phone","default":""},"email":{"type":"string","title":"Email","default":""},"address":{"anyOf":[{"$ref":"#/components/schemas/app__serving__directory__AddressInput"},{"type":"null"}]},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["name"],"title":"OrganizationCreateRequest"},"OutOfPocketInfo":{"properties":{"individual_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Individual Total"},"individual_remaining":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Individual Remaining"},"family_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Family Total"},"family_remaining":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Family Remaining"},"network":{"$ref":"#/components/schemas/BenefitNetwork","default":"unknown"}},"type":"object","title":"OutOfPocketInfo"},"OutbreakInvestigation":{"properties":{"outbreak_id":{"type":"string","title":"Outbreak Id"},"pathogen":{"type":"string","title":"Pathogen"},"location_units":{"items":{"type":"string"},"type":"array","title":"Location Units"},"case_ids":{"items":{"type":"string"},"type":"array","title":"Case Ids"},"status":{"$ref":"#/components/schemas/OutbreakStatus","default":"under_investigation"},"opened_dt":{"type":"string","format":"date-time","title":"Opened Dt"},"closed_dt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed Dt"},"control_measures":{"items":{"type":"string"},"type":"array","title":"Control Measures"},"reported_to_public_health":{"type":"boolean","title":"Reported To Public Health","default":false},"public_health_report_dt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Public Health Report Dt"},"lead_icp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Icp"},"case_count":{"type":"integer","title":"Case Count","default":0}},"type":"object","required":["pathogen","location_units"],"title":"OutbreakInvestigation"},"OutbreakStatus":{"type":"string","enum":["under_investigation","confirmed","contained","resolved"],"title":"OutbreakStatus"},"OutreachChannel":{"type":"string","enum":["portal_message","sms","email","phone"],"title":"OutreachChannel"},"OutreachResponseRequest":{"properties":{"response":{"type":"string","title":"Response"}},"type":"object","required":["response"],"title":"OutreachResponseRequest"},"OutreachType":{"type":"string","enum":["appointment_reminder","gap_in_care","preventive_care","chronic_disease_management","care_plan_update"],"title":"OutreachType"},"OverrideRequest":{"properties":{"issue_id":{"type":"string","title":"Issue Id","description":"Alert issue_id returned by /interactions/check"},"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"medication_code":{"type":"string","title":"Medication Code","description":"RxNorm code of proposed medication"},"medication_display":{"type":"string","title":"Medication Display","description":"Human-readable medication name","default":""},"reason":{"type":"string","minLength":5,"title":"Reason","description":"Clinical reason for overriding the alert (auditable)"},"severity":{"$ref":"#/components/schemas/InteractionSeverity"},"category":{"type":"string","title":"Category"},"description":{"type":"string","title":"Description"}},"type":"object","required":["issue_id","patient_id","medication_code","reason","severity","category","description"],"title":"OverrideRequest"},"OverrideResponse":{"properties":{"issue_id":{"type":"string","title":"Issue Id"},"fhir_resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Resource Id"},"reason":{"type":"string","title":"Reason"},"overridden_by":{"type":"string","title":"Overridden By"},"overridden_at":{"type":"string","title":"Overridden At"}},"type":"object","required":["issue_id","fhir_resource_id","reason","overridden_by","overridden_at"],"title":"OverrideResponse"},"P2pAttributionRequest":{"properties":{"member_id":{"type":"string","title":"Member Id"},"requesting_payer_id":{"type":"string","title":"Requesting Payer Id"},"coverage_start":{"type":"string","title":"Coverage Start"},"coverage_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage End"},"consent_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Reference"}},"type":"object","required":["member_id","requesting_payer_id","coverage_start"],"title":"P2pAttributionRequest","description":"CMS Payer-to-Payer member attribution request."},"P2pAttributionResponse":{"properties":{"attribution_id":{"type":"string","title":"Attribution Id"},"status":{"type":"string","title":"Status"},"member_id":{"type":"string","title":"Member Id"},"attributed_at":{"type":"string","title":"Attributed At"}},"type":"object","required":["attribution_id","status","member_id","attributed_at"],"title":"P2pAttributionResponse"},"PACSAdapter":{"type":"string","enum":["sectra_ids7","fujifilm_synapse","intelerad","ambra_health","hyland_nilread"],"title":"PACSAdapter"},"PACSRouteRequest":{"properties":{"adapter":{"$ref":"#/components/schemas/PACSAdapter"},"host":{"type":"string","title":"Host"},"port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Port","default":11112},"ae_title":{"type":"string","title":"Ae Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["adapter","host","ae_title"],"title":"PACSRouteRequest"},"PACSRouteResponse":{"properties":{"id":{"type":"string","title":"Id"},"adapter":{"type":"string","title":"Adapter"},"host":{"type":"string","title":"Host"},"port":{"type":"integer","title":"Port"},"ae_title":{"type":"string","title":"Ae Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","adapter","host","port","ae_title","description","created_at"],"title":"PACSRouteResponse"},"PACSTransferRequest":{"properties":{"route_id":{"type":"string","title":"Route Id","description":"PACS route/adapter ID"},"study_instance_uid":{"type":"string","title":"Study Instance Uid"}},"type":"object","required":["route_id","study_instance_uid"],"title":"PACSTransferRequest"},"PACSTransferResponse":{"properties":{"transfer_id":{"type":"string","title":"Transfer Id"},"route_id":{"type":"string","title":"Route Id"},"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"adapter":{"type":"string","title":"Adapter"},"status":{"type":"string","title":"Status"},"initiated_at":{"type":"string","title":"Initiated At"}},"type":"object","required":["transfer_id","route_id","study_instance_uid","adapter","status","initiated_at"],"title":"PACSTransferResponse"},"PASRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"requesting_provider_npi":{"type":"string","title":"Requesting Provider Npi"},"payer_id":{"type":"string","title":"Payer Id"},"service_codes":{"items":{"type":"string"},"type":"array","title":"Service Codes"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"urgency":{"$ref":"#/components/schemas/PAUrgency","default":"routine"},"service_from_date":{"type":"string","title":"Service From Date"},"service_to_date":{"type":"string","title":"Service To Date"},"units_requested":{"type":"integer","minimum":1.0,"title":"Units Requested","default":1},"supporting_info_references":{"items":{"type":"string"},"type":"array","title":"Supporting Info References","description":"FHIR resource references"},"dtr_questionnaire_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dtr Questionnaire Response Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","encounter_id","requesting_provider_npi","payer_id","service_codes","diagnosis_codes","service_from_date","service_to_date"],"title":"PASRequest"},"PAStatus":{"type":"string","enum":["draft","submitted","pended","approved","denied","cancelled","partial"],"title":"PAStatus"},"PAStatusResponse":{"properties":{"pa_id":{"type":"string","title":"Pa Id"},"status":{"$ref":"#/components/schemas/PAStatus"},"payer_pa_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Pa Number"},"approved_units":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approved Units"},"approved_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved From"},"approved_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved To"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason"},"denial_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Detail"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["pa_id","status","payer_pa_number","approved_units","approved_from","approved_to","denial_reason","denial_detail","submitted_at","updated_at"],"title":"PAStatusResponse"},"PATListItem":{"properties":{"pat_id":{"type":"string","title":"Pat Id"},"token_prefix":{"type":"string","title":"Token Prefix"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"role":{"type":"string","title":"Role"},"created_at":{"type":"string","title":"Created At"},"expires_at":{"type":"string","title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoked At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"},"last_used_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used Ip"},"mfa_satisfied_at_mint":{"type":"boolean","title":"Mfa Satisfied At Mint"}},"type":"object","required":["pat_id","token_prefix","display_name","role","created_at","expires_at","revoked_at","last_used_at","last_used_ip","mfa_satisfied_at_mint"],"title":"PATListItem"},"PAUrgency":{"type":"string","enum":["routine","urgent","stat"],"title":"PAUrgency"},"PDExchange":{"properties":{"exchange_id":{"type":"string","title":"Exchange Id"},"patient_id":{"type":"string","title":"Patient Id"},"exchange_dt":{"type":"string","format":"date-time","title":"Exchange Dt"},"dwell_time_hours":{"type":"number","title":"Dwell Time Hours"},"fill_volume_ml":{"type":"number","title":"Fill Volume Ml"},"drain_volume_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Drain Volume Ml"},"dialysate_glucose_pct":{"type":"number","title":"Dialysate Glucose Pct"},"ultrafiltration_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ultrafiltration Ml"},"effluent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effluent Color"},"performed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Performed By"},"complications":{"items":{"type":"string"},"type":"array","title":"Complications"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","dwell_time_hours","fill_volume_ml","dialysate_glucose_pct"],"title":"PDExchange"},"PDMPProtocol":{"type":"string","enum":["NCPDP_SCRIPT","FHIR_R4","PMIX_ASAP","STATE_PROPRIETARY"],"title":"PDMPProtocol","description":"Protocol used for PDMP query — state-specific negotiation."},"PDMPQueryPurpose":{"type":"string","enum":["treatment","pharmacy","care_coordination","public_health"],"title":"PDMPQueryPurpose"},"PDMPState":{"type":"string","enum":["FL","NY","TX","CA","OTHER"],"title":"PDMPState","description":"Supported state PDMP adapters."},"PDMPStateConfig":{"properties":{"state_code":{"type":"string","maxLength":2,"minLength":2,"title":"State Code"},"hub_name":{"type":"string","title":"Hub Name"},"protocol":{"$ref":"#/components/schemas/PDMPProtocol"},"mandatory_query":{"type":"boolean","title":"Mandatory Query","description":"State requires query before prescribing Schedule II","default":false},"integration_active":{"type":"boolean","title":"Integration Active","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["state_code","hub_name","protocol"],"title":"PDMPStateConfig","description":"State-specific PDMP configuration."},"PHIIntakePayload":{"properties":{"allergies":{"items":{"$ref":"#/components/schemas/AllergyEntry"},"type":"array","title":"Allergies","description":"Allergies and intolerances reported by the patient"},"medications":{"items":{"$ref":"#/components/schemas/MedicationEntry-Output"},"type":"array","title":"Medications","description":"Current medications reported by the patient"},"social_history":{"items":{"$ref":"#/components/schemas/SocialHistoryEntry"},"type":"array","title":"Social History","description":"Social history items reported by the patient"},"family_history":{"items":{"$ref":"#/components/schemas/FamilyHistoryEntry"},"type":"array","title":"Family History","description":"Family health history items reported by the patient"},"additional_notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Additional Notes","description":"Free-text additional health information from the patient"}},"type":"object","title":"PHIIntakePayload","description":"Structured patient-submitted health information covering USCDI domains."},"PHISubmission":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"intake":{"$ref":"#/components/schemas/PHIIntakePayload"},"status":{"$ref":"#/components/schemas/SubmissionStatus","default":"pending"},"submitted_at":{"type":"string","title":"Submitted At"},"submitted_by_uid":{"type":"string","title":"Submitted By Uid"},"reviewed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed At"},"reviewed_by_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By Uid"},"provider_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Note"},"edited_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Content"}},"type":"object","required":["id","patient_id","intake","submitted_at","submitted_by_uid"],"title":"PHISubmission","description":"Stored PHI capture record — includes original submission and provider disposition."},"PTEventRecord":{"properties":{"survey_name":{"type":"string","title":"Survey Name","description":"CAP / ASHI PT survey name"},"analyte_loinc":{"type":"string","title":"Analyte Loinc"},"participant_result":{"type":"string","title":"Participant Result"},"graded_acceptable":{"type":"boolean","title":"Graded Acceptable"},"pt_date":{"type":"string","title":"Pt Date","description":"ISO date of PT event"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["survey_name","analyte_loinc","participant_result","graded_acceptable","pt_date"],"title":"PTEventRecord"},"Part2ConsentRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"consenting_party":{"type":"string","title":"Consenting Party","description":"Patient UID who is granting consent"},"disclosure_purpose":{"type":"string","title":"Disclosure Purpose","description":"Purpose of the authorized disclosure"},"authorized_recipients":{"items":{"type":"string"},"type":"array","title":"Authorized Recipients","description":"List of authorized recipient entities"},"expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiry Date","description":"Consent expiry date (None = revocable-at-will)"}},"type":"object","required":["patient_id","consenting_party","disclosure_purpose","authorized_recipients"],"title":"Part2ConsentRequest"},"Part2RecordRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"record_type":{"type":"string","title":"Record Type","description":"e.g. 'Encounter', 'MedicationRequest', 'Condition'"},"content_plaintext":{"type":"string","title":"Content Plaintext","description":"PHI content — will be encrypted at rest"},"treating_provider_id":{"type":"string","title":"Treating Provider Id"}},"type":"object","required":["patient_id","tenant_id","record_type","content_plaintext","treating_provider_id"],"title":"Part2RecordRequest"},"PasSubmitRequest":{"properties":{"claim_request_bundle":{"additionalProperties":true,"type":"object","title":"Claim Request Bundle","description":"FHIR Bundle containing Claim + supporting resources per PAS IG"}},"type":"object","required":["claim_request_bundle"],"title":"PasSubmitRequest","description":"Body for Da Vinci PAS prior auth submission."},"PasSubmitResponse":{"properties":{"transaction_id":{"type":"string","title":"Transaction Id"},"status":{"type":"string","title":"Status","description":"pended | approved | denied | error"},"pended":{"type":"boolean","title":"Pended"},"claim_response_bundle":{"additionalProperties":true,"type":"object","title":"Claim Response Bundle"},"submitted_at":{"type":"string","title":"Submitted At"}},"type":"object","required":["transaction_id","status","pended","claim_response_bundle","submitted_at"],"title":"PasSubmitResponse"},"PasswordResetPolicy":{"properties":{"mechanism":{"type":"string","title":"Mechanism"},"single_use":{"type":"boolean","title":"Single Use"},"link_ttl_seconds":{"type":"integer","title":"Link Ttl Seconds"},"delivery_channel":{"type":"string","title":"Delivery Channel"}},"type":"object","required":["mechanism","single_use","link_ttl_seconds","delivery_channel"],"title":"PasswordResetPolicy"},"PasswordResetRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"PasswordResetRequest"},"PasswordResetResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"PasswordResetResponse"},"PatientAccessRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"date_range_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Range Start","description":"ISO 8601 date, inclusive"},"date_range_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Range End","description":"ISO 8601 date, inclusive"},"include_eob":{"type":"boolean","title":"Include Eob","description":"Include ExplanationOfBenefit resources","default":true},"include_coverage":{"type":"boolean","title":"Include Coverage","description":"Include Coverage resources","default":true}},"type":"object","required":["patient_id"],"title":"PatientAccessRequest","description":"Body for POST /payer/patient-access/$patient-access (CARIN BB)."},"PatientAccessResponse":{"properties":{"bundle_id":{"type":"string","title":"Bundle Id"},"resource_count":{"type":"integer","title":"Resource Count"},"patient_id":{"type":"string","title":"Patient Id"},"generated_at":{"type":"string","title":"Generated At"}},"type":"object","required":["bundle_id","resource_count","patient_id","generated_at"],"title":"PatientAccessResponse"},"PatientCreateRequest":{"properties":{"name":{"$ref":"#/components/schemas/NameInput","description":"Patient legal name"},"birth_date":{"type":"string","title":"Birth Date","description":"Date of birth (YYYY-MM-DD)"},"administrative_gender":{"type":"string","title":"Administrative Gender","description":"Administrative gender: male | female | other | unknown","default":"unknown"},"sex_assigned_at_birth":{"type":"string","title":"Sex Assigned At Birth","description":"Sex assigned at birth: M | F | OTH | UNK (HL7 v3 AdministrativeGender / NullFlavor)","default":""},"gender_identity":{"anyOf":[{"$ref":"#/components/schemas/CodingInput"},{"type":"null"}],"description":"Gender identity coded concept (SNOMED CT / local codes)"},"sexual_orientation":{"anyOf":[{"$ref":"#/components/schemas/CodingInput"},{"type":"null"}],"description":"Sexual orientation coded concept"},"race":{"items":{"$ref":"#/components/schemas/CodingInput"},"type":"array","title":"Race","description":"OMB race categories (multi-select)"},"race_text":{"type":"string","title":"Race Text","description":"Free-text race description","default":""},"ethnicity":{"items":{"$ref":"#/components/schemas/CodingInput"},"type":"array","title":"Ethnicity","description":"OMB ethnicity categories (multi-select)"},"ethnicity_text":{"type":"string","title":"Ethnicity Text","description":"Free-text ethnicity description","default":""},"preferred_language_code":{"type":"string","title":"Preferred Language Code","description":"BCP-47 language code, e.g. 'en', 'es'","default":""},"preferred_language_display":{"type":"string","title":"Preferred Language Display","description":"Language display name","default":""},"phones":{"items":{"type":"string"},"type":"array","title":"Phones","description":"Phone numbers"},"emails":{"items":{"type":"string"},"type":"array","title":"Emails","description":"Email addresses"},"address":{"anyOf":[{"$ref":"#/components/schemas/app__serving__demographics__AddressInput"},{"type":"null"}],"description":"Current address"},"sex_parameter_for_clinical_use":{"type":"string","title":"Sex Parameter For Clinical Use","description":"HTI-1 (F) Sex Parameter for Clinical Use: female | male | specified | unknown","default":""},"name_to_use":{"anyOf":[{"$ref":"#/components/schemas/NameInput"},{"type":"null"}],"description":"HTI-1 (G) Name the patient prefers to be called; rendered as Patient.name with use=usual"},"pronouns":{"anyOf":[{"$ref":"#/components/schemas/CodingInput"},{"type":"null"}],"description":"HTI-1 (H) Pronouns coded concept (LOINC or local value set)"},"managing_organization_id":{"type":"string","title":"Managing Organization Id","description":"FHIR Organization id for Patient.managingOrganization","default":""},"general_practitioner_id":{"type":"string","title":"General Practitioner Id","description":"FHIR Practitioner id for Patient.generalPractitioner","default":""}},"type":"object","required":["name","birth_date"],"title":"PatientCreateRequest","description":"Body for creating or fully replacing a Patient demographic record."},"PatientDemographics":{"properties":{"given_name":{"type":"string","title":"Given Name"},"family_name":{"type":"string","title":"Family Name"},"birth_date":{"type":"string","title":"Birth Date","description":"ISO 8601 date YYYY-MM-DD"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"address_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4","description":"Last 4 digits of SSN for matching"}},"type":"object","required":["given_name","family_name","birth_date"],"title":"PatientDemographics"},"PatientEducationRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"condition_codes":{"items":{"type":"string"},"type":"array","title":"Condition Codes"},"language":{"type":"string","title":"Language","default":"en"}},"type":"object","required":["patient_id"],"title":"PatientEducationRequest"},"PatientIdentifier":{"properties":{"system":{"type":"string","title":"System","description":"Identifier system URI or OID"},"value":{"type":"string","title":"Value"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"MRN, NPI, SSN, etc."}},"type":"object","required":["system","value"],"title":"PatientIdentifier"},"PatientNavigatorRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"navigation_topic":{"type":"string","title":"Navigation Topic"}},"type":"object","required":["patient_id","navigation_topic"],"title":"PatientNavigatorRequest"},"PatientOutreachRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"outreach_reason":{"type":"string","title":"Outreach Reason"},"channel":{"type":"string","title":"Channel","default":"secure_message"}},"type":"object","required":["patient_id","outreach_reason"],"title":"PatientOutreachRequest"},"PatientResponse":{"properties":{"id":{"type":"string","title":"Id"},"family_name":{"type":"string","title":"Family Name"},"given_names":{"items":{"type":"string"},"type":"array","title":"Given Names"},"birth_date":{"type":"string","title":"Birth Date"},"administrative_gender":{"type":"string","title":"Administrative Gender"},"sex_assigned_at_birth":{"type":"string","title":"Sex Assigned At Birth"},"gender_identity":{"anyOf":[{"$ref":"#/components/schemas/CodingOutput"},{"type":"null"}]},"sexual_orientation":{"anyOf":[{"$ref":"#/components/schemas/CodingOutput"},{"type":"null"}]},"race":{"items":{"$ref":"#/components/schemas/CodingOutput"},"type":"array","title":"Race"},"race_text":{"type":"string","title":"Race Text"},"ethnicity":{"items":{"$ref":"#/components/schemas/CodingOutput"},"type":"array","title":"Ethnicity"},"ethnicity_text":{"type":"string","title":"Ethnicity Text"},"preferred_language_code":{"type":"string","title":"Preferred Language Code"},"preferred_language_display":{"type":"string","title":"Preferred Language Display"},"phones":{"items":{"type":"string"},"type":"array","title":"Phones"},"emails":{"items":{"type":"string"},"type":"array","title":"Emails"},"address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Address"},"sex_parameter_for_clinical_use":{"type":"string","title":"Sex Parameter For Clinical Use","default":""},"name_to_use_family":{"type":"string","title":"Name To Use Family","default":""},"name_to_use_given":{"items":{"type":"string"},"type":"array","title":"Name To Use Given"},"pronouns":{"anyOf":[{"$ref":"#/components/schemas/CodingOutput"},{"type":"null"}]},"managing_organization_id":{"type":"string","title":"Managing Organization Id","default":""},"managing_organization_name":{"type":"string","title":"Managing Organization Name","default":""},"general_practitioner_id":{"type":"string","title":"General Practitioner Id","default":""},"general_practitioner_name":{"type":"string","title":"General Practitioner Name","default":""}},"type":"object","required":["id","family_name","given_names","birth_date","administrative_gender","sex_assigned_at_birth","gender_identity","sexual_orientation","race","race_text","ethnicity","ethnicity_text","preferred_language_code","preferred_language_display","phones","emails","address"],"title":"PatientResponse","description":"Flattened view of a FHIR Patient returned to the caller."},"PatientRetrieveHit":{"properties":{"point_id":{"type":"string","title":"Point Id"},"score":{"type":"number","title":"Score"},"citation":{"$ref":"#/components/schemas/FhirCitation"},"snippet":{"type":"string","title":"Snippet"}},"type":"object","required":["point_id","score","citation","snippet"],"title":"PatientRetrieveHit"},"PatientRetrieveRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"query_vector":{"items":{"type":"number"},"type":"array","title":"Query Vector","description":"Embedding of the clinical query"},"top_k":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Top K","default":5},"score_threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Score Threshold","default":0.7},"resource_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Resource Types","description":"Restrict to specific FHIR resource types"}},"type":"object","required":["patient_id","query_vector"],"title":"PatientRetrieveRequest"},"PatientRetrieveResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"hits":{"items":{"$ref":"#/components/schemas/PatientRetrieveHit"},"type":"array","title":"Hits"},"total_searched":{"type":"integer","title":"Total Searched"}},"type":"object","required":["patient_id","hits","total_searched"],"title":"PatientRetrieveResponse"},"PatientStratifierRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"Patient identifier"},"birth_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Birth Date","description":"Birth date (YYYY-MM-DD) — used to derive age band"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex","description":"Administrative sex (M / F / other / unknown)"},"race":{"items":{"type":"string"},"type":"array","title":"Race","description":"OMB race category code(s)"},"ethnicity":{"items":{"type":"string"},"type":"array","title":"Ethnicity","description":"OMB ethnicity code(s)"},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer","description":"Payer code (e.g. Medicare, Medicaid, Commercial)"},"practice_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Site","description":"Practice site identifier"},"provider_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Npi","description":"Provider National Provider Identifier used for CQM filtering"},"provider_tin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Tin","description":"Provider Taxpayer Identification Number used for CQM filtering"},"provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Type","description":"Provider taxonomy code used for CQM filtering"},"practice_site_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Site Address","description":"Practice site address used for provider-location filtering"},"problem_codes":{"items":{"type":"string"},"type":"array","title":"Problem Codes","description":"Active problem-list entry codes (SNOMED CT or ICD-10-CM) for the patient. Used by the (c)(4)(v) problem-list filter to narrow CQM results to a clinical cohort."}},"type":"object","required":["patient_id"],"title":"PatientStratifierRequest","description":"Register or update demographic stratifiers for a patient."},"PatientSummaryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"agent_code":{"type":"string","title":"Agent Code"},"session_id":{"type":"string","title":"Session Id"},"agent_version":{"type":"string","title":"Agent Version"},"summary_text":{"type":"string","title":"Summary Text","description":"Narrative summary text generated by the summarization agent"},"content_type":{"type":"string","title":"Content Type","description":"MIME type of summary_text","default":"text/plain"}},"type":"object","required":["patient_id","agent_code","session_id","agent_version","summary_text"],"title":"PatientSummaryRequest"},"PatientSummaryResponse":{"properties":{"document_reference_id":{"type":"string","title":"Document Reference Id"},"patient_id":{"type":"string","title":"Patient Id"},"superseded_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Superseded Id"},"fhir_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Version Id"}},"type":"object","required":["document_reference_id","patient_id","superseded_id","fhir_version_id"],"title":"PatientSummaryResponse"},"PayerContractCreate":{"properties":{"payer_id":{"type":"string","title":"Payer Id"},"payer_name":{"type":"string","title":"Payer Name"},"contract_type":{"$ref":"#/components/schemas/ContractType"},"effective_date":{"type":"string","title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Date"},"fee_schedule":{"additionalProperties":{"type":"number"},"type":"object","title":"Fee Schedule","description":"CPT → allowed amount"},"carve_outs":{"items":{"type":"string"},"type":"array","title":"Carve Outs","description":"Excluded procedure codes"},"risk_corridors":{"additionalProperties":true,"type":"object","title":"Risk Corridors"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["payer_id","payer_name","contract_type","effective_date"],"title":"PayerContractCreate"},"PayerContractResponse":{"properties":{"contract_id":{"type":"string","title":"Contract Id"},"payer_id":{"type":"string","title":"Payer Id"},"payer_name":{"type":"string","title":"Payer Name"},"contract_type":{"$ref":"#/components/schemas/ContractType"},"effective_date":{"type":"string","title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Date"},"fee_schedule":{"additionalProperties":{"type":"number"},"type":"object","title":"Fee Schedule"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["contract_id","payer_id","payer_name","contract_type","effective_date","termination_date","fee_schedule","created_at"],"title":"PayerContractResponse"},"PayerEditRequest":{"properties":{"payer_id":{"type":"string","title":"Payer Id"},"procedure_codes":{"items":{"type":"string"},"type":"array","title":"Procedure Codes"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"place_of_service":{"type":"string","title":"Place Of Service","default":"11"},"patient_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Patient Age"},"patient_sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Sex"},"encounter_date":{"type":"string","title":"Encounter Date"}},"type":"object","required":["payer_id","procedure_codes","diagnosis_codes","encounter_date"],"title":"PayerEditRequest"},"PayerEditResult":{"properties":{"edit_id":{"type":"string","title":"Edit Id"},"severity":{"$ref":"#/components/schemas/EditSeverity"},"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"suggested_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Action"}},"type":"object","required":["edit_id","severity","code","message","suggested_action"],"title":"PayerEditResult"},"PayerEnrollmentRecord":{"properties":{"npi":{"type":"string","title":"Npi"},"payer_id":{"type":"string","title":"Payer Id"},"payer_name":{"type":"string","title":"Payer Name"},"enrollment_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Enrollment Date"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"reappointment_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reappointment Due Date"},"status":{"type":"string","title":"Status","default":"pending"},"pecos_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pecos Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["npi","payer_id","payer_name"],"title":"PayerEnrollmentRecord"},"PayerIG":{"type":"string","enum":["carin_bb_v2","da_vinci_pdex_v2","da_vinci_hrex_v1","da_vinci_drug_formulary_v2","da_vinci_crd","da_vinci_dtr","da_vinci_pas","da_vinci_atr"],"title":"PayerIG"},"PayerIGConformance":{"properties":{"ig":{"$ref":"#/components/schemas/PayerIG"},"ig_version":{"type":"string","title":"Ig Version"},"conformance_level":{"type":"string","title":"Conformance Level"},"capability_statement_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capability Statement Url"},"last_validated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Validated"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["ig","ig_version","conformance_level"],"title":"PayerIGConformance"},"PaymentMethod":{"type":"string","enum":["credit_card","ach","check","cash","financial_assistance"],"title":"PaymentMethod"},"PaymentModel":{"type":"string","enum":["fee_for_service","PDPM","PDGM","FQHC_PPS","NHPCO","capitation","value_based"],"title":"PaymentModel"},"PaymentPlanCreateRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"statement_id":{"type":"string","title":"Statement Id"},"total_balance":{"type":"number","exclusiveMinimum":0.0,"title":"Total Balance"},"down_payment":{"type":"number","minimum":0.0,"title":"Down Payment","default":0.0},"installment_amount":{"type":"number","exclusiveMinimum":0.0,"title":"Installment Amount"},"payment_method":{"$ref":"#/components/schemas/PaymentMethod"},"start_date":{"type":"string","title":"Start Date","description":"YYYY-MM-DD first installment date"},"interest_rate_pct":{"type":"number","minimum":0.0,"title":"Interest Rate Pct","description":"Annual interest rate percentage","default":0.0}},"type":"object","required":["patient_id","statement_id","total_balance","installment_amount","payment_method","start_date"],"title":"PaymentPlanCreateRequest"},"PaymentPlanResponse":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"patient_id":{"type":"string","title":"Patient Id"},"statement_id":{"type":"string","title":"Statement Id"},"total_balance":{"type":"number","title":"Total Balance"},"remaining_balance":{"type":"number","title":"Remaining Balance"},"installment_amount":{"type":"number","title":"Installment Amount"},"payment_method":{"$ref":"#/components/schemas/PaymentMethod"},"start_date":{"type":"string","title":"Start Date"},"status":{"$ref":"#/components/schemas/PaymentPlanStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["plan_id","patient_id","statement_id","total_balance","remaining_balance","installment_amount","payment_method","start_date","status","created_at"],"title":"PaymentPlanResponse"},"PaymentPlanStatus":{"type":"string","enum":["active","completed","defaulted","cancelled"],"title":"PaymentPlanStatus"},"PaymentPostRequest":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"amount":{"type":"number","exclusiveMinimum":0.0,"title":"Amount"},"payment_method":{"$ref":"#/components/schemas/PaymentMethod"},"payment_date":{"type":"string","title":"Payment Date"},"reference_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Number"}},"type":"object","required":["plan_id","amount","payment_method","payment_date"],"title":"PaymentPostRequest"},"PdexConsentRecord":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"Consent"},"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"scope":{"additionalProperties":true,"type":"object","title":"Scope"},"category":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Category"},"patient":{"additionalProperties":true,"type":"object","title":"Patient"},"date_time":{"type":"string","title":"Date Time"},"performer":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Performer"},"organization":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Organization"},"source_attachment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Attachment"},"provision":{"additionalProperties":true,"type":"object","title":"Provision"}},"type":"object","required":["id","status","scope","category","patient","date_time","performer","organization","provision"],"title":"PdexConsentRecord","description":"PDex Consent resource for member-directed data sharing."},"PdexEverythingResponse":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"Bundle"},"id":{"type":"string","title":"Id"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"type":{"type":"string","title":"Type","default":"searchset"},"total":{"type":"integer","title":"Total"},"entry":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Entry"},"link":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Link"}},"type":"object","required":["id","meta","total","entry"],"title":"PdexEverythingResponse","description":"PDex $everything operation response — full member clinical + financial data."},"PdexMedicationDispenseEntry":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"medication_codeable_concept":{"additionalProperties":true,"type":"object","title":"Medication Codeable Concept"},"subject":{"additionalProperties":true,"type":"object","title":"Subject"},"performer":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Performer"},"when_handed_over":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"When Handed Over"},"quantity":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Quantity"},"days_supply":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Days Supply"},"dosage_instruction":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Dosage Instruction"}},"type":"object","required":["id","status","medication_codeable_concept","subject"],"title":"PdexMedicationDispenseEntry","description":"Single PDex MedicationDispense record."},"PdexMemberMatchRequest":{"properties":{"member_patient":{"additionalProperties":true,"type":"object","title":"Member Patient","description":"C4DIC Patient resource from old payer"},"coverage_to_match":{"additionalProperties":true,"type":"object","title":"Coverage To Match","description":"Coverage from old payer"},"coverage_to_link":{"additionalProperties":true,"type":"object","title":"Coverage To Link","description":"Coverage from new payer"},"consent":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Consent","description":"FHIR Consent resource"}},"type":"object","required":["member_patient","coverage_to_match","coverage_to_link"],"title":"PdexMemberMatchRequest","description":"Da Vinci PDex $member-match operation parameters."},"PdexMemberMatchResponse":{"properties":{"resource_type":{"type":"string","title":"Resource Type","default":"Parameters"},"id":{"type":"string","title":"Id"},"parameter":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Parameter"},"matched":{"type":"boolean","title":"Matched"},"member_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Member Identifier"},"coverage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Id"}},"type":"object","required":["id","parameter","matched"],"title":"PdexMemberMatchResponse","description":"PDex $member-match response with matched member identity."},"PdexMemberResponse":{"properties":{"member_id":{"type":"string","title":"Member Id"},"bundle_id":{"type":"string","title":"Bundle Id"},"resource_count":{"type":"integer","title":"Resource Count"},"coverage_periods":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Coverage Periods"},"generated_at":{"type":"string","title":"Generated At"}},"type":"object","required":["member_id","bundle_id","resource_count","coverage_periods","generated_at"],"title":"PdexMemberResponse"},"PediatricAccessCheckRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"patient_dob":{"type":"string","format":"date","title":"Patient Dob"},"requester_id":{"type":"string","title":"Requester Id"},"requester_relationship":{"type":"string","title":"Requester Relationship","description":"'self', 'parent', 'guardian', 'clinician', 'law_enforcement'"},"resource_category":{"$ref":"#/components/schemas/SensitivityCode"}},"type":"object","required":["patient_id","patient_dob","requester_id","requester_relationship","resource_category"],"title":"PediatricAccessCheckRequest"},"PediatricGrowthRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"chart_standard":{"type":"string","title":"Chart Standard","default":"CDC"},"include_bmi":{"type":"boolean","title":"Include Bmi","default":true}},"type":"object","required":["patient_id"],"title":"PediatricGrowthRequest"},"PerioChart":{"properties":{"chart_id":{"type":"string","title":"Chart Id"},"patient_id":{"type":"string","title":"Patient Id"},"exam_date":{"type":"string","title":"Exam Date"},"pocket_depths":{"additionalProperties":{"items":{"type":"integer"},"type":"array"},"type":"object","title":"Pocket Depths"},"bleeding_on_probing":{"additionalProperties":{"items":{"type":"boolean"},"type":"array"},"type":"object","title":"Bleeding On Probing"},"recession_mm":{"additionalProperties":{"items":{"type":"integer"},"type":"array"},"type":"object","title":"Recession Mm"},"furcation":{"additionalProperties":{"type":"string"},"type":"object","title":"Furcation"},"overall_status":{"$ref":"#/components/schemas/PerioStatus","default":"healthy"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"}},"type":"object","required":["patient_id","exam_date"],"title":"PerioChart"},"PerioStatus":{"type":"string","enum":["healthy","gingivitis","mild_periodontitis","moderate_periodontitis","severe_periodontitis"],"title":"PerioStatus"},"PharmacyInfo":{"properties":{"ncpdp_id":{"type":"string","title":"Ncpdp Id","description":"NCPDP Provider ID (7-digit pharmacy identifier)"},"name":{"type":"string","title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","required":["ncpdp_id","name"],"title":"PharmacyInfo","description":"Pharmacy routing information."},"PhiClassification":{"type":"string","enum":["NO_PHI","PHI_READ","PHI_WRITE"],"title":"PhiClassification"},"PlanInfo":{"properties":{"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Id"},"group_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Number"},"subscriber_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriber Id"},"plan_begin_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Plan Begin Date"},"plan_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Plan End Date"}},"type":"object","title":"PlanInfo"},"PointOut":{"properties":{"point_id":{"type":"string","title":"Point Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["point_id","payload"],"title":"PointOut"},"PollResponse":{"properties":{"account":{"type":"string","title":"Account"},"fetched":{"type":"integer","title":"Fetched"},"documents_extracted":{"type":"integer","title":"Documents Extracted"},"documents_submitted":{"type":"integer","title":"Documents Submitted"},"mdns_sent":{"type":"integer","title":"Mdns Sent"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["account","fetched","documents_extracted","documents_submitted","mdns_sent","errors"],"title":"PollResponse"},"PolyglotFormat":{"type":"string","enum":["fhir-r4-json","fhir-r4-xml","hl7-v2","x12-837","x12-835","x12-270-271","ccda-xml","ncpdp-script"],"title":"PolyglotFormat","description":"Wire formats accepted by the polyglot ingestion pipeline."},"PolyglotIngestRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"format":{"$ref":"#/components/schemas/PolyglotFormat"},"payload":{"type":"string","title":"Payload","description":"Base64-encoded or raw message content"},"source_system":{"type":"string","title":"Source System"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"},"priority":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Priority","description":"1=highest, 10=lowest","default":5},"target_topics":{"items":{"type":"string"},"type":"array","title":"Target Topics","description":"Kafka topic overrides; auto-routed when empty"},"dedup_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dedup Key","description":"Client-supplied idempotency key"}},"type":"object","required":["tenant_id","format","payload","source_system"],"title":"PolyglotIngestRequest","description":"Polyglot data plane ingestion request for scale workloads."},"PolyglotIngestResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"state":{"$ref":"#/components/schemas/IngestJobState"},"enqueued_at":{"type":"string","title":"Enqueued At"},"estimated_records":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Records"},"kafka_offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Kafka Offset"},"iceberg_snapshot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iceberg Snapshot Id"},"dedup_hit":{"type":"boolean","title":"Dedup Hit","default":false}},"type":"object","required":["job_id","state","enqueued_at"],"title":"PolyglotIngestResponse","description":"Polyglot ingest acknowledgement."},"PolyglotJobStatus":{"properties":{"job_id":{"type":"string","title":"Job Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"state":{"$ref":"#/components/schemas/IngestJobState"},"format":{"$ref":"#/components/schemas/PolyglotFormat"},"source_system":{"type":"string","title":"Source System"},"enqueued_at":{"type":"string","title":"Enqueued At"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"records_total":{"type":"integer","title":"Records Total"},"records_success":{"type":"integer","title":"Records Success"},"records_failed":{"type":"integer","title":"Records Failed"},"error_summary":{"items":{"type":"string"},"type":"array","title":"Error Summary"},"iceberg_table":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iceberg Table"},"kafka_lag_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Kafka Lag Ms"}},"type":"object","required":["job_id","tenant_id","state","format","source_system","enqueued_at","records_total","records_success","records_failed"],"title":"PolyglotJobStatus","description":"Polyglot ingestion job status."},"PolypharmacyReview":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"review_date":{"type":"string","format":"date","title":"Review Date"},"total_medications":{"type":"integer","title":"Total Medications"},"beers_criteria_flags":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Beers Criteria Flags"},"stopp_flags":{"items":{"type":"string"},"type":"array","title":"Stopp Flags"},"start_recommendations":{"items":{"type":"string"},"type":"array","title":"Start Recommendations"},"medications_discontinued":{"items":{"type":"string"},"type":"array","title":"Medications Discontinued"},"medications_added":{"items":{"type":"string"},"type":"array","title":"Medications Added"},"pharmacist_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pharmacist Id"},"provider_id":{"type":"string","title":"Provider Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","review_date","total_medications","provider_id"],"title":"PolypharmacyReview"},"PopulationHealthRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"measure_set":{"items":{"type":"string"},"type":"array","title":"Measure Set"}},"type":"object","required":["patient_id"],"title":"PopulationHealthRequest"},"PopulationResult":{"properties":{"population_code":{"type":"string","title":"Population Code"},"count":{"type":"integer","title":"Count"},"subjects":{"items":{"type":"string"},"type":"array","title":"Subjects"}},"type":"object","required":["population_code","count"],"title":"PopulationResult"},"PostDischargeRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"days_post_discharge":{"type":"integer","title":"Days Post Discharge","default":3}},"type":"object","required":["patient_id"],"title":"PostDischargeRequest"},"PostpartumAssessment":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"patient_id":{"type":"string","title":"Patient Id"},"delivery_id":{"type":"string","title":"Delivery Id"},"assessed_at":{"type":"string","format":"date-time","title":"Assessed At"},"fundal_height_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fundal Height Cm"},"lochia_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lochia Description"},"perineum_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Perineum Status"},"pain_score":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Pain Score"},"breastfeeding_initiated":{"type":"boolean","title":"Breastfeeding Initiated","default":false},"postpartum_status":{"$ref":"#/components/schemas/PostpartumStatus","default":"stable"},"edinburgh_score":{"anyOf":[{"type":"integer","maximum":30.0,"minimum":0.0},{"type":"null"}],"title":"Edinburgh Score"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"}},"type":"object","required":["patient_id","delivery_id"],"title":"PostpartumAssessment"},"PostpartumStatus":{"type":"string","enum":["stable","needs_assessment","escalated","discharged"],"title":"PostpartumStatus"},"PractitionerCreateRequest":{"properties":{"family_name":{"type":"string","title":"Family Name"},"given_names":{"items":{"type":"string"},"type":"array","title":"Given Names"},"npi":{"type":"string","title":"Npi","default":""},"phone":{"type":"string","title":"Phone","default":""},"email":{"type":"string","title":"Email","default":""},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["family_name"],"title":"PractitionerCreateRequest"},"PractitionerRequest":{"properties":{"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi","description":"National Provider Identifier."},"name":{"$ref":"#/components/schemas/HumanName"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender","description":"FHIR gender: male | female | other | unknown"},"specialty":{"items":{"type":"string"},"type":"array","title":"Specialty","description":"SNOMED specialty codes (display strings also accepted)."},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["name"],"title":"PractitionerRequest","description":"Body for creating / updating a Practitioner profile."},"PractitionerRoleCreateRequest":{"properties":{"practitioner_id":{"type":"string","title":"Practitioner Id"},"organization_id":{"type":"string","title":"Organization Id"},"location_id":{"type":"string","title":"Location Id"},"specialty":{"type":"string","title":"Specialty","default":""},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["practitioner_id","organization_id","location_id"],"title":"PractitionerRoleCreateRequest"},"PrePlacementPhysical":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"employee_id":{"type":"string","title":"Employee Id"},"job_title":{"type":"string","title":"Job Title"},"exam_date":{"type":"string","title":"Exam Date"},"physically_capable":{"type":"boolean","title":"Physically Capable","default":true},"restrictions":{"items":{"type":"string"},"type":"array","title":"Restrictions"},"immunizations_reviewed":{"type":"boolean","title":"Immunizations Reviewed","default":false},"baseline_audiogram":{"type":"boolean","title":"Baseline Audiogram","default":false},"respirator_clearance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Respirator Clearance"},"examining_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Examining Provider"}},"type":"object","required":["employee_id","job_title","exam_date"],"title":"PrePlacementPhysical"},"PreferenceRequest":{"properties":{"threshold":{"$ref":"#/components/schemas/SeverityThreshold"}},"type":"object","required":["threshold"],"title":"PreferenceRequest"},"PreferenceResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"threshold":{"$ref":"#/components/schemas/SeverityThreshold"}},"type":"object","required":["uid","threshold"],"title":"PreferenceResponse"},"PriorAuthAgentRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"service_code":{"type":"string","title":"Service Code"},"payer_id":{"type":"string","title":"Payer Id"}},"type":"object","required":["patient_id","service_code","payer_id"],"title":"PriorAuthAgentRequest"},"PrivacyAdvisorRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"disclosure_scenario":{"type":"string","title":"Disclosure Scenario"},"jurisdiction":{"type":"string","title":"Jurisdiction","default":"US-federal"}},"type":"object","required":["patient_id","disclosure_scenario"],"title":"PrivacyAdvisorRequest"},"PrivacyRegime":{"type":"string","enum":["HIPAA","GDPR","PIPEDA","PHIPA","UK_GDPR","LGPD","APPI","PDPA","DPDPA","PRIVACY_ACT_AU"],"title":"PrivacyRegime"},"PrivilegingRequest":{"properties":{"npi":{"type":"string","title":"Npi"},"facility_id":{"type":"string","title":"Facility Id"},"requested_privileges":{"items":{"type":"string"},"type":"array","title":"Requested Privileges","description":"List of clinical privilege codes"},"provisional":{"type":"boolean","title":"Provisional","default":false},"supporting_documents":{"items":{"type":"string"},"type":"array","title":"Supporting Documents","description":"GCS URIs of supporting docs"},"peer_references":{"items":{"type":"string"},"type":"array","title":"Peer References","description":"NPI of peer references"}},"type":"object","required":["npi","facility_id","requested_privileges"],"title":"PrivilegingRequest"},"PrivilegingStatus":{"type":"string","enum":["requested","under_review","approved","provisionally_approved","denied","expired"],"title":"PrivilegingStatus"},"ProblemIn":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"code":{"type":"string","title":"Code","description":"SNOMED CT or ICD-10-CM code"},"system":{"type":"string","title":"System","description":"Code system URI","default":"http://snomed.info/sct"},"display":{"type":"string","title":"Display"},"clinical_status":{"type":"string","pattern":"^(active|inactive|resolved|entered-in-error)$","title":"Clinical Status","default":"active"},"onset_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Date","description":"ISO 8601 date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","code","display"],"title":"ProblemIn"},"ProblemListReconcileRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"encounter_diagnoses":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Encounter Diagnoses"}},"type":"object","required":["patient_id"],"title":"ProblemListReconcileRequest"},"ProblemOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"code":{"type":"string","title":"Code"},"system":{"type":"string","title":"System"},"display":{"type":"string","title":"Display"},"clinical_status":{"type":"string","title":"Clinical Status"},"onset_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Date"},"recorded_date":{"type":"string","title":"Recorded Date"}},"type":"object","required":["id","patient_id","code","system","display","clinical_status","onset_date","recorded_date"],"title":"ProblemOut"},"ProfileOverrideRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"module_overrides":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Module Overrides","description":"Enable/disable specific modules"},"billing_model_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Model Override"},"custom_note_templates":{"items":{"type":"string"},"type":"array","title":"Custom Note Templates"}},"type":"object","required":["tenant_id"],"title":"ProfileOverrideRequest"},"ProtocolDeviation":{"properties":{"deviation_id":{"type":"string","title":"Deviation Id"},"subject_id":{"type":"string","title":"Subject Id"},"protocol_id":{"type":"string","title":"Protocol Id"},"deviation_type":{"$ref":"#/components/schemas/DeviationType"},"description":{"type":"string","title":"Description"},"occurrence_date":{"type":"string","title":"Occurrence Date"},"discovered_date":{"type":"string","title":"Discovered Date"},"reported_to_irb":{"type":"boolean","title":"Reported To Irb","default":false},"corrective_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrective Action"},"reported_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reported By"}},"type":"object","required":["subject_id","protocol_id","deviation_type","description","occurrence_date","discovered_date"],"title":"ProtocolDeviation"},"ProviderCredentialProfile":{"properties":{"npi":{"type":"string","title":"Npi","description":"National Provider Identifier (10 digits)"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"dob":{"type":"string","format":"date","title":"Dob"},"ssn_last4":{"type":"string","maxLength":4,"minLength":4,"title":"Ssn Last4","description":"Last 4 SSN digits for identity matching"},"specialty_taxonomy":{"type":"string","title":"Specialty Taxonomy","description":"NUCC taxonomy code"},"degree":{"type":"string","title":"Degree","description":"MD, DO, NP, PA, RN, etc."},"dea_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dea Number"},"caqh_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caqh Provider Id"},"state_licenses":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"State Licenses","description":"[{state, license_number, expiry}]"},"malpractice_carrier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Malpractice Carrier"},"malpractice_policy_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Malpractice Policy Number"},"malpractice_expiry":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Malpractice Expiry"}},"type":"object","required":["npi","first_name","last_name","dob","ssn_last4","specialty_taxonomy","degree"],"title":"ProviderCredentialProfile"},"ProviderDirectoryEntry":{"properties":{"npi":{"type":"string","title":"Npi"},"name":{"type":"string","title":"Name"},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"accepting_new_patients":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepting New Patients"},"network_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Status"}},"type":"object","required":["npi","name"],"title":"ProviderDirectoryEntry"},"ProviderDirectoryResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/ProviderDirectoryEntry"},"type":"array","title":"Entries"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["entries","total","page","page_size"],"title":"ProviderDirectoryResponse"},"ProviderName":{"type":"string","enum":["anthropic","openai","google","on_prem"],"title":"ProviderName"},"ProviderRequest":{"properties":{"npi":{"type":"string","title":"Npi"},"given_name":{"type":"string","title":"Given Name"},"family_name":{"type":"string","title":"Family Name"},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"},"facility_ids":{"items":{"type":"string"},"type":"array","title":"Facility Ids"},"direct_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direct Address"}},"type":"object","required":["npi","given_name","family_name"],"title":"ProviderRequest"},"ProxyAccessScope":{"type":"string","enum":["read_all","read_non_confidential","caregiver_limited"],"title":"ProxyAccessScope"},"ProxyRelationshipType":{"type":"string","enum":["parent_guardian","legal_guardian","spouse_partner","adult_child","caregiver","other"],"title":"ProxyRelationshipType"},"PublishRequest":{"properties":{"effective_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Date","description":"ISO-8601 date; defaults to now"}},"type":"object","title":"PublishRequest"},"PublishVersionRequest":{"properties":{"version_tag":{"type":"string","title":"Version Tag"},"model_class":{"$ref":"#/components/schemas/ModelClass","default":"sonnet"},"system_prompt":{"type":"string","title":"System Prompt"},"contract":{"$ref":"#/components/schemas/AgentContractSchema"},"confidence_threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence Threshold","default":0.7},"escalation":{"$ref":"#/components/schemas/EscalationPolicy"},"governance":{"$ref":"#/components/schemas/GovernanceSettings"},"set_current":{"type":"boolean","title":"Set Current","default":true}},"type":"object","required":["version_tag","system_prompt"],"title":"PublishVersionRequest"},"PushToTalkRequest":{"properties":{"active":{"type":"boolean","title":"Active"}},"type":"object","required":["active"],"title":"PushToTalkRequest"},"QBPQueryRequest":{"properties":{"jurisdiction":{"type":"string","title":"Jurisdiction","description":"Jurisdiction code for the target IIS"},"query_tag":{"type":"string","title":"Query Tag","description":"Z34 = Request Complete History; Z44 = Request History and Forecast","default":"Z34"},"persist_results":{"type":"boolean","title":"Persist Results","description":"If true, import received immunization records as FHIR Immunization resources","default":true}},"type":"object","required":["jurisdiction"],"title":"QBPQueryRequest","description":"Body for POST /immunization-registries/{patient_id}/qbp."},"QBPQueryResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"patient_id":{"type":"string","title":"Patient Id"},"ack_code":{"type":"string","title":"Ack Code"},"query_response_status":{"type":"string","title":"Query Response Status"},"patient_matched":{"type":"boolean","title":"Patient Matched"},"immunizations":{"items":{"$ref":"#/components/schemas/ImmunizationRecord"},"type":"array","title":"Immunizations"},"forecasts":{"items":{"$ref":"#/components/schemas/ForecastRecord"},"type":"array","title":"Forecasts"},"fhir_immunization_ids":{"items":{"type":"string"},"type":"array","title":"Fhir Immunization Ids"}},"type":"object","required":["transmission_id","jurisdiction","patient_id","ack_code","query_response_status","patient_matched","immunizations","forecasts","fhir_immunization_ids"],"title":"QBPQueryResponse"},"QCLotRecord":{"properties":{"lot_number":{"type":"string","title":"Lot Number"},"analyte_loinc":{"type":"string","title":"Analyte Loinc"},"level":{"type":"string","title":"Level","description":"QC level, e.g. 'low', 'normal', 'high'"},"expected_mean":{"type":"number","title":"Expected Mean"},"expected_sd":{"type":"number","title":"Expected Sd"},"observed_value":{"type":"number","title":"Observed Value"},"in_control":{"type":"boolean","title":"In Control"},"instrument_id":{"type":"string","title":"Instrument Id"},"recorded_by":{"type":"string","title":"Recorded By"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["lot_number","analyte_loinc","level","expected_mean","expected_sd","observed_value","in_control","instrument_id","recorded_by"],"title":"QCLotRecord"},"QDMCategory":{"type":"string","enum":["Diagnosis","EncounterPerformed","LaboratoryTestResult","AssessmentPerformed","Symptom","InterventionPerformed","InterventionOrder","DeviceOrder","ProcedurePerformed","DiagnosticStudyPerformed","MedicationActive","PatientCharacteristicBirthdate","PatientCharacteristicSex","PatientCharacteristicRace","PatientCharacteristicEthnicity","PatientCharacteristicPayer","PatientCharacteristicExpired"],"title":"QDMCategory"},"QHINOutboundQueryRequest":{"properties":{"demographics":{"anyOf":[{"$ref":"#/components/schemas/PatientDemographics"},{"type":"null"}]},"identifiers":{"items":{"$ref":"#/components/schemas/PatientIdentifier"},"type":"array","title":"Identifiers"},"purpose_of_use":{"$ref":"#/components/schemas/app__serving__tefca_qhin__PurposeOfUse","default":"TREATMENT"},"requesting_provider_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requesting Provider Npi"},"requesting_organization_oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requesting Organization Oid"},"target_qhins":{"items":{"type":"string"},"type":"array","title":"Target Qhins","description":"QHIN IDs to query; empty = broadcast to all TEFCA-connected QHINs"},"document_types":{"items":{"type":"string"},"type":"array","title":"Document Types","description":"XDS classCode / LOINC document type codes; empty = all"}},"type":"object","title":"QHINOutboundQueryRequest","description":"Outbound TEFCA QHIN query by demographics and/or identifiers."},"QidoStudyResult":{"properties":{"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"accession_number":{"type":"string","title":"Accession Number"},"patient_id":{"type":"string","title":"Patient Id"},"patient_name":{"type":"string","title":"Patient Name"},"study_date":{"type":"string","title":"Study Date"},"modality":{"type":"string","title":"Modality"},"num_series":{"type":"integer","title":"Num Series"},"num_instances":{"type":"integer","title":"Num Instances"},"status":{"$ref":"#/components/schemas/StudyStatus"}},"type":"object","required":["study_instance_uid","accession_number","patient_id","patient_name","study_date","modality","num_series","num_instances","status"],"title":"QidoStudyResult"},"QualityMeasureRule":{"properties":{"measure_id":{"type":"string","title":"Measure Id"},"name":{"type":"string","title":"Name"},"category":{"$ref":"#/components/schemas/EventCategory"},"severity_threshold":{"$ref":"#/components/schemas/EventSeverity"},"window_days":{"type":"integer","title":"Window Days","description":"Rolling evaluation window in days","default":30},"alert_threshold":{"type":"integer","title":"Alert Threshold","description":"Event count that triggers an alert","default":3}},"type":"object","required":["measure_id","name","category","severity_threshold"],"title":"QualityMeasureRule"},"QueueProcessResponse":{"properties":{"processed":{"type":"integer","title":"Processed"},"delivered":{"type":"integer","title":"Delivered"},"failed":{"type":"integer","title":"Failed"},"permanently_failed":{"type":"integer","title":"Permanently Failed"}},"type":"object","required":["processed","delivered","failed","permanently_failed"],"title":"QueueProcessResponse"},"RCAEvidenceRequest":{"properties":{"evidence_type":{"type":"string","title":"Evidence Type","description":"e.g. timeline, interview, observation, document"},"description":{"type":"string","title":"Description"},"source":{"type":"string","title":"Source"},"collected_by_uid":{"type":"string","title":"Collected By Uid"}},"type":"object","required":["evidence_type","description","source","collected_by_uid"],"title":"RCAEvidenceRequest"},"RCAFindingsRequest":{"properties":{"contributing_factors":{"items":{"type":"string"},"type":"array","title":"Contributing Factors"},"root_causes":{"items":{"type":"string"},"type":"array","title":"Root Causes"},"system_failures":{"items":{"type":"string"},"type":"array","title":"System Failures"},"action_items":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Action Items","description":"[{action, owner_uid, due_date, priority}]"},"summary":{"type":"string","title":"Summary"}},"type":"object","required":["contributing_factors","root_causes","summary"],"title":"RCAFindingsRequest"},"RCAInitRequest":{"properties":{"event_id":{"type":"string","title":"Event Id"},"team_members":{"items":{"type":"string"},"type":"array","title":"Team Members","description":"UIDs of RCA team members"},"rca_lead_uid":{"type":"string","title":"Rca Lead Uid"},"target_completion_date":{"type":"string","format":"date","title":"Target Completion Date"}},"type":"object","required":["event_id","rca_lead_uid","target_completion_date"],"title":"RCAInitRequest"},"REMSEnrollment":{"properties":{"enrollment_id":{"type":"string","title":"Enrollment Id"},"patient_id":{"type":"string","title":"Patient Id"},"programme":{"$ref":"#/components/schemas/REMSProgramme"},"enrolled_at":{"type":"string","format":"date-time","title":"Enrolled At"},"prescriber_certified":{"type":"boolean","title":"Prescriber Certified","default":false},"pharmacy_certified":{"type":"boolean","title":"Pharmacy Certified","default":false},"patient_counselled":{"type":"boolean","title":"Patient Counselled","default":false},"next_verification_due":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Verification Due"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["patient_id","programme"],"title":"REMSEnrollment"},"REMSProgramme":{"type":"string","enum":["rems_connect","clozaril_rems","ipledge","tirf_rems","myorisck","other"],"title":"REMSProgramme"},"RPMDeviceType":{"type":"string","enum":["blood_pressure","glucose","weight_scale","pulse_oximeter","thermometer","peak_flow"],"title":"RPMDeviceType"},"RTPBQueryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"drug_name":{"type":"string","title":"Drug Name"},"rxnorm_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rxnorm Code"},"ndc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ndc"},"quantity":{"type":"number","title":"Quantity","default":30},"days_supply":{"type":"integer","title":"Days Supply","default":30}},"type":"object","required":["patient_id","drug_name"],"title":"RTPBQueryRequest"},"RWTMetric":{"properties":{"criterion_id":{"type":"string","title":"Criterion Id","description":"ONC criterion, e.g. '170.315(a)(1)'"},"metric_description":{"type":"string","title":"Metric Description"},"target_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Value"},"measurement_approach":{"type":"string","title":"Measurement Approach"}},"type":"object","required":["criterion_id","metric_description","measurement_approach"],"title":"RWTMetric"},"RWTPlanIn":{"properties":{"plan_year":{"type":"integer","maximum":2030.0,"minimum":2020.0,"title":"Plan Year"},"developer_name":{"type":"string","title":"Developer Name"},"product_name":{"type":"string","title":"Product Name"},"product_version":{"type":"string","title":"Product Version"},"certification_ids":{"items":{"type":"string"},"type":"array","title":"Certification Ids","description":"CHPL certification IDs covered"},"metrics":{"items":{"$ref":"#/components/schemas/RWTMetric"},"type":"array","title":"Metrics"},"testing_start_date":{"type":"string","title":"Testing Start Date"},"testing_end_date":{"type":"string","title":"Testing End Date"},"description":{"type":"string","title":"Description"}},"type":"object","required":["plan_year","developer_name","product_name","product_version","certification_ids","metrics","testing_start_date","testing_end_date","description"],"title":"RWTPlanIn"},"RWTPlanOut":{"properties":{"id":{"type":"string","title":"Id"},"plan_year":{"type":"integer","title":"Plan Year"},"developer_name":{"type":"string","title":"Developer Name"},"product_name":{"type":"string","title":"Product Name"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"metrics_count":{"type":"integer","title":"Metrics Count"}},"type":"object","required":["id","plan_year","developer_name","product_name","status","created_at","metrics_count"],"title":"RWTPlanOut"},"RWTResultIn":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"plan_year":{"type":"integer","title":"Plan Year"},"developer_name":{"type":"string","title":"Developer Name"},"product_name":{"type":"string","title":"Product Name"},"product_version":{"type":"string","title":"Product Version"},"metrics_results":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Metrics Results","description":"Per-metric actual values + analysis"},"summary":{"type":"string","title":"Summary"},"deficiencies_found":{"type":"boolean","title":"Deficiencies Found","default":false},"deficiency_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deficiency Description"},"corrective_action_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrective Action Plan"}},"type":"object","required":["plan_id","plan_year","developer_name","product_name","product_version","metrics_results","summary"],"title":"RWTResultIn"},"RWTResultOut":{"properties":{"id":{"type":"string","title":"Id"},"plan_id":{"type":"string","title":"Plan Id"},"plan_year":{"type":"integer","title":"Plan Year"},"product_name":{"type":"string","title":"Product Name"},"status":{"type":"string","title":"Status"},"submitted_at":{"type":"string","title":"Submitted At"},"deficiencies_found":{"type":"boolean","title":"Deficiencies Found"}},"type":"object","required":["id","plan_id","plan_year","product_name","status","submitted_at","deficiencies_found"],"title":"RWTResultOut"},"RadiologyReportRequest":{"properties":{"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"patient_id":{"type":"string","title":"Patient Id"},"radiologist_npi":{"type":"string","title":"Radiologist Npi"},"report_status":{"$ref":"#/components/schemas/ReportStatus"},"clinical_history":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinical History"},"technique":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technique"},"findings":{"type":"string","title":"Findings"},"impression":{"type":"string","title":"Impression"},"radlex_codes":{"items":{"type":"string"},"type":"array","title":"Radlex Codes"},"critical_finding":{"type":"boolean","title":"Critical Finding","default":false},"critical_finding_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Critical Finding Detail"}},"type":"object","required":["study_instance_uid","patient_id","radiologist_npi","report_status","findings","impression"],"title":"RadiologyReportRequest"},"RateLimitConfig":{"properties":{"requests_per_minute":{"type":"integer","minimum":0.0,"title":"Requests Per Minute","description":"0 = unlimited","default":0},"requests_per_hour":{"type":"integer","minimum":0.0,"title":"Requests Per Hour","default":0},"requests_per_day":{"type":"integer","minimum":0.0,"title":"Requests Per Day","default":0}},"type":"object","title":"RateLimitConfig"},"RateLimitTier":{"type":"string","enum":["sandbox","developer","production","enterprise"],"title":"RateLimitTier"},"ReadBackRequest":{"properties":{"order_type":{"type":"string","title":"Order Type"},"order_detail":{"type":"string","title":"Order Detail"},"voice_id":{"type":"string","title":"Voice Id","default":"en-US-neural-A"},"format":{"$ref":"#/components/schemas/TTSFormat","default":"mp3"}},"type":"object","required":["order_type","order_detail"],"title":"ReadBackRequest","description":"Request read-back for a high-risk order before clinician confirmation."},"ReadingLevel":{"type":"string","enum":["grade_6","grade_8","professional"],"title":"ReadingLevel"},"ReadmissionRiskRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"discharge_diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Discharge Diagnosis Codes"}},"type":"object","required":["patient_id"],"title":"ReadmissionRiskRequest"},"RecallAlert":{"properties":{"recall_id":{"type":"string","title":"Recall Id"},"recall_number":{"type":"string","title":"Recall Number"},"product_description":{"type":"string","title":"Product Description"},"reason":{"type":"string","title":"Reason"},"recall_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recall Class"},"status":{"$ref":"#/components/schemas/RecallStatus"},"initiated_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Initiated Date"},"affected_gtins":{"items":{"type":"string"},"type":"array","title":"Affected Gtins"},"affected_udis":{"items":{"type":"string"},"type":"array","title":"Affected Udis"},"affected_patients":{"items":{"type":"string"},"type":"array","title":"Affected Patients","description":"Patient IDs with implanted/dispensed device"}},"type":"object","required":["recall_id","recall_number","product_description","reason","status"],"title":"RecallAlert"},"RecallStatus":{"type":"string","enum":["open","completed","terminated"],"title":"RecallStatus"},"RecallSurveillanceResult":{"properties":{"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"total_open_recalls":{"type":"integer","title":"Total Open Recalls"},"patient_impacts":{"items":{"$ref":"#/components/schemas/RecallAlert"},"type":"array","title":"Patient Impacts"}},"type":"object","required":["checked_at","total_open_recalls","patient_impacts"],"title":"RecallSurveillanceResult"},"ReceiveConsultationRequest":{"properties":{"consultation_note":{"type":"string","title":"Consultation Note"},"summary":{"type":"string","title":"Summary","default":""}},"type":"object","required":["consultation_note"],"title":"ReceiveConsultationRequest"},"ReceiveResponse":{"properties":{"bundle_id":{"type":"string","title":"Bundle Id"},"resource_count":{"type":"integer","title":"Resource Count"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"confidentiality_code":{"type":"string","title":"Confidentiality Code","description":"HL7 HCS confidentiality code parsed from the inbound document (N=Normal, R=Restricted, V=VeryRestricted). ONC § 170.315(b)(8).","default":"N"},"confidentiality_display":{"type":"string","title":"Confidentiality Display","description":"Human-readable label for the confidentiality code.","default":"Normal"},"confidentiality_banner":{"type":"string","title":"Confidentiality Banner","description":"Plain-English banner to display to the receiving user, including re-disclosure guidance for sensitive documents.","default":""},"sharing_permission":{"type":"string","title":"Sharing Permission","description":"Downstream sharing constraint: permitted | requires_clinician | requires_admin. ONC § 170.315(b)(8) optional constraint.","default":"permitted"},"confidentiality_notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidentiality Notice","description":"DS4P re-disclosure prohibition narrative extracted from the inbound C-CDA's Privacy Notice section (LOINC 75308-9), if present. The receiver must surface this to the user. ONC § 170.315(b)(8)."}},"type":"object","required":["bundle_id","resource_count"],"title":"ReceiveResponse","description":"Response from POST /transitions/receive."},"ReconcileAction":{"type":"string","enum":["accept_incoming","keep_existing","merge","reject"],"title":"ReconcileAction"},"ReconcileCategory":{"type":"string","enum":["medications","allergies","problems"],"title":"ReconcileCategory"},"ReconcileDecision":{"properties":{"item_id":{"type":"string","title":"Item Id","description":"item_id from the DiffResponse"},"action":{"$ref":"#/components/schemas/ReconcileAction"},"reasoning":{"type":"string","title":"Reasoning","description":"Optional clinician note justifying the decision","default":""}},"type":"object","required":["item_id","action"],"title":"ReconcileDecision"},"ReconcileItem":{"properties":{"item_id":{"type":"string","title":"Item Id","description":"Opaque identifier for this diff item"},"category":{"$ref":"#/components/schemas/ReconcileCategory"},"reconcile_status":{"$ref":"#/components/schemas/ReconcileStatus"},"display":{"type":"string","title":"Display","description":"Human-readable label for the item"},"incoming":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Incoming","description":"FHIR resource from incoming document"},"existing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Existing","description":"FHIR resource from the store"}},"type":"object","required":["item_id","category","reconcile_status","display"],"title":"ReconcileItem"},"ReconcileStatus":{"type":"string","enum":["new","existing_only","duplicate","conflict"],"title":"ReconcileStatus"},"RecordCQMDataRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"measure_ids":{"items":{"$ref":"#/components/schemas/MeasureId"},"type":"array","title":"Measure Ids","description":"eCQMs this data element is relevant to"},"qdm_category":{"$ref":"#/components/schemas/QDMCategory","description":"QDM data element category"},"code_system":{"type":"string","title":"Code System","description":"Code system URI (LOINC, SNOMED, RxNorm…)"},"code":{"type":"string","title":"Code","description":"Code value within the code system"},"display":{"type":"string","title":"Display","description":"Human-readable display text"},"effective_date":{"type":"string","title":"Effective Date","description":"ISO-8601 date the event occurred or was recorded"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Result value (e.g. HbA1c numeric)"},"value_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Unit","description":"UCUM unit (e.g. '%')"},"value_code_system":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Code System","description":"Code system URI for coded result values"},"attribute":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribute","description":"QDM timing/value attribute represented by this element"},"period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start","description":"ISO-8601 low/start time for interval-valued QDM attributes"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End","description":"ISO-8601 high/end time for interval-valued QDM attributes"},"author_datetime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Datetime","description":"ISO-8601 author/order time for ordered QDM elements"},"discharge_disposition_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discharge Disposition Code","description":"SNOMED discharge disposition code for EncounterPerformed"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id","description":"Related encounter ID"}},"type":"object","required":["patient_id","measure_ids","qdm_category","code_system","code","display","effective_date"],"title":"RecordCQMDataRequest","description":"Record a QDM data element for a patient relevant to one or more eCQMs."},"RecoveryCodeRequest":{"properties":{"uid":{"type":"string","title":"Uid"},"code":{"type":"string","title":"Code"}},"type":"object","required":["uid","code"],"title":"RecoveryCodeRequest"},"ReferenceLabOrderRequest":{"properties":{"vendor":{"$ref":"#/components/schemas/ReferenceLabVendor"},"patient_id":{"type":"string","title":"Patient Id"},"specimen_id":{"type":"string","title":"Specimen Id"},"loinc_codes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Loinc Codes","description":"Tests to order"},"priority":{"type":"string","pattern":"^(routine|stat|asap)$","title":"Priority","default":"routine"},"icd10_codes":{"items":{"type":"string"},"type":"array","title":"Icd10 Codes"},"ordering_provider_npi":{"type":"string","title":"Ordering Provider Npi"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["vendor","patient_id","specimen_id","loinc_codes","ordering_provider_npi"],"title":"ReferenceLabOrderRequest"},"ReferenceLabOrderResponse":{"properties":{"id":{"type":"string","title":"Id"},"vendor":{"$ref":"#/components/schemas/ReferenceLabVendor"},"patient_id":{"type":"string","title":"Patient Id"},"specimen_id":{"type":"string","title":"Specimen Id"},"external_order_id":{"type":"string","title":"External Order Id"},"status":{"type":"string","title":"Status"},"submitted_at":{"type":"string","title":"Submitted At"},"loinc_codes":{"items":{"type":"string"},"type":"array","title":"Loinc Codes"},"priority":{"type":"string","title":"Priority"}},"type":"object","required":["id","vendor","patient_id","specimen_id","external_order_id","status","submitted_at","loinc_codes","priority"],"title":"ReferenceLabOrderResponse"},"ReferenceLabVendor":{"type":"string","enum":["quest","labcorp","arup","mayo","bioreference"],"title":"ReferenceLabVendor"},"ReferralOrchRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"specialty":{"type":"string","title":"Specialty"},"clinical_reason":{"type":"string","title":"Clinical Reason"}},"type":"object","required":["patient_id","specialty","clinical_reason"],"title":"ReferralOrchRequest"},"ReferralStatus":{"type":"string","enum":["draft","sent","accepted","declined","redirected","appointment_scheduled","consultation_received","completed","cancelled"],"title":"ReferralStatus"},"ReferralUrgency":{"type":"string","enum":["routine","urgent","emergent"],"title":"ReferralUrgency"},"RefillRequest":{"properties":{"original_message_id":{"type":"string","title":"Original Message Id"},"pharmacy_ncpdp_id":{"type":"string","title":"Pharmacy Ncpdp Id"},"refill_quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Refill Quantity"}},"type":"object","required":["original_message_id","pharmacy_ncpdp_id"],"title":"RefillRequest"},"ReflexRuleRequest":{"properties":{"name":{"type":"string","title":"Name"},"trigger_loinc":{"type":"string","title":"Trigger Loinc","description":"Primary test LOINC code"},"trigger_condition":{"type":"string","title":"Trigger Condition","description":"Condition expression, e.g. 'value > 5.0' or 'interpretation=POS'"},"reflex_loinc_codes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Reflex Loinc Codes","description":"Tests to add on trigger"},"priority":{"type":"string","pattern":"^(routine|stat|asap)$","title":"Priority","default":"routine"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name","trigger_loinc","trigger_condition","reflex_loinc_codes"],"title":"ReflexRuleRequest"},"RefractionExam":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"patient_id":{"type":"string","title":"Patient Id"},"exam_date":{"type":"string","title":"Exam Date"},"od_sphere":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Od Sphere"},"od_cylinder":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Od Cylinder"},"od_axis":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Od Axis"},"od_add":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Od Add"},"os_sphere":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Os Sphere"},"os_cylinder":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Os Cylinder"},"os_axis":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Os Axis"},"os_add":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Os Add"},"od_va_uncorrected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Od Va Uncorrected"},"os_va_uncorrected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os Va Uncorrected"},"od_va_corrected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Od Va Corrected"},"os_va_corrected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os Va Corrected"},"correction_type":{"$ref":"#/components/schemas/VisionCorrectionType","default":"none"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"}},"type":"object","required":["patient_id","exam_date"],"title":"RefractionExam"},"RegimenLibraryEntry":{"properties":{"regimen_id":{"type":"string","title":"Regimen Id"},"name":{"type":"string","title":"Name"},"indication":{"type":"string","title":"Indication"},"drugs":{"items":{"$ref":"#/components/schemas/DrugComponent"},"type":"array","title":"Drugs"},"cycle_length_days":{"type":"integer","title":"Cycle Length Days","default":21},"max_cycles":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Cycles"},"cumulative_dose_limits":{"additionalProperties":{"type":"number"},"type":"object","title":"Cumulative Dose Limits"},"references":{"items":{"type":"string"},"type":"array","title":"References"},"added_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added By"}},"type":"object","required":["name","indication","drugs"],"title":"RegimenLibraryEntry"},"RegimenStatus":{"type":"string","enum":["active","on_hold","completed","discontinued"],"title":"RegimenStatus"},"RegionCreateIn":{"properties":{"region":{"$ref":"#/components/schemas/GcpRegion"},"tier":{"$ref":"#/components/schemas/RegionTier","default":"secondary"},"traffic_weight":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Traffic Weight","default":0},"deployment_tier":{"$ref":"#/components/schemas/DeploymentTier","default":"shared"},"data_residency_jurisdiction":{"$ref":"#/components/schemas/Jurisdiction","default":"US"},"active_active":{"type":"boolean","title":"Active Active","default":false}},"type":"object","required":["region"],"title":"RegionCreateIn"},"RegionHealthStatus":{"type":"string","enum":["healthy","degraded","failover","maintenance","offline"],"title":"RegionHealthStatus"},"RegionOut":{"properties":{"id":{"type":"string","title":"Id"},"region":{"$ref":"#/components/schemas/GcpRegion"},"tier":{"$ref":"#/components/schemas/RegionTier"},"health":{"$ref":"#/components/schemas/RegionHealthStatus"},"traffic_weight":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Traffic Weight"},"deployment_tier":{"$ref":"#/components/schemas/DeploymentTier"},"data_residency_jurisdiction":{"$ref":"#/components/schemas/Jurisdiction"},"active_active":{"type":"boolean","title":"Active Active"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","region","tier","health","traffic_weight","deployment_tier","data_residency_jurisdiction","active_active","created_at","updated_at"],"title":"RegionOut"},"RegionStatus":{"type":"string","enum":["primary","active","warm_standby","failover","degraded","offline"],"title":"RegionStatus"},"RegionTier":{"type":"string","enum":["primary","secondary","dr_only"],"title":"RegionTier"},"RegionTopologyEntry":{"properties":{"region_id":{"type":"string","title":"Region Id"},"cloud_provider":{"type":"string","title":"Cloud Provider"},"location":{"type":"string","title":"Location"},"status":{"$ref":"#/components/schemas/RegionStatus","default":"active"},"consistency_level":{"$ref":"#/components/schemas/ConsistencyLevel","default":"session"},"latency_ms_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency Ms P99"},"primary_for_tenants":{"items":{"type":"string"},"type":"array","title":"Primary For Tenants"}},"type":"object","required":["region_id","cloud_provider","location"],"title":"RegionTopologyEntry"},"RegionUpdateIn":{"properties":{"traffic_weight":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Traffic Weight"},"health":{"anyOf":[{"$ref":"#/components/schemas/RegionHealthStatus"},{"type":"null"}]},"tier":{"anyOf":[{"$ref":"#/components/schemas/RegionTier"},{"type":"null"}]},"active_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active Active"}},"type":"object","title":"RegionUpdateIn"},"RegisterAgentRequest":{"properties":{"agent_code":{"type":"string","title":"Agent Code"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["agent_code","display_name"],"title":"RegisterAgentRequest"},"RegisterDeviceRequest":{"properties":{"platform":{"$ref":"#/components/schemas/DevicePlatform"},"app_version":{"type":"string","title":"App Version"},"os_version":{"type":"string","title":"Os Version"},"push_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Push Token"}},"type":"object","required":["platform","app_version","os_version"],"title":"RegisterDeviceRequest"},"RegisterEPCSRequest":{"properties":{"dea_number":{"type":"string","title":"Dea Number"},"identity_proofing_provider":{"type":"string","title":"Identity Proofing Provider"},"proofing_session_id":{"type":"string","title":"Proofing Session Id"}},"type":"object","required":["dea_number","identity_proofing_provider","proofing_session_id"],"title":"RegisterEPCSRequest"},"RegisterModelRequest":{"properties":{"agent_code":{"type":"string","title":"Agent Code"},"model_id":{"type":"string","title":"Model Id"},"version":{"type":"string","title":"Version"},"training_cutoff":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Cutoff"},"phi_approved":{"type":"boolean","title":"Phi Approved","default":false},"onc_classification":{"$ref":"#/components/schemas/ONCClassification","default":"none"},"source_attributes":{"$ref":"#/components/schemas/SourceAttributeDraft"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["agent_code","model_id","version"],"title":"RegisterModelRequest"},"RegisterSurfaceRequest":{"properties":{"surface_id":{"type":"string","title":"Surface Id"},"kind":{"$ref":"#/components/schemas/SurfaceKind"},"module_path":{"type":"string","title":"Module Path"},"rationale":{"type":"string","title":"Rationale"}},"type":"object","required":["surface_id","kind","module_path","rationale"],"title":"RegisterSurfaceRequest"},"RegisterWorkflowRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"version":{"type":"string","title":"Version"},"care_settings":{"items":{"$ref":"#/components/schemas/CareSetting"},"type":"array","title":"Care Settings"},"definition":{"$ref":"#/components/schemas/WorkflowDefinition"},"changelog":{"type":"string","title":"Changelog","default":""}},"type":"object","required":["tenant_id","version","definition"],"title":"RegisterWorkflowRequest"},"RelationshipType":{"type":"string","enum":["TREATS","PRESCRIBED","INTERACTS_WITH","MEMBER_OF","REFERRED_TO","CONTRAINDICATED"],"title":"RelationshipType"},"ReleaseRecord":{"properties":{"version":{"type":"string","title":"Version","description":"Semantic version, e.g. '1.2.0'"},"change_ids":{"items":{"type":"string"},"type":"array","title":"Change Ids","description":"IDs of change requests included in this release"},"release_notes":{"type":"string","title":"Release Notes"},"test_evidence_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Evidence Uri","description":"Link to CI test run / Allure report"},"deployed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployed By"},"deployed_to":{"type":"string","title":"Deployed To","description":"Environment: production | staging","default":"production"}},"type":"object","required":["version","change_ids","release_notes"],"title":"ReleaseRecord"},"RenderedSection":{"properties":{"title":{"type":"string","title":"Title"},"code":{"type":"string","title":"Code","default":""},"code_display":{"type":"string","title":"Code Display","default":""},"narrative_html":{"type":"string","title":"Narrative Html","description":"The section's <text> element serialised as XHTML (safe-rendered by the UI).","default":""}},"type":"object","required":["title"],"title":"RenderedSection","description":"A C-CDA section rendered for human display."},"ReportStatus":{"type":"string","enum":["preliminary","final","addendum","corrected"],"title":"ReportStatus"},"ReportType":{"type":"string","enum":["summary","subject-list","individual"],"title":"ReportType"},"ReportabilityRule":{"properties":{"loinc_code":{"type":"string","title":"Loinc Code","description":"LOINC code identifying the reportable test"},"loinc_display":{"type":"string","title":"Loinc Display","description":"Human-readable LOINC test name","default":""},"jurisdiction":{"type":"string","title":"Jurisdiction","description":"Target PHA jurisdiction code (e.g. 'CA', 'NY', 'MOCK')"},"condition":{"type":"string","title":"Condition","description":"Name of the reportable condition (e.g. 'Salmonellosis')"},"notes":{"type":"string","title":"Notes","description":"Optional free-text notes","default":""}},"type":"object","required":["loinc_code","jurisdiction","condition"],"title":"ReportabilityRule","description":"A rule that maps a LOINC code to a reportable condition and PHA jurisdiction."},"ReportabilityRuleResponse":{"properties":{"loinc_code":{"type":"string","title":"Loinc Code","description":"LOINC code identifying the reportable test"},"loinc_display":{"type":"string","title":"Loinc Display","description":"Human-readable LOINC test name","default":""},"jurisdiction":{"type":"string","title":"Jurisdiction","description":"Target PHA jurisdiction code (e.g. 'CA', 'NY', 'MOCK')"},"condition":{"type":"string","title":"Condition","description":"Name of the reportable condition (e.g. 'Salmonellosis')"},"notes":{"type":"string","title":"Notes","description":"Optional free-text notes","default":""},"id":{"type":"string","title":"Id"}},"type":"object","required":["loinc_code","jurisdiction","condition","id"],"title":"ReportabilityRuleResponse"},"ReproAccessCheckRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"requester_id":{"type":"string","title":"Requester Id"},"requester_type":{"type":"string","title":"Requester Type","description":"'clinician', 'law_enforcement', 'payer', 'public_health'"},"purpose":{"type":"string","title":"Purpose"},"jurisdiction":{"type":"string","title":"Jurisdiction","description":"ISO 3166-2 state/province code, e.g. 'US-CA'"}},"type":"object","required":["patient_id","requester_id","requester_type","purpose","jurisdiction"],"title":"ReproAccessCheckRequest"},"ResistancePattern":{"type":"string","enum":["S","I","R","NS"],"title":"ResistancePattern","description":"NHSN resistance pattern categories."},"ResolveItemRequest":{"properties":{"resolution":{"type":"string","title":"Resolution"},"manual_entry":{"anyOf":[{"$ref":"#/components/schemas/app__serving__medication_reconciler_agent__MedicationEntry"},{"type":"null"}]}},"type":"object","required":["resolution"],"title":"ResolveItemRequest"},"ResolveRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"task_class":{"$ref":"#/components/schemas/TaskClass"}},"type":"object","required":["tenant_id","task_class"],"title":"ResolveRequest"},"ResourceDecryptRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"resource_id":{"type":"string","title":"Resource Id"},"category":{"$ref":"#/components/schemas/SensitivityCode"},"ciphertext":{"type":"string","title":"Ciphertext"},"access_reason":{"type":"string","title":"Access Reason"}},"type":"object","required":["tenant_id","resource_id","category","ciphertext","access_reason"],"title":"ResourceDecryptRequest"},"ResourceEncryptRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"resource_id":{"type":"string","title":"Resource Id"},"resource_type":{"type":"string","title":"Resource Type"},"category":{"$ref":"#/components/schemas/SensitivityCode"},"plaintext":{"type":"string","title":"Plaintext"}},"type":"object","required":["tenant_id","resource_id","resource_type","category","plaintext"],"title":"ResourceEncryptRequest"},"RestrictionRecipientClass":{"type":"string","enum":["HEALTH_PLAN","EMPLOYER","FAMILY_FRIEND","MARKETING","RESEARCH","OTHER"],"title":"RestrictionRecipientClass"},"ResultStatus":{"type":"string","enum":["pending","preliminary","final","corrected","cancelled"],"title":"ResultStatus"},"RetireRequest":{"properties":{"reason":{"type":"string","title":"Reason"},"successor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Successor Id","description":"ID of the order set that replaces this one"}},"type":"object","required":["reason"],"title":"RetireRequest"},"ReviewAmendmentRequest":{"properties":{"action":{"type":"string","enum":["accept","deny","modify"],"title":"Action"},"provider_note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Provider Note","description":"Required when action='deny'; optional for 'modify'"},"amended_content":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Amended Content","description":"Description of what was changed (required when action='modify')"}},"type":"object","required":["action"],"title":"ReviewAmendmentRequest"},"ReviewDecision-Output":{"type":"string","enum":["accepted","edited","rejected","revision_requested","marked_unsafe"],"title":"ReviewDecision"},"ReviewDocumentRequest":{"properties":{"doc_id":{"type":"string","title":"Doc Id"},"approved":{"type":"boolean","title":"Approved"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"}},"type":"object","required":["doc_id","approved"],"title":"ReviewDocumentRequest"},"ReviewPHICaptureRequest":{"properties":{"action":{"type":"string","enum":["accept","reject","edit"],"title":"Action"},"provider_note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Provider Note","description":"Required when action='reject'; optional for 'accept' or 'edit'"},"edited_content":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Edited Content","description":"Required when action='edit'; free-text description of what was changed and the corrected values that will be incorporated"}},"type":"object","required":["action"],"title":"ReviewPHICaptureRequest"},"ReviewResponse":{"properties":{"agent_review_id":{"type":"string","title":"Agent Review Id"},"agent_run_id":{"type":"string","title":"Agent Run Id"},"decision":{"$ref":"#/components/schemas/ReviewDecision-Output"},"reviewed_at":{"type":"string","title":"Reviewed At"}},"type":"object","required":["agent_review_id","agent_run_id","decision","reviewed_at"],"title":"ReviewResponse"},"RevokeRequest":{"properties":{"uid":{"type":"string","title":"Uid"}},"type":"object","required":["uid"],"title":"RevokeRequest"},"RhFactor":{"type":"string","enum":["positive","negative"],"title":"RhFactor"},"RiskLevel":{"type":"string","enum":["low","medium","high","very_high"],"title":"RiskLevel"},"RiskStratificationResult":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"hcc_risk_score":{"type":"number","title":"Hcc Risk Score"},"risk_level":{"$ref":"#/components/schemas/RiskLevel"},"top_hcc_categories":{"items":{"type":"string"},"type":"array","title":"Top Hcc Categories"},"sdoh_risk_flags":{"items":{"type":"string"},"type":"array","title":"Sdoh Risk Flags"},"predicted_cost_tier":{"type":"string","title":"Predicted Cost Tier"},"care_gaps":{"items":{"type":"string"},"type":"array","title":"Care Gaps"}},"type":"object","required":["patient_id","hcc_risk_score","risk_level","top_hcc_categories","sdoh_risk_flags","predicted_cost_tier","care_gaps"],"title":"RiskStratificationResult"},"RollbackRecord":{"properties":{"reason":{"type":"string","title":"Reason"},"previous_version":{"type":"string","title":"Previous Version"},"rolled_back_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rolled Back By"}},"type":"object","required":["reason","previous_version"],"title":"RollbackRecord"},"RollbackRequest":{"properties":{"reason":{"type":"string","title":"Reason","description":"Reason for rolling back this import job"}},"type":"object","required":["reason"],"title":"RollbackRequest"},"RrInboxItem":{"properties":{"communication_id":{"type":"string","title":"Communication Id"},"patient_id":{"type":"string","title":"Patient Id"},"transmission_id":{"type":"string","title":"Transmission Id"},"rr_status":{"type":"string","title":"Rr Status"},"condition":{"type":"string","title":"Condition"}},"type":"object","required":["communication_id","patient_id","transmission_id","rr_status","condition"],"title":"RrInboxItem"},"RunGuardrailsRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"agent_code":{"type":"string","title":"Agent Code"},"model_id":{"type":"string","title":"Model Id"},"prompt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Text"},"user_input_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Input Text"},"context":{"additionalProperties":true,"type":"object","title":"Context"},"output":{"additionalProperties":true,"type":"object","title":"Output"},"output_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Text"},"fhir_evidence":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Fhir Evidence"},"baseline_output":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Baseline Output"},"registry_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry Version Id"},"prompt_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Hash"},"retrieval_citation_ids":{"items":{"type":"string"},"type":"array","title":"Retrieval Citation Ids"},"output_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema"}},"type":"object","required":["session_id","agent_code","model_id"],"title":"RunGuardrailsRequest"},"RxChangeRequestBody":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"original_transmission_id":{"type":"string","title":"Original Transmission Id"},"pharmacy":{"$ref":"#/components/schemas/PharmacyInfo"},"requested_drug_info":{"$ref":"#/components/schemas/DrugInfo"},"change_reason":{"type":"string","title":"Change Reason"}},"type":"object","required":["patient_id","original_transmission_id","pharmacy","requested_drug_info","change_reason"],"title":"RxChangeRequestBody","description":"Body for POST /eprescribing/receive/change-request."},"RxChangeResponseRequest":{"properties":{"change_request_transmission_id":{"type":"string","title":"Change Request Transmission Id","description":"transmission_id of the inbound RxChangeRequest being responded to"},"approved":{"type":"boolean","title":"Approved"},"updated_drug_info":{"anyOf":[{"$ref":"#/components/schemas/DrugInfo"},{"type":"null"}],"description":"Updated drug if approved with changes"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason"},"prescriber_name":{"type":"string","title":"Prescriber Name"},"prescriber_npi":{"type":"string","title":"Prescriber Npi"}},"type":"object","required":["change_request_transmission_id","approved","prescriber_name","prescriber_npi"],"title":"RxChangeResponseRequest","description":"Body for POST /eprescribing/change-response."},"RxChangeResponseResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"message_type":{"type":"string","title":"Message Type","default":"RxChangeResponse"},"change_request_transmission_id":{"type":"string","title":"Change Request Transmission Id"},"approved":{"type":"boolean","title":"Approved"},"status":{"type":"string","enum":["pending","sent","received","error","cancelled"],"title":"Status"}},"type":"object","required":["transmission_id","change_request_transmission_id","approved","status"],"title":"RxChangeResponseResponse"},"RxFillBody":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"original_transmission_id":{"type":"string","title":"Original Transmission Id"},"pharmacy":{"$ref":"#/components/schemas/PharmacyInfo"},"dispensed_drug_info":{"$ref":"#/components/schemas/DrugInfo"},"fill_date":{"type":"string","title":"Fill Date","description":"ISO-8601 date when dispense occurred"},"fill_number":{"type":"integer","minimum":1.0,"title":"Fill Number","description":"Fill number (1 = first fill, 2 = first refill, …)","default":1}},"type":"object","required":["patient_id","original_transmission_id","pharmacy","dispensed_drug_info","fill_date"],"title":"RxFillBody","description":"Body for POST /eprescribing/receive/rx-fill."},"RxRenewalRequestBody":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"original_transmission_id":{"type":"string","title":"Original Transmission Id","description":"transmission_id of the original NewRx"},"pharmacy":{"$ref":"#/components/schemas/PharmacyInfo"},"drug_info":{"$ref":"#/components/schemas/DrugInfo"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["patient_id","original_transmission_id","pharmacy","drug_info"],"title":"RxRenewalRequestBody","description":"Body for POST /eprescribing/receive/renewal-request."},"RxRenewalResponseRequest":{"properties":{"renewal_request_transmission_id":{"type":"string","title":"Renewal Request Transmission Id","description":"transmission_id of the inbound RxRenewalRequest being responded to"},"approved":{"type":"boolean","title":"Approved"},"drug_info":{"anyOf":[{"$ref":"#/components/schemas/DrugInfo"},{"type":"null"}],"description":"Updated drug info if approved; omit to deny"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason","description":"Required when approved=False"},"prescriber_name":{"type":"string","title":"Prescriber Name"},"prescriber_npi":{"type":"string","title":"Prescriber Npi"}},"type":"object","required":["renewal_request_transmission_id","approved","prescriber_name","prescriber_npi"],"title":"RxRenewalResponseRequest","description":"Body for POST /eprescribing/renewal-response."},"RxRenewalResponseResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"message_type":{"type":"string","title":"Message Type","default":"RxRenewalResponse"},"renewal_request_transmission_id":{"type":"string","title":"Renewal Request Transmission Id"},"approved":{"type":"boolean","title":"Approved"},"status":{"type":"string","enum":["pending","sent","received","error","cancelled"],"title":"Status"}},"type":"object","required":["transmission_id","renewal_request_transmission_id","approved","status"],"title":"RxRenewalResponseResponse"},"SAEType":{"type":"string","enum":["death","life_threatening","hospitalization","disability","congenital_anomaly","other_medically_significant"],"title":"SAEType"},"SAMLACSRequest":{"properties":{"SAMLResponse":{"type":"string","title":"Samlresponse"},"RelayState":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relaystate"}},"type":"object","required":["SAMLResponse"],"title":"SAMLACSRequest"},"SARTCaseReport":{"properties":{"id":{"type":"string","title":"Id"},"cycle_id":{"type":"string","title":"Cycle Id"},"patient_id":{"type":"string","title":"Patient Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"reporting_year":{"type":"integer","title":"Reporting Year"},"cycle_type":{"$ref":"#/components/schemas/CycleType"},"patient_age_at_retrieval":{"type":"integer","title":"Patient Age At Retrieval"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"oocytes_retrieved":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Oocytes Retrieved"},"embryos_transferred":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Embryos Transferred"},"implantations":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Implantations"},"clinical_pregnancies":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Clinical Pregnancies"},"live_births":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Live Births"},"singletons":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Singletons"},"multiples":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Multiples"},"submitted_to_sart":{"type":"boolean","title":"Submitted To Sart","default":false},"submission_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submission Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["cycle_id","patient_id","clinic_id","reporting_year","cycle_type","patient_age_at_retrieval"],"title":"SARTCaseReport"},"SDOHObservationOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"domain":{"type":"string","title":"Domain"},"loinc_code":{"type":"string","title":"Loinc Code"},"loinc_display":{"type":"string","title":"Loinc Display"},"value_quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Quantity"},"value_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Unit"},"value_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value String"},"value_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Code"},"value_code_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Code Display"},"interpretation_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interpretation Code"},"interpretation_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interpretation Display"},"obs_status":{"type":"string","title":"Obs Status"},"effective_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Date"},"notes":{"type":"string","title":"Notes"},"instrument":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instrument"}},"type":"object","required":["id","patient_id","domain","loinc_code","loinc_display","value_quantity","value_unit","value_string","value_code","value_code_display","interpretation_code","interpretation_display","obs_status","effective_date","notes","instrument"],"title":"SDOHObservationOut"},"SDOHObservationRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"domain":{"type":"string","title":"Domain","description":"SDOH domain key: financial_strain, education, stress, depression, anxiety, social_isolation, intimate_partner_violence, alcohol_use, physical_activity"},"loinc_code":{"type":"string","title":"Loinc Code","description":"LOINC code for the specific assessment question or panel"},"loinc_display":{"type":"string","title":"Loinc Display","description":"Human-readable LOINC display name"},"value_quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Quantity","description":"Numeric score (e.g. PHQ-9 total = 14)"},"value_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Unit","description":"UCUM unit for quantity values (e.g. '{score}')"},"value_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value String","description":"Free-text or coded answer when no numeric score"},"value_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Code","description":"SNOMED CT code for a coded answer"},"value_code_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Code Display","description":"Display for the coded answer"},"interpretation_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interpretation Code","description":"Interpretation code: N (normal), L (low), H (high), POS (positive), NEG (negative)"},"interpretation_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interpretation Display","description":"Human-readable interpretation"},"obs_status":{"type":"string","title":"Obs Status","description":"Observation status: final | preliminary | amended","default":"final"},"effective_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Date","description":"ISO 8601 date when the assessment was performed"},"notes":{"type":"string","title":"Notes","description":"Clinical notes","default":""},"instrument":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instrument","description":"Screening instrument name (e.g. PHQ-9, AUDIT-C)"}},"type":"object","required":["patient_id","domain","loinc_code","loinc_display"],"title":"SDOHObservationRequest","description":"Body for creating or updating an SDOH screening observation."},"SFTPEndpointConfig":{"properties":{"host":{"type":"string","title":"Host"},"port":{"type":"integer","title":"Port","default":22},"username":{"type":"string","title":"Username"},"private_key_secret":{"type":"string","title":"Private Key Secret","description":"GCP Secret Manager key for SSH private key"},"remote_path":{"type":"string","title":"Remote Path","default":"/hl7v2/inbound"},"poll_interval_seconds":{"type":"integer","title":"Poll Interval Seconds","default":60},"archive_path":{"type":"string","title":"Archive Path","default":"/hl7v2/archive"}},"type":"object","required":["host","username","private_key_secret"],"title":"SFTPEndpointConfig","description":"Configuration for an SFTP batch ingest endpoint."},"SNFAdmission":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"facility_id":{"type":"string","title":"Facility Id"},"admission_date":{"type":"string","format":"date","title":"Admission Date"},"discharge_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Discharge Date"},"payer_source":{"$ref":"#/components/schemas/SNFPayerSource"},"mds_assessment_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Mds Assessment Date"},"mds_section_gg_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mds Section Gg Score"},"pdpm_clinical_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdpm Clinical Category"},"rug_iv_classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rug Iv Classification"},"qualifying_hospital_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Qualifying Hospital Days"},"primary_diagnosis_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Diagnosis Code"},"provider_id":{"type":"string","title":"Provider Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","facility_id","admission_date","payer_source","provider_id"],"title":"SNFAdmission"},"SNFPayerSource":{"type":"string","enum":["medicare_part_a","medicaid","managed_care","private_pay"],"title":"SNFPayerSource"},"SOFAScore":{"properties":{"score_id":{"type":"string","title":"Score Id"},"admission_id":{"type":"string","title":"Admission Id"},"respiratory":{"type":"integer","maximum":4.0,"minimum":0.0,"title":"Respiratory"},"coagulation":{"type":"integer","maximum":4.0,"minimum":0.0,"title":"Coagulation"},"liver":{"type":"integer","maximum":4.0,"minimum":0.0,"title":"Liver"},"cardiovascular":{"type":"integer","maximum":4.0,"minimum":0.0,"title":"Cardiovascular"},"cns":{"type":"integer","maximum":4.0,"minimum":0.0,"title":"Cns"},"renal":{"type":"integer","maximum":4.0,"minimum":0.0,"title":"Renal"},"scored_at":{"type":"string","format":"date-time","title":"Scored At"},"scored_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scored By"}},"type":"object","required":["admission_id","respiratory","coagulation","liver","cardiovascular","cns","renal"],"title":"SOFAScore"},"SRTemplate":{"type":"string","enum":["radlex","birads","lirads","pirads"],"title":"SRTemplate"},"SafetyCaseSummary":{"properties":{"title":{"type":"string","title":"Title","default":"Sphere-EHR Clinical Safety Case"},"version":{"type":"string","title":"Version","default":"2.0"},"effective_date":{"type":"string","title":"Effective Date","default":"2026-05-10"},"standard":{"type":"string","title":"Standard","default":"IEC 62304:2006+AMD1:2015; IEC 62366-1:2015; NIST IR 7741"},"software_safety_class":{"type":"string","title":"Software Safety Class","default":"IEC 62304 Class B"},"intended_use":{"type":"string","title":"Intended Use","default":"Ambulatory outpatient EHR; clinical documentation, medication ordering, lab ordering, care coordination."},"total_hazards":{"type":"integer","title":"Total Hazards","default":10},"high_risk_modules":{"items":{"type":"string"},"type":"array","title":"High Risk Modules","default":["cpoe","mar","med_reconciliation","allergy_interaction","critical_results","agent_acceptance"]},"acceptable_residual_risk_threshold":{"type":"string","title":"Acceptable Residual Risk Threshold","default":"Negligible, Low, or Medium (with documented justification)"},"hazards_exceeding_threshold":{"type":"integer","title":"Hazards Exceeding Threshold","default":0},"go_live_cleared":{"type":"boolean","title":"Go Live Cleared","default":true},"post_market_surveillance":{"items":{"type":"string"},"type":"array","title":"Post Market Surveillance","default":["Monthly patient safety incident report review","Immediate hazard log update after every P0/P1 incident","Quarterly hazard log review with Medical Director","Annual full safety case update","Track FDA MAUDE and Health Canada MedEffect for analogous EHR systems"]},"sed_evidence_reference":{"type":"string","title":"Sed Evidence Reference","default":"GET /b5/sed-evidence"}},"type":"object","title":"SafetyCaseSummary"},"SafetyFlag":{"properties":{"code":{"type":"string","title":"Code"},"severity":{"type":"string","title":"Severity"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["code","severity","detail"],"title":"SafetyFlag"},"SandboxOutcome":{"type":"string","enum":["ALLOWED","DENIED_SCOPE","DENIED_ABAC","DENIED_RATE_LIMIT","DENIED_IDEMPOTENT_DUPLICATE","OUTPUT_SCHEMA_VIOLATION"],"title":"SandboxOutcome"},"SandboxProvisionRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"sandbox_duration_days":{"type":"integer","maximum":90.0,"title":"Sandbox Duration Days","default":30},"seed_data":{"type":"boolean","title":"Seed Data","description":"Pre-populate with Synthea sample patients","default":true}},"type":"object","required":["client_id"],"title":"SandboxProvisionRequest"},"SbarCommunication":{"properties":{"situation":{"type":"string","title":"Situation"},"background":{"type":"string","title":"Background"},"assessment":{"type":"string","title":"Assessment"},"recommendation":{"type":"string","title":"Recommendation"}},"type":"object","required":["situation","background","assessment","recommendation"],"title":"SbarCommunication","description":"SBAR structured communication."},"ScheduleAppointmentRequest":{"properties":{"appointment_datetime":{"type":"string","title":"Appointment Datetime"},"facility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility"}},"type":"object","required":["appointment_datetime"],"title":"ScheduleAppointmentRequest"},"ScheduleOptimizerRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"appointment_type":{"type":"string","title":"Appointment Type"},"preferred_date_range":{"additionalProperties":{"type":"string"},"type":"object","title":"Preferred Date Range"}},"type":"object","required":["patient_id","appointment_type"],"title":"ScheduleOptimizerRequest"},"ScimEmail":{"properties":{"value":{"type":"string","title":"Value"},"type":{"type":"string","title":"Type","default":"work"},"primary":{"type":"boolean","title":"Primary","default":true}},"type":"object","required":["value"],"title":"ScimEmail"},"ScimName":{"properties":{"formatted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted"},"givenName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Givenname"},"familyName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Familyname"}},"type":"object","title":"ScimName"},"ScimUserCreate":{"properties":{"schemas":{"items":{"type":"string"},"type":"array","title":"Schemas"},"userName":{"type":"string","title":"Username"},"name":{"anyOf":[{"$ref":"#/components/schemas/ScimName"},{"type":"null"}]},"emails":{"items":{"$ref":"#/components/schemas/ScimEmail"},"type":"array","title":"Emails"},"active":{"type":"boolean","title":"Active","default":true},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Externalid"},"sphere_role":{"type":"string","title":"Sphere Role","default":"clinician"}},"type":"object","required":["userName"],"title":"ScimUserCreate"},"ScimUserPatch":{"properties":{"schemas":{"items":{"type":"string"},"type":"array","title":"Schemas"},"Operations":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Operations"}},"type":"object","title":"ScimUserPatch","description":"PATCH /scim/v2/Users/{uid} — mover (role change) or leaver (active=False)."},"ScreenerRequest":{"properties":{"name":{"type":"string","title":"Name"},"instrument_code":{"type":"string","title":"Instrument Code","description":"Standardized instrument code (e.g., 'PHQ-9', 'GAD-7')"},"version":{"type":"string","title":"Version"},"loinc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loinc Code"},"questions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Questions"},"scoring_algorithm":{"type":"string","title":"Scoring Algorithm","description":"Plaintext description of scoring algorithm"},"interpretation_guide":{"additionalProperties":{"type":"string"},"type":"object","title":"Interpretation Guide","description":"Score ranges to interpretation (e.g., {'0-4': 'Minimal', '5-9': 'Mild'})"}},"type":"object","required":["name","instrument_code","version","questions","scoring_algorithm"],"title":"ScreenerRequest"},"SealRequest":{"properties":{"seal_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Seal Date","description":"ISO date to seal (YYYY-MM-DD). Defaults to yesterday UTC."},"simulated_events":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Simulated Events","description":"Synthetic event list for testing (omit in production)."}},"type":"object","title":"SealRequest","description":"Optional override for the date being sealed (defaults to yesterday)."},"SearchIndexRequest":{"properties":{"index":{"type":"string","title":"Index","default":"clinical_docs"},"doc_id":{"type":"string","title":"Doc Id"},"body":{"additionalProperties":true,"type":"object","title":"Body","description":"Document body (de-identified clinical text + metadata)"}},"type":"object","required":["doc_id","body"],"title":"SearchIndexRequest"},"SearchQueryRequest":{"properties":{"index":{"type":"string","title":"Index","default":"clinical_docs"},"query":{"type":"string","title":"Query","description":"Full-text search query string"},"filters":{"additionalProperties":true,"type":"object","title":"Filters"},"size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Size","default":10}},"type":"object","required":["query"],"title":"SearchQueryRequest"},"SearchRequest":{"properties":{"vector":{"items":{"type":"number"},"type":"array","title":"Vector"},"top_k":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Top K","default":10},"filter_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filter Payload"},"score_threshold":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Score Threshold"}},"type":"object","required":["vector"],"title":"SearchRequest"},"SearchResponse":{"properties":{"hits":{"items":{"$ref":"#/components/schemas/app__serving__vector_svc__SearchHit"},"type":"array","title":"Hits"},"collection":{"type":"string","title":"Collection"},"total_searched":{"type":"integer","title":"Total Searched"}},"type":"object","required":["hits","collection","total_searched"],"title":"SearchResponse"},"SedEvidence":{"properties":{"criterion":{"type":"string","title":"Criterion","default":"§ 170.315(g)(3) — Safety-enhanced Design"},"hazard_log_endpoint":{"type":"string","title":"Hazard Log Endpoint","default":"GET /b5/hazard-log"},"safety_case_endpoint":{"type":"string","title":"Safety Case Endpoint","default":"GET /b5/safety-case"},"ucd_process_endpoint":{"type":"string","title":"Ucd Process Endpoint","default":"GET /g3/ucd-process"},"test_protocol_endpoint":{"type":"string","title":"Test Protocol Endpoint","default":"GET /g3/test-protocol"},"test_report_endpoint":{"type":"string","title":"Test Report Endpoint","default":"GET /g3/test-report"},"high_risk_module_coverage":{"additionalProperties":{"type":"string"},"type":"object","title":"High Risk Module Coverage","default":{"cpoe":"H-001 — dose safety; CPOE order state machine; pharmacist gate","mar":"H-006 — five-rights confirmation; BCMA; duplicate-administration guard","med_reconciliation":"H-007 — three-way diff; mandatory resolution; AI advisory","allergy_interaction":"H-008 — three-tier alerts; quarterly calibration","critical_results":"H-003, H-009 — three-tier escalation; dashboard; 90-min watchdog","agent_acceptance":"H-005, H-010 — human-in-the-loop; acceptance-rate monitoring"}},"iec62304_class":{"type":"string","title":"Iec62304 Class","default":"Class B"},"review_schedule":{"type":"string","title":"Review Schedule","default":"Quarterly hazard log review + annual safety case update"}},"type":"object","title":"SedEvidence","description":"Evidence bundle linking clinical safety artefacts to § 170.315(g)(3) SED."},"SedationScale":{"type":"string","enum":["+4","+3","+2","+1","0","-1","-2","-3","-4","-5"],"title":"SedationScale"},"SelfUpdateRequest":{"properties":{"target_module":{"type":"string","title":"Target Module","description":"Module path that the factory should regenerate"},"spec_section_id":{"type":"string","title":"Spec Section Id"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","required":["target_module","spec_section_id"],"title":"SelfUpdateRequest","description":"Payload for code-factory self-update."},"SelfUpdateResult":{"properties":{"artifact":{"$ref":"#/components/schemas/GeneratedArtifact"},"applied":{"type":"boolean","title":"Applied"},"message":{"type":"string","title":"Message"}},"type":"object","required":["artifact","applied","message"],"title":"SelfUpdateResult"},"SemanticSearchRequest":{"properties":{"query":{"type":"string","title":"Query","description":"Natural language patient query"},"top_k":{"type":"integer","maximum":100.0,"title":"Top K","default":10},"cohort_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cohort Id"}},"type":"object","required":["query"],"title":"SemanticSearchRequest"},"SendADTRequest":{"properties":{"jurisdiction":{"type":"string","title":"Jurisdiction","description":"Jurisdiction code for the target PHA (e.g. 'CA', 'NY', 'MOCK')"},"trigger_event":{"type":"string","title":"Trigger Event","description":"ADT trigger event: A04 (register), A03 (discharge), A08 (update)","default":"A04"},"visit":{"$ref":"#/components/schemas/VisitInfo"}},"type":"object","required":["jurisdiction","visit"],"title":"SendADTRequest","description":"Body for POST /syndromic-surveillance/{patient_id}/adt."},"SendADTResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"patient_id":{"type":"string","title":"Patient Id"},"trigger_event":{"type":"string","title":"Trigger Event"},"visit_id":{"type":"string","title":"Visit Id"},"ack_code":{"type":"string","title":"Ack Code"},"message_control_id":{"type":"string","title":"Message Control Id"},"queued":{"type":"boolean","title":"Queued"},"communication_id":{"type":"string","title":"Communication Id"}},"type":"object","required":["transmission_id","jurisdiction","patient_id","trigger_event","visit_id","ack_code","message_control_id","queued","communication_id"],"title":"SendADTResponse"},"SendEcrRequest":{"properties":{"trigger_code":{"type":"string","title":"Trigger Code","description":"RCKMS trigger code (SNOMED CT or ICD-10-CM)"},"encounter":{"$ref":"#/components/schemas/EncounterInfo"},"conditions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Conditions","description":"List of FHIR R4 Condition resources to include in the eICR"},"lab_results":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Lab Results","description":"Lab results to include. Each dict: {code, display, value, units, status}"},"medications":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Medications","description":"Medications to include. Each dict: {name, rxnorm_code, status}"},"jurisdiction_override":{"type":"string","title":"Jurisdiction Override","description":"Override the jurisdiction from the matching rule. Use 'MOCK' for testing.","default":""}},"type":"object","required":["trigger_code"],"title":"SendEcrRequest","description":"Body for POST /ecr/{patient_id}/report."},"SendEcrResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"patient_id":{"type":"string","title":"Patient Id"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"trigger_code":{"type":"string","title":"Trigger Code"},"condition":{"type":"string","title":"Condition"},"matched_rule_id":{"type":"string","title":"Matched Rule Id"},"rr_status":{"type":"string","title":"Rr Status"},"queued":{"type":"boolean","title":"Queued"},"communication_id":{"type":"string","title":"Communication Id"},"rr_communication_id":{"type":"string","title":"Rr Communication Id"}},"type":"object","required":["transmission_id","patient_id","jurisdiction","trigger_code","condition","matched_rule_id","rr_status","queued","communication_id","rr_communication_id"],"title":"SendEcrResponse"},"SendMessageRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"},"direction":{"$ref":"#/components/schemas/MessageDirection","default":"patient_to_care_team"},"locale":{"$ref":"#/components/schemas/SupportedLocale","default":"en"},"reading_level":{"$ref":"#/components/schemas/ReadingLevel","default":"grade_8"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"}},"type":"object","required":["patient_id","subject","body"],"title":"SendMessageRequest"},"SendOruRequest":{"properties":{"result":{"$ref":"#/components/schemas/LabResultInfo"},"jurisdiction_override":{"type":"string","title":"Jurisdiction Override","description":"Override the jurisdiction from the matching rule. Use 'MOCK' for testing. If omitted, the rule's jurisdiction is used.","default":""}},"type":"object","required":["result"],"title":"SendOruRequest","description":"Body for POST /reportable-lab-results/{patient_id}/oru."},"SendOruResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"patient_id":{"type":"string","title":"Patient Id"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"loinc_code":{"type":"string","title":"Loinc Code"},"order_id":{"type":"string","title":"Order Id"},"ack_code":{"type":"string","title":"Ack Code"},"message_control_id":{"type":"string","title":"Message Control Id"},"queued":{"type":"boolean","title":"Queued"},"communication_id":{"type":"string","title":"Communication Id"},"matched_rule_id":{"type":"string","title":"Matched Rule Id"},"condition":{"type":"string","title":"Condition"}},"type":"object","required":["transmission_id","patient_id","jurisdiction","loinc_code","order_id","ack_code","message_control_id","queued","communication_id","matched_rule_id","condition"],"title":"SendOruResponse"},"SensitivityCategory":{"type":"string","enum":["PART2","PSY_NOTE","GENETIC","REPRO","GENDER_AFFIRMING","MINOR_CONFIDENTIAL"],"title":"SensitivityCategory"},"SensitivityCode":{"type":"string","enum":["PART2","PSY_NOTE","GENETIC","REPRO","GENDER_AFFIRMING","MINOR_CONFIDENTIAL"],"title":"SensitivityCode"},"SensitivityTag":{"type":"string","enum":["N","R","V","ETH","PSY","HIV","GDIS","SDV"],"title":"SensitivityTag","description":"HL7 Confidentiality codes + substance-abuse / mental-health extensions."},"SepsisBundleRecord":{"properties":{"bundle_id":{"type":"string","title":"Bundle Id"},"admission_id":{"type":"string","title":"Admission Id"},"lactate_measured":{"type":"boolean","title":"Lactate Measured","default":false},"blood_cultures_drawn":{"type":"boolean","title":"Blood Cultures Drawn","default":false},"broad_abx_given":{"type":"boolean","title":"Broad Abx Given","default":false},"crystalloid_30ml_kg":{"type":"boolean","title":"Crystalloid 30Ml Kg","default":false},"vasopressors_initiated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vasopressors Initiated"},"repeat_lactate_if_elevated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Repeat Lactate If Elevated"},"bundle_status":{"$ref":"#/components/schemas/SepsisBundleStatus","default":"bundle_active"},"initiated_at":{"type":"string","format":"date-time","title":"Initiated At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"documented_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documented By"}},"type":"object","required":["admission_id"],"title":"SepsisBundleRecord","description":"SSC 1h/3h/6h bundle compliance."},"SepsisBundleStatus":{"type":"string","enum":["screening","sepsis_alert","septic_shock","bundle_active","bundle_complete","resolved"],"title":"SepsisBundleStatus"},"SepsisScreenRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"vitals":{"additionalProperties":true,"type":"object","title":"Vitals"},"labs":{"additionalProperties":true,"type":"object","title":"Labs"}},"type":"object","required":["patient_id"],"title":"SepsisScreenRequest"},"SepsisScreening":{"properties":{"screening_id":{"type":"string","title":"Screening Id"},"admission_id":{"type":"string","title":"Admission Id"},"altered_mentation":{"type":"boolean","title":"Altered Mentation","default":false},"respiratory_rate_ge22":{"type":"boolean","title":"Respiratory Rate Ge22","default":false},"sbp_le100":{"type":"boolean","title":"Sbp Le100","default":false},"lactate_mmol_l":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lactate Mmol L"},"suspected_infection":{"type":"boolean","title":"Suspected Infection","default":false},"qsofa_score":{"type":"integer","maximum":3.0,"minimum":0.0,"title":"Qsofa Score","default":0},"status":{"$ref":"#/components/schemas/SepsisBundleStatus","default":"screening"},"screened_at":{"type":"string","format":"date-time","title":"Screened At"},"screened_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screened By"}},"type":"object","required":["admission_id"],"title":"SepsisScreening","description":"qSOFA / Sepsis-3 screening record."},"SeriousAdverseEvent":{"properties":{"sae_id":{"type":"string","title":"Sae Id"},"subject_id":{"type":"string","title":"Subject Id"},"protocol_id":{"type":"string","title":"Protocol Id"},"sae_type":{"$ref":"#/components/schemas/SAEType"},"description":{"type":"string","title":"Description"},"onset_date":{"type":"string","title":"Onset Date"},"resolution_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Date"},"relatedness":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relatedness"},"expectedness":{"type":"string","title":"Expectedness","default":"unexpected"},"reported_to_fda":{"type":"boolean","title":"Reported To Fda","default":false},"fda_report_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fda Report Date"},"reported_to_irb":{"type":"boolean","title":"Reported To Irb","default":false},"reported_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reported By"}},"type":"object","required":["subject_id","protocol_id","sae_type","description","onset_date"],"title":"SeriousAdverseEvent"},"ServiceHealth":{"properties":{"service":{"type":"string","title":"Service"},"status":{"type":"string","title":"Status"},"uptime_30d":{"type":"number","title":"Uptime 30D"}},"type":"object","required":["service","status","uptime_30d"],"title":"ServiceHealth"},"ServiceTokenPolicy":{"properties":{"mechanism":{"type":"string","title":"Mechanism"},"token_ttl_seconds":{"type":"integer","title":"Token Ttl Seconds"},"long_lived_keys_distributed":{"type":"boolean","title":"Long Lived Keys Distributed"}},"type":"object","required":["mechanism","token_ttl_seconds","long_lived_keys_distributed"],"title":"ServiceTokenPolicy"},"ServiceTypeCode":{"type":"string","enum":["30","33","88","35","42","MH","MC","DM","AG","42","UC"],"title":"ServiceTypeCode","description":"X12 271 service type codes (partial — most common)."},"SessionRequest":{"properties":{"id_token":{"type":"string","title":"Id Token"},"bypass_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bypass Token"}},"type":"object","required":["id_token"],"title":"SessionRequest"},"SetPolicyRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"allowed_providers":{"items":{"$ref":"#/components/schemas/ProviderName"},"type":"array","title":"Allowed Providers"},"data_residency":{"$ref":"#/components/schemas/DataResidency","default":"any"},"cost_cap_usd":{"type":"number","title":"Cost Cap Usd","default":0.0},"latency_budget_ms":{"type":"number","title":"Latency Budget Ms","default":0.0},"fine_tune_overrides":{"additionalProperties":{"type":"string"},"type":"object","title":"Fine Tune Overrides"}},"type":"object","required":["tenant_id"],"title":"SetPolicyRequest"},"SetThresholdRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"device_type":{"$ref":"#/components/schemas/RPMDeviceType"},"metric":{"type":"string","title":"Metric"},"low_critical":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Low Critical"},"low_warning":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Low Warning"},"high_warning":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"High Warning"},"high_critical":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"High Critical"}},"type":"object","required":["patient_id","device_type","metric"],"title":"SetThresholdRequest"},"SettingProfile":{"type":"string","enum":["ambulatory_primary","behavioral_health","home_health","hospice","snf_ltc","irf_rehab"],"title":"SettingProfile"},"SeverityThreshold":{"type":"string","enum":["all","moderate_plus","severe_only"],"title":"SeverityThreshold","description":"User-configurable alert threshold.\n\nALL          — surface minor, moderate, severe, and contraindicated alerts\nMODERATE_PLUS — surface moderate, severe, and contraindicated only\nSEVERE_ONLY  — surface severe and contraindicated only"},"ShiftResponse":{"properties":{"shift_id":{"type":"string","title":"Shift Id"},"employee_id":{"type":"string","title":"Employee Id"},"unit_id":{"type":"string","title":"Unit Id"},"shift_date":{"type":"string","title":"Shift Date"},"shift_start":{"type":"string","title":"Shift Start"},"shift_end":{"type":"string","title":"Shift End"},"role":{"type":"string","title":"Role"},"attendance_status":{"$ref":"#/components/schemas/AttendanceStatus"},"clock_in_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clock In Time"},"clock_out_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clock Out Time"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["shift_id","employee_id","unit_id","shift_date","shift_start","shift_end","role","attendance_status","clock_in_time","clock_out_time","created_at"],"title":"ShiftResponse"},"ShiftScheduleRequest":{"properties":{"employee_id":{"type":"string","title":"Employee Id"},"unit_id":{"type":"string","title":"Unit Id"},"shift_date":{"type":"string","title":"Shift Date","description":"ISO date YYYY-MM-DD"},"shift_start":{"type":"string","title":"Shift Start","description":"ISO datetime"},"shift_end":{"type":"string","title":"Shift End","description":"ISO datetime"},"role":{"type":"string","title":"Role"}},"type":"object","required":["employee_id","unit_id","shift_date","shift_start","shift_end","role"],"title":"ShiftScheduleRequest"},"ShiftSwapRequest":{"properties":{"requester_employee_id":{"type":"string","title":"Requester Employee Id"},"target_employee_id":{"type":"string","title":"Target Employee Id"},"requester_shift_id":{"type":"string","title":"Requester Shift Id"},"target_shift_id":{"type":"string","title":"Target Shift Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["requester_employee_id","target_employee_id","requester_shift_id","target_shift_id"],"title":"ShiftSwapRequest"},"ShiftSwapResponse":{"properties":{"swap_id":{"type":"string","title":"Swap Id"},"requester_employee_id":{"type":"string","title":"Requester Employee Id"},"target_employee_id":{"type":"string","title":"Target Employee Id"},"requester_shift_id":{"type":"string","title":"Requester Shift Id"},"target_shift_id":{"type":"string","title":"Target Shift Id"},"status":{"$ref":"#/components/schemas/SwapStatus"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"created_at":{"type":"string","title":"Created At"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"}},"type":"object","required":["swap_id","requester_employee_id","target_employee_id","requester_shift_id","target_shift_id","status","reason","created_at","resolved_at"],"title":"ShiftSwapResponse"},"ShiftType":{"type":"string","enum":["day","night","mid"],"title":"ShiftType"},"ShoppableService":{"properties":{"charge_code":{"type":"string","title":"Charge Code"},"description":{"type":"string","title":"Description"},"cpt_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cpt Code"},"gross_charge":{"type":"number","title":"Gross Charge"},"discounted_cash_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discounted Cash Price"},"payer_negotiated_charges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Payer Negotiated Charges"}},"type":"object","required":["charge_code","description","cpt_code","gross_charge","discounted_cash_price","payer_negotiated_charges"],"title":"ShoppableService"},"SideEffect":{"type":"string","enum":["NONE","FHIR_READ","FHIR_WRITE","EXTERNAL_API","AUDIT_LOG","NOTIFICATION","ORDER_WRITE"],"title":"SideEffect"},"SignEPCSRequest":{"properties":{"prescription_id":{"type":"string","title":"Prescription Id"},"two_factor_method":{"type":"string","title":"Two Factor Method"},"two_factor_response":{"type":"string","title":"Two Factor Response"}},"type":"object","required":["prescription_id","two_factor_method","two_factor_response"],"title":"SignEPCSRequest"},"SignOrderResponse":{"properties":{"order_id":{"type":"string","title":"Order Id"},"resource_type":{"type":"string","title":"Resource Type"},"new_status":{"type":"string","title":"New Status"},"signed_by":{"type":"string","title":"Signed By"},"signed_at":{"type":"string","title":"Signed At"},"provenance_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provenance Id"},"overridden_alert_count":{"type":"integer","title":"Overridden Alert Count"}},"type":"object","required":["order_id","resource_type","new_status","signed_by","signed_at","provenance_id","overridden_alert_count"],"title":"SignOrderResponse"},"SmartClientCreate":{"properties":{"client_name":{"type":"string","title":"Client Name","description":"Human-readable name of the application"},"redirect_uris":{"items":{"type":"string"},"type":"array","title":"Redirect Uris","description":"Allowed redirect URIs"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","description":"OAuth scopes this client may request","default":["patient/*.read"]},"logo_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Uri","description":"URL of app logo for consent screen"},"contacts":{"items":{"type":"string"},"type":"array","title":"Contacts","description":"Developer contact emails"},"jwks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Jwks","description":"Public JWKS for confidential private_key_jwt clients"},"jwks_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jwks Uri","description":"Public JWKS URI for confidential private_key_jwt clients"},"is_public":{"type":"boolean","title":"Is Public","description":"True = public client (PKCE required); False = confidential client","default":true}},"type":"object","required":["client_name","redirect_uris"],"title":"SmartClientCreate"},"SmartClientResponse":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_name":{"type":"string","title":"Client Name"},"redirect_uris":{"items":{"type":"string"},"type":"array","title":"Redirect Uris"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"logo_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Uri"},"contacts":{"items":{"type":"string"},"type":"array","title":"Contacts"},"jwks_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jwks Uri"},"is_public":{"type":"boolean","title":"Is Public"},"created_at":{"type":"number","title":"Created At"},"created_by":{"type":"string","title":"Created By"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret","description":"Plaintext secret, returned only at registration time for confidential clients."}},"type":"object","required":["client_id","client_name","redirect_uris","scopes","logo_uri","contacts","is_public","created_at","created_by"],"title":"SmartClientResponse"},"SmartV2Configuration":{"properties":{"issuer":{"type":"string","title":"Issuer"},"jwks_uri":{"type":"string","title":"Jwks Uri"},"authorization_endpoint":{"type":"string","title":"Authorization Endpoint"},"token_endpoint":{"type":"string","title":"Token Endpoint"},"token_endpoint_auth_methods_supported":{"items":{"type":"string"},"type":"array","title":"Token Endpoint Auth Methods Supported"},"grant_types_supported":{"items":{"type":"string"},"type":"array","title":"Grant Types Supported"},"scopes_supported":{"items":{"type":"string"},"type":"array","title":"Scopes Supported"},"response_types_supported":{"items":{"type":"string"},"type":"array","title":"Response Types Supported"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"code_challenge_methods_supported":{"items":{"type":"string"},"type":"array","title":"Code Challenge Methods Supported"}},"type":"object","required":["issuer","jwks_uri","authorization_endpoint","token_endpoint","token_endpoint_auth_methods_supported","grant_types_supported","scopes_supported","response_types_supported","capabilities","code_challenge_methods_supported"],"title":"SmartV2Configuration","description":"SMART App Launch v2 server metadata (.well-known/smart-configuration)."},"SmokingStatusIn":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"status_code":{"type":"string","title":"Status Code"},"effective_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","status_code"],"title":"SmokingStatusIn"},"SmokingStatusOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"status_code":{"type":"string","title":"Status Code"},"status_display":{"type":"string","title":"Status Display"},"effective_date":{"type":"string","title":"Effective Date"},"recorded_by":{"type":"string","title":"Recorded By"}},"type":"object","required":["id","patient_id","status_code","status_display","effective_date","recorded_by"],"title":"SmokingStatusOut"},"SocialHistoryEntry":{"properties":{"category":{"type":"string","maxLength":200,"title":"Category","description":"SDOH category (e.g. 'smoking_status', 'alcohol_use', 'housing_status', 'occupation')"},"value":{"type":"string","maxLength":1000,"title":"Value","description":"Patient-reported value"}},"type":"object","required":["category","value"],"title":"SocialHistoryEntry","description":"Social history item (USCDI v3 Social Determinants of Health / Social History)."},"SourceAttributeDraft":{"properties":{"bibliographic_citation":{"type":"string","title":"Bibliographic Citation","default":""},"source_organization":{"type":"string","title":"Source Organization","default":""},"funding_source":{"type":"string","title":"Funding Source","default":""},"release_date":{"type":"string","title":"Release Date","default":""},"revision_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Date"},"last_reviewed_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Reviewed Date"},"validity_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validity Period End"},"logic_version":{"type":"string","title":"Logic Version","default":"1.0.0"},"beneficiary_population":{"type":"string","title":"Beneficiary Population","default":""},"intended_use_context":{"type":"string","title":"Intended Use Context","default":""},"intended_user_roles":{"items":{"type":"string"},"type":"array","title":"Intended User Roles"},"intervention_type":{"type":"string","title":"Intervention Type","default":"reminder"},"alert_type":{"type":"string","title":"Alert Type","default":"soft-stop"},"clinical_domain":{"type":"string","title":"Clinical Domain","default":""},"recommendation_type":{"type":"string","title":"Recommendation Type","default":""},"workflow_integration_point":{"type":"string","title":"Workflow Integration Point","default":""},"evidence_grade":{"type":"string","title":"Evidence Grade","default":""},"intervention_rationale":{"type":"string","title":"Intervention Rationale","default":""},"external_review_status":{"type":"string","title":"External Review Status","default":""},"health_equity_considerations":{"type":"string","title":"Health Equity Considerations","default":""},"limitations_warnings":{"type":"string","title":"Limitations Warnings","default":""},"evaluation_results":{"type":"string","title":"Evaluation Results","default":""},"is_ml_based":{"type":"boolean","title":"Is Ml Based","default":false},"model_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Type"},"training_data_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Data Info"},"training_period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Period"},"fairness_bias_assessment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fairness Bias Assessment"},"quantitative_performance_measures":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantitative Performance Measures"},"input_features":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Features"},"explainability_available":{"type":"boolean","title":"Explainability Available","default":false},"validation_approach":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validation Approach"}},"type":"object","title":"SourceAttributeDraft","description":"All 31 ONC HTI-1 Source Attributes (89 FR 1192, Jan 9 2024).\n\nFields are named to match the existing dsi.SourceAttributionRecord so that\na draft here can be promoted directly into a DSI without reshaping."},"SourceAttributionRecord":{"properties":{"bibliographic_citation":{"type":"string","title":"Bibliographic Citation","description":"Full bibliographic citation for the clinical evidence source"},"source_organization":{"type":"string","title":"Source Organization","description":"Name of the organization or entity that developed the DSI"},"funding_source":{"type":"string","title":"Funding Source","description":"Organization(s) funding the development or maintenance"},"release_date":{"type":"string","title":"Release Date","description":"ISO-8601 date when the DSI was first released"},"revision_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Date","description":"ISO-8601 date of most recent revision"},"last_reviewed_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Reviewed Date","description":"ISO-8601 date of most recent clinical review"},"validity_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validity Period End","description":"ISO-8601 date after which this DSI should be re-evaluated for currency"},"logic_version":{"type":"string","title":"Logic Version","description":"Semantic version of the DSI logic/algorithm (independent of SAR version)","default":"1.0.0"},"beneficiary_population":{"type":"string","title":"Beneficiary Population","description":"Description of the patient population the DSI targets"},"intended_use_context":{"type":"string","title":"Intended Use Context","description":"Workflow integration point(s): e.g. 'order entry', 'chart open', 'lab review'","default":""},"intended_user_roles":{"items":{"type":"string"},"type":"array","title":"Intended User Roles","description":"Roles expected to act on this DSI: e.g. ['physician', 'nurse', 'pharmacist']"},"intervention_type":{"type":"string","title":"Intervention Type","description":"Type of DSI: alert | reminder | order-set | documentation | diagnostic | preventive","default":"reminder"},"alert_type":{"type":"string","title":"Alert Type","description":"Alert interruption level: hard-stop | soft-stop | passive | FYI","default":"soft-stop"},"clinical_domain":{"type":"string","title":"Clinical Domain","description":"Clinical domain(s) addressed: e.g. 'cardiology', 'primary care', 'pharmacy'","default":""},"recommendation_type":{"type":"string","title":"Recommendation Type","description":"Diagnostic | therapeutic | preventive | administrative","default":""},"workflow_integration_point":{"type":"string","title":"Workflow Integration Point","description":"Specific EHR location where the DSI fires: e.g. 'medication-prescribe hook'","default":""},"evidence_grade":{"type":"string","title":"Evidence Grade","description":"Evidence grading: e.g. 'USPSTF Grade A', 'AHA Class I Level A', 'Expert Consensus'","default":""},"intervention_rationale":{"type":"string","title":"Intervention Rationale","description":"Clinical rationale: why this intervention improves patient outcomes","default":""},"external_review_status":{"type":"string","title":"External Review Status","description":"Peer review / endorsement status: e.g. 'Peer reviewed', 'Society endorsed'","default":""},"health_equity_considerations":{"type":"string","title":"Health Equity Considerations","description":"Known disparities, population gaps, or equity mitigations for this DSI","default":""},"limitations_warnings":{"type":"string","title":"Limitations Warnings","description":"Known limitations, contraindications, or warnings about applying this DSI","default":""},"evaluation_results":{"type":"string","title":"Evaluation Results","description":"Summary of evaluation: sensitivity, specificity, PPV, real-world validation studies, or equivalent performance metrics"},"is_ml_based":{"type":"boolean","title":"Is Ml Based","description":"True when the DSI uses a machine-learning model","default":false},"model_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Type","description":"(ML) Model architecture: logistic regression, random forest, neural net, etc."},"training_data_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Data Info","description":"(Required when is_ml_based=True) Description of training data: source, time-window, demographics, any known biases"},"training_period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Period","description":"(ML) Date range of training data: e.g. '2018-01-01 to 2022-12-31'"},"fairness_bias_assessment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fairness Bias Assessment","description":"(ML) Description of fairness evaluation, subgroup performance, bias mitigations"},"quantitative_performance_measures":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantitative Performance Measures","description":"(ML) AUC, sensitivity, specificity, PPV, NPV with confidence intervals"},"input_features":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Features","description":"(ML) Key input features / variables used by the model"},"explainability_available":{"type":"boolean","title":"Explainability Available","description":"(ML) True when the system can produce a per-prediction explanation (e.g. SHAP)","default":false},"validation_approach":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validation Approach","description":"(ML) How the model was validated: held-out test set, prospective study, etc."}},"type":"object","required":["bibliographic_citation","source_organization","funding_source","release_date","beneficiary_population","evaluation_results"],"title":"SourceAttributionRecord","description":"ONC HTI-1 Source Attribute Set per § 170.315(b)(11)(iii).\n\nCovers all 31 required attributes from the ONC Health Technology Infrastructure\n(HTI-1) Final Rule (89 FR 1192, Jan 9 2024).  Most extended fields are optional\nso that pre-existing DSI definitions remain valid; Drummond testing requires at\nleast the mandatory fields.\n\nAttribute groups\n----------------\nCore (1-9)    : bibliographic provenance, steward, funding, dates\nContext (10-16): intended use, user roles, workflow, clinical domain, alert type\nEvidence (17-22): evidence grade, rationale, external review, equity, limitations\nAlgorithm (23-31): ML-specific transparency fields (required when is_ml_based=True)"},"SourceSystem":{"type":"string","enum":["Epic","OSCAR EMR","Meditech","Athenahealth","Cerner","Generic"],"title":"SourceSystem"},"SpecSection":{"properties":{"section_id":{"type":"string","title":"Section Id","description":"Dotted section identifier, e.g. '170.315(g)(10)'"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"source_doc":{"type":"string","title":"Source Doc","description":"Name / URL of the source document"},"checksum":{"type":"string","title":"Checksum","description":"SHA-256 of body, used for change detection"}},"type":"object","required":["section_id","title","body","source_doc","checksum"],"title":"SpecSection","description":"A parsed section from the canonical product spec."},"Specialty":{"type":"string","enum":["cardiology","orthopedics","dermatology","ob_gyn","psychiatry","pediatrics","endocrinology","general_medicine","pulmonology","nephrology"],"title":"Specialty"},"SpecimenCollectionRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"order_id":{"type":"string","title":"Order Id","description":"FHIR ServiceRequest / order ID"},"specimen_type":{"type":"string","title":"Specimen Type","description":"SNOMED CT specimen type code"},"collection_site":{"type":"string","title":"Collection Site","description":"Body site of collection"},"collector_id":{"type":"string","title":"Collector Id","description":"Collector staff ID"},"tube_barcode":{"type":"string","title":"Tube Barcode","description":"Specimen tube barcode"},"volume_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume Ml","description":"Volume collected in mL"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","order_id","specimen_type","collection_site","collector_id","tube_barcode"],"title":"SpecimenCollectionRequest"},"SpecimenResponse":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"order_id":{"type":"string","title":"Order Id"},"specimen_type":{"type":"string","title":"Specimen Type"},"collection_site":{"type":"string","title":"Collection Site"},"collector_id":{"type":"string","title":"Collector Id"},"tube_barcode":{"type":"string","title":"Tube Barcode"},"volume_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume Ml"},"status":{"$ref":"#/components/schemas/SpecimenStatus"},"collected_at":{"type":"string","title":"Collected At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","patient_id","order_id","specimen_type","collection_site","collector_id","tube_barcode","volume_ml","status","collected_at","notes"],"title":"SpecimenResponse"},"SpecimenStatus":{"type":"string","enum":["collected","in_transit","accessioned","processing","stored","rejected","disposed"],"title":"SpecimenStatus"},"StaffRole":{"type":"string","enum":["RN","LPN","CNA","MD","NP","PA","RT","PT","TRANSPORTER","HOUSEKEEPING"],"title":"StaffRole"},"StaffShiftRequest":{"properties":{"staff_id":{"type":"string","title":"Staff Id"},"staff_role":{"$ref":"#/components/schemas/StaffRole"},"unit_id":{"type":"string","title":"Unit Id"},"shift_type":{"$ref":"#/components/schemas/ShiftType"},"shift_date":{"type":"string","title":"Shift Date"},"patient_assignments":{"items":{"type":"string"},"type":"array","title":"Patient Assignments","description":"List of patient IDs"}},"type":"object","required":["staff_id","staff_role","unit_id","shift_type","shift_date"],"title":"StaffShiftRequest"},"StaffingForecastRequest":{"properties":{"unit_id":{"type":"string","title":"Unit Id"},"forecast_date":{"type":"string","title":"Forecast Date","description":"ISO date YYYY-MM-DD"},"projected_census":{"type":"integer","minimum":0.0,"title":"Projected Census","description":"Projected occupied beds for the date"},"acuity_level":{"type":"number","maximum":5.0,"minimum":1.0,"title":"Acuity Level","description":"Average patient acuity score (1=low, 5=critical)","default":2.5}},"type":"object","required":["unit_id","forecast_date","projected_census"],"title":"StaffingForecastRequest"},"StaffingForecastResponse":{"properties":{"unit_id":{"type":"string","title":"Unit Id"},"forecast_date":{"type":"string","title":"Forecast Date"},"projected_census":{"type":"integer","title":"Projected Census"},"acuity_level":{"type":"number","title":"Acuity Level"},"target_hppd":{"type":"number","title":"Target Hppd","description":"Target nursing hours per patient day"},"recommended_rn_count":{"type":"integer","title":"Recommended Rn Count"},"recommended_cna_count":{"type":"integer","title":"Recommended Cna Count"},"total_nursing_hours_needed":{"type":"number","title":"Total Nursing Hours Needed"},"notes":{"type":"string","title":"Notes"}},"type":"object","required":["unit_id","forecast_date","projected_census","acuity_level","target_hppd","recommended_rn_count","recommended_cna_count","total_nursing_hours_needed","notes"],"title":"StaffingForecastResponse"},"StaffingRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"shift":{"type":"string","title":"Shift","default":"day"}},"type":"object","required":["patient_id"],"title":"StaffingRequest"},"StartEvalRequest":{"properties":{"record_id":{"type":"string","title":"Record Id"},"pack_type":{"$ref":"#/components/schemas/EvalPackType"},"suite_name":{"type":"string","title":"Suite Name"},"metrics":{"items":{"$ref":"#/components/schemas/EvalMetric"},"type":"array","title":"Metrics"},"bias_metrics":{"items":{"$ref":"#/components/schemas/BiasMetric"},"type":"array","title":"Bias Metrics"}},"type":"object","required":["record_id","pack_type","suite_name","metrics"],"title":"StartEvalRequest"},"StartJobRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"source_meds":{"items":{"$ref":"#/components/schemas/app__serving__medication_reconciler_agent__MedicationEntry"},"type":"array","title":"Source Meds"},"target_meds":{"anyOf":[{"items":{"$ref":"#/components/schemas/app__serving__medication_reconciler_agent__MedicationEntry"},"type":"array"},{"type":"null"}],"title":"Target Meds"}},"type":"object","required":["patient_id","source_meds"],"title":"StartJobRequest"},"StartSessionRequest":{"properties":{"agent_code":{"type":"string","title":"Agent Code"},"patient_id":{"type":"string","title":"Patient Id"},"model_id":{"type":"string","title":"Model Id","default":"claude-opus-4-6"},"permissions":{"items":{"$ref":"#/components/schemas/ToolPermission"},"type":"array","title":"Permissions"},"registry_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry Version Id"}},"type":"object","required":["agent_code","patient_id"],"title":"StartSessionRequest"},"StartWorkflowRequest":{"properties":{"definition_id":{"type":"string","title":"Definition Id"},"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"}},"type":"object","required":["definition_id","patient_id"],"title":"StartWorkflowRequest"},"StatementCreateRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Encounter Ids"},"statement_date":{"type":"string","title":"Statement Date","description":"YYYY-MM-DD"},"due_date":{"type":"string","title":"Due Date"},"charges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Charges","description":"Line items from charge-capture"},"payer_payments":{"type":"number","minimum":0.0,"title":"Payer Payments","default":0.0},"adjustments":{"type":"number","minimum":0.0,"title":"Adjustments","default":0.0},"patient_balance":{"type":"number","minimum":0.0,"title":"Patient Balance"}},"type":"object","required":["patient_id","encounter_ids","statement_date","due_date","charges","patient_balance"],"title":"StatementCreateRequest"},"StatementResponse":{"properties":{"statement_id":{"type":"string","title":"Statement Id"},"patient_id":{"type":"string","title":"Patient Id"},"statement_date":{"type":"string","title":"Statement Date"},"due_date":{"type":"string","title":"Due Date"},"total_charges":{"type":"number","title":"Total Charges"},"payer_payments":{"type":"number","title":"Payer Payments"},"adjustments":{"type":"number","title":"Adjustments"},"patient_balance":{"type":"number","title":"Patient Balance"},"status":{"$ref":"#/components/schemas/StatementStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["statement_id","patient_id","statement_date","due_date","total_charges","payer_payments","adjustments","patient_balance","status","created_at"],"title":"StatementResponse"},"StatementStatus":{"type":"string","enum":["draft","sent","viewed","paid","written_off","in_collections"],"title":"StatementStatus"},"StepType":{"type":"string","enum":["human","automated","decision","hybrid"],"title":"StepType"},"StimulationProtocol":{"type":"string","enum":["antagonist","long_lupron","mini_ivf","natural","fet_programmed","fet_natural"],"title":"StimulationProtocol"},"StowRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"accession_number":{"type":"string","title":"Accession Number","description":"RIS accession number"},"study_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Study Description"},"modality":{"$ref":"#/components/schemas/Modality"},"referring_physician":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referring Physician"},"study_date":{"type":"string","title":"Study Date"},"dicom_json_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Dicom Json Metadata","description":"DICOM JSON (PS3.18) metadata"}},"type":"object","required":["patient_id","accession_number","modality"],"title":"StowRequest"},"StowResponse":{"properties":{"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"accession_number":{"type":"string","title":"Accession Number"},"status":{"type":"string","title":"Status"},"received_at":{"type":"string","title":"Received At"}},"type":"object","required":["study_instance_uid","accession_number","status","received_at"],"title":"StowResponse"},"StratifiedCount":{"properties":{"stratum_value":{"type":"string","title":"Stratum Value"},"initial_population":{"type":"integer","title":"Initial Population"},"denominator":{"type":"integer","title":"Denominator"},"denominator_exclusion":{"type":"integer","title":"Denominator Exclusion"},"numerator":{"type":"integer","title":"Numerator"},"performance_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Performance Rate"}},"type":"object","required":["stratum_value","initial_population","denominator","denominator_exclusion","numerator"],"title":"StratifiedCount","description":"Aggregate population counts for one stratum value."},"StratifiedMeasureResult":{"properties":{"measure_id":{"type":"string","title":"Measure Id"},"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"},"stratifier":{"type":"string","title":"Stratifier"},"strata":{"items":{"$ref":"#/components/schemas/StratifiedCount"},"type":"array","title":"Strata"}},"type":"object","required":["measure_id","period_start","period_end","stratifier","strata"],"title":"StratifiedMeasureResult","description":"Stratified results for one measure."},"StructuredReportRequest":{"properties":{"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"patient_id":{"type":"string","title":"Patient Id"},"template":{"$ref":"#/components/schemas/SRTemplate"},"findings":{"additionalProperties":true,"type":"object","title":"Findings","description":"Template-specific findings dict"},"impression":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impression"},"radiologist_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Radiologist Id"}},"type":"object","required":["study_instance_uid","patient_id","template","findings"],"title":"StructuredReportRequest"},"StructuredReportResponse":{"properties":{"id":{"type":"string","title":"Id"},"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"patient_id":{"type":"string","title":"Patient Id"},"template":{"type":"string","title":"Template"},"findings":{"additionalProperties":true,"type":"object","title":"Findings"},"impression":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impression"},"fhir_diagnostic_report_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Diagnostic Report Id"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","study_instance_uid","patient_id","template","findings","impression","fhir_diagnostic_report_id","created_at"],"title":"StructuredReportResponse"},"StudyStatus":{"type":"string","enum":["scheduled","arrived","in_progress","completed","cancelled"],"title":"StudyStatus"},"SubjectEnrollment":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"protocol_id":{"type":"string","title":"Protocol Id"},"patient_id":{"type":"string","title":"Patient Id"},"screening_date":{"type":"string","title":"Screening Date"},"enrollment_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enrollment Date"},"subject_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Number"},"arm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Arm"},"status":{"$ref":"#/components/schemas/SubjectStatus","default":"screening"},"consent_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Date"},"consent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Version"},"consent_signed":{"type":"boolean","title":"Consent Signed","default":false},"e_signature_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"E Signature Hash"}},"type":"object","required":["protocol_id","patient_id","screening_date"],"title":"SubjectEnrollment"},"SubjectStatus":{"type":"string","enum":["screening","enrolled","on_treatment","follow_up","completed","withdrawn","screen_failed","lost_to_follow_up"],"title":"SubjectStatus"},"SubmissionResult":{"properties":{"case_id":{"type":"string","title":"Case Id"},"submission_id":{"type":"string","title":"Submission Id"},"format":{"type":"string","title":"Format"},"registry_id":{"type":"string","title":"Registry Id"},"submitted_at":{"type":"string","title":"Submitted At"},"status":{"type":"string","title":"Status"}},"type":"object","required":["case_id","submission_id","format","registry_id","submitted_at","status"],"title":"SubmissionResult"},"SubmissionStatus":{"type":"string","enum":["pending","accepted","rejected","edited"],"title":"SubmissionStatus"},"SubmitAmendmentRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"resource_type":{"type":"string","title":"Resource Type","description":"FHIR resource type being amended"},"resource_id":{"type":"string","title":"Resource Id","description":"Opaque FHIR resource ID"},"requested_change":{"type":"string","maxLength":4000,"minLength":1,"title":"Requested Change","description":"Patient's description of the desired change"}},"type":"object","required":["patient_id","resource_type","resource_id","requested_change"],"title":"SubmitAmendmentRequest"},"SubmitDocumentRequest":{"properties":{"relationship_id":{"type":"string","title":"Relationship Id"},"delegate_uid":{"type":"string","title":"Delegate Uid"},"document_type":{"type":"string","title":"Document Type"},"document_reference":{"type":"string","title":"Document Reference"},"liveness_check_passed":{"type":"boolean","title":"Liveness Check Passed","default":false}},"type":"object","required":["relationship_id","delegate_uid","document_type","document_reference"],"title":"SubmitDocumentRequest"},"SubmitPHICaptureRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"intake":{"$ref":"#/components/schemas/PHIIntakePayload","description":"Structured health information payload"}},"type":"object","required":["patient_id","intake"],"title":"SubmitPHICaptureRequest"},"SubmitProofingRequest":{"properties":{"relationship_id":{"type":"string","title":"Relationship Id"},"assurance_level":{"$ref":"#/components/schemas/IdentityAssuranceLevel"},"evidence_type":{"type":"string","title":"Evidence Type"},"evidence_reference":{"type":"string","title":"Evidence Reference"},"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["relationship_id","assurance_level","evidence_type","evidence_reference","outcome"],"title":"SubmitProofingRequest"},"SubmitRequest":{"properties":{"reviewer_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Notes"}},"type":"object","title":"SubmitRequest"},"SubmitTriageRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"chief_complaint":{"type":"string","title":"Chief Complaint"},"symptoms":{"items":{"type":"string"},"type":"array","title":"Symptoms"},"symptom_duration_hours":{"type":"number","title":"Symptom Duration Hours"},"severity_1_10":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Severity 1 10"},"vital_signs":{"additionalProperties":true,"type":"object","title":"Vital Signs"},"locale":{"$ref":"#/components/schemas/SupportedLocale","default":"en"}},"type":"object","required":["patient_id","chief_complaint","symptoms","symptom_duration_hours","severity_1_10"],"title":"SubmitTriageRequest"},"SubscriptionStatus":{"type":"string","enum":["active","paused","error","off"],"title":"SubscriptionStatus"},"SuperUserRequest":{"properties":{"uid":{"type":"string","title":"Uid","description":"Firebase UID of the super-user."},"name":{"type":"string","title":"Name"},"department":{"type":"string","title":"Department"},"coverage_days":{"items":{"type":"string"},"type":"array","title":"Coverage Days","description":"Go-live coverage days, e.g. ['2026-05-11', '2026-05-12']."}},"type":"object","required":["uid","name","department"],"title":"SuperUserRequest"},"SupplyForecastRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"facility_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Unit"},"horizon_days":{"type":"integer","title":"Horizon Days","default":30}},"type":"object","required":["patient_id"],"title":"SupplyForecastRequest"},"SupportedLocale":{"type":"string","enum":["en","es","zh","vi","tl","ko","ru","ar","ht","pt"],"title":"SupportedLocale"},"SurfaceKind":{"type":"string","enum":["clinical_content","marketing","performance"],"title":"SurfaceKind"},"SurgicalSiteMarking":{"type":"string","enum":["marked","not_applicable","exempted"],"title":"SurgicalSiteMarking"},"SurgicalTimeOut":{"properties":{"id":{"type":"string","title":"Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"patient_id":{"type":"string","title":"Patient Id"},"procedure_name":{"type":"string","title":"Procedure Name"},"laterality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Laterality"},"site_marking":{"$ref":"#/components/schemas/SurgicalSiteMarking","default":"marked"},"asa_status":{"$ref":"#/components/schemas/ASAPhysicalStatus"},"anesthesia_type":{"$ref":"#/components/schemas/AnesthesiaType"},"surgeon_id":{"type":"string","title":"Surgeon Id"},"anesthesiologist_id":{"type":"string","title":"Anesthesiologist Id"},"scrub_tech_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scrub Tech Id"},"circulator_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Circulator Id"},"allergies_confirmed":{"type":"boolean","title":"Allergies Confirmed","default":false},"imaging_available":{"type":"boolean","title":"Imaging Available","default":false},"antibiotic_prophylaxis_given":{"type":"boolean","title":"Antibiotic Prophylaxis Given","default":false},"antibiotic_prophylaxis_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Antibiotic Prophylaxis Time"},"dvt_prophylaxis_ordered":{"type":"boolean","title":"Dvt Prophylaxis Ordered","default":false},"implants_available":{"type":"boolean","title":"Implants Available","default":false},"special_equipment_confirmed":{"type":"boolean","title":"Special Equipment Confirmed","default":false},"time_out_status":{"$ref":"#/components/schemas/TimeOutStatus","default":"pending"},"time_out_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Time Out Completed At"},"time_out_completed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Out Completed By"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["encounter_id","patient_id","procedure_name","asa_status","anesthesia_type","surgeon_id","anesthesiologist_id"],"title":"SurgicalTimeOut"},"SurveyAnswer":{"properties":{"question_link_id":{"type":"string","title":"Question Link Id"},"answer_value_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Value String"},"answer_value_integer":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Answer Value Integer"},"answer_value_boolean":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Answer Value Boolean"}},"type":"object","required":["question_link_id"],"title":"SurveyAnswer"},"SurveyCreateRequest":{"properties":{"survey_type":{"$ref":"#/components/schemas/app__serving__quality_depth__SurveyType"},"title":{"type":"string","title":"Title"},"facility_id":{"type":"string","title":"Facility Id"},"target_period_start":{"type":"string","format":"date","title":"Target Period Start"},"target_period_end":{"type":"string","format":"date","title":"Target Period End"},"state_specific_form_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Specific Form Id","description":"State form identifier for STATE_SPECIFIC surveys"},"custom_questions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Custom Questions"}},"type":"object","required":["survey_type","title","facility_id","target_period_start","target_period_end"],"title":"SurveyCreateRequest","description":"Create a healthcare survey instance — (f)(7)."},"SurveyResponseIn":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"survey_type":{"$ref":"#/components/schemas/app__serving__healthcare_surveys__SurveyType"},"questionnaire_id":{"type":"string","title":"Questionnaire Id","description":"FHIR Questionnaire canonical URL or ID"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"},"answers":{"items":{"$ref":"#/components/schemas/SurveyAnswer"},"type":"array","title":"Answers"},"completed_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed Date"}},"type":"object","required":["patient_id","survey_type","questionnaire_id","answers"],"title":"SurveyResponseIn"},"SurveyResponseOut":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"survey_type":{"type":"string","title":"Survey Type"},"questionnaire_id":{"type":"string","title":"Questionnaire Id"},"status":{"type":"string","title":"Status"},"completed_date":{"type":"string","title":"Completed Date"},"answer_count":{"type":"integer","title":"Answer Count"}},"type":"object","required":["id","patient_id","survey_type","questionnaire_id","status","completed_date","answer_count"],"title":"SurveyResponseOut"},"SurveyResponseSubmit":{"properties":{"respondent_id":{"type":"string","title":"Respondent Id","description":"Anonymised respondent token"},"responses":{"additionalProperties":true,"type":"object","title":"Responses","description":"question_id → answer mapping"},"submitted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted At"}},"type":"object","required":["respondent_id","responses"],"title":"SurveyResponseSubmit","description":"Submit responses for a healthcare survey — (f)(7)."},"SurveyStatus":{"type":"string","enum":["draft","open","closed","submitted"],"title":"SurveyStatus"},"SurveySubmissionResult":{"properties":{"response_id":{"type":"string","title":"Response Id"},"submission_id":{"type":"string","title":"Submission Id"},"submitted_at":{"type":"string","title":"Submitted At"},"status":{"type":"string","title":"Status"}},"type":"object","required":["response_id","submission_id","submitted_at","status"],"title":"SurveySubmissionResult"},"SurvivorshipRuleRequest":{"properties":{"domain":{"$ref":"#/components/schemas/EntityDomain"},"field":{"type":"string","title":"Field","description":"Data element name, e.g. 'given_name', 'dose_quantity'"},"source_precedence":{"items":{"type":"string"},"type":"array","title":"Source Precedence","description":"Ordered list of source system identifiers, highest priority first"},"conflict_strategy":{"$ref":"#/components/schemas/app__serving__b12_mdm__ConflictStrategy","default":"highest_precedence"},"rationale":{"type":"string","title":"Rationale","description":"Business/clinical justification for this rule"}},"type":"object","required":["domain","field","source_precedence","rationale"],"title":"SurvivorshipRuleRequest"},"SwapStatus":{"type":"string","enum":["pending","approved","rejected","cancelled"],"title":"SwapStatus"},"SymptomEntry":{"properties":{"symptom":{"type":"string","title":"Symptom"},"onset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset"},"severity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Severity"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["symptom"],"title":"SymptomEntry"},"SymptomTriageRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"chief_complaint":{"type":"string","title":"Chief Complaint"},"age_years":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Years"}},"type":"object","required":["patient_id","chief_complaint"],"title":"SymptomTriageRequest"},"SyncPullRequest":{"properties":{"since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"},"resource_types":{"items":{"type":"string"},"type":"array","title":"Resource Types"},"patient_ids":{"items":{"type":"string"},"type":"array","title":"Patient Ids"}},"type":"object","title":"SyncPullRequest"},"SystemStatus":{"properties":{"overall":{"type":"string","title":"Overall"},"services":{"items":{"$ref":"#/components/schemas/ServiceHealth"},"type":"array","title":"Services"}},"type":"object","required":["overall","services"],"title":"SystemStatus"},"TEFCADocumentQueryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"patient_home_community_id":{"type":"string","title":"Patient Home Community Id"},"document_types":{"items":{"type":"string"},"type":"array","title":"Document Types","description":"LOINC document type codes"},"date_range_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Range Start"},"date_range_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Range End"},"purpose_of_use":{"$ref":"#/components/schemas/TEFCAQueryPurpose","default":"TREATMENT"},"requesting_provider_npi":{"type":"string","title":"Requesting Provider Npi"}},"type":"object","required":["patient_id","patient_home_community_id","requesting_provider_npi"],"title":"TEFCADocumentQueryRequest","description":"TEFCA XCA document query request."},"TEFCAPatientQueryRequest":{"properties":{"given_name":{"type":"string","title":"Given Name"},"family_name":{"type":"string","title":"Family Name"},"birth_date":{"type":"string","title":"Birth Date"},"gender":{"type":"string","title":"Gender"},"purpose_of_use":{"$ref":"#/components/schemas/TEFCAQueryPurpose","default":"TREATMENT"},"requesting_provider_npi":{"type":"string","title":"Requesting Provider Npi"},"requesting_organization_id":{"type":"string","title":"Requesting Organization Id"},"qhin_endpoints":{"items":{"type":"string"},"type":"array","title":"Qhin Endpoints","description":"QHIN IDs to query; empty = broadcast"}},"type":"object","required":["given_name","family_name","birth_date","gender","requesting_provider_npi","requesting_organization_id"],"title":"TEFCAPatientQueryRequest","description":"TEFCA XCPD patient discovery request."},"TEFCAQueryPurpose":{"type":"string","enum":["TREATMENT","PAYMENT","OPERATIONS","PUBLIC_HEALTH","RESEARCH","INDIVIDUAL_ACCESS"],"title":"TEFCAQueryPurpose"},"TTSFormat":{"type":"string","enum":["mp3","wav","ogg"],"title":"TTSFormat"},"TTSRequest":{"properties":{"text":{"type":"string","maxLength":4096,"title":"Text"},"voice_id":{"type":"string","title":"Voice Id","default":"en-US-neural-A"},"format":{"$ref":"#/components/schemas/TTSFormat","default":"mp3"},"speed":{"type":"number","maximum":2.0,"minimum":0.5,"title":"Speed","default":1.0},"pitch":{"type":"number","maximum":10.0,"minimum":-10.0,"title":"Pitch","default":0.0}},"type":"object","required":["text"],"title":"TTSRequest"},"TagResourceRequest":{"properties":{"resource_id":{"type":"string","title":"Resource Id","description":"FHIR resource logical ID"},"resource_type":{"type":"string","title":"Resource Type","description":"FHIR resource type, e.g. 'Observation'"},"patient_id":{"type":"string","title":"Patient Id"},"category":{"$ref":"#/components/schemas/SensitivityCode"},"tagged_by":{"type":"string","title":"Tagged By","description":"UID of clinician applying the tag"}},"type":"object","required":["resource_id","resource_type","patient_id","category","tagged_by"],"title":"TagResourceRequest"},"TaskClass":{"type":"string","enum":["clinical_qa","summarization","extraction","coding","ambient_dictation","safety_screen","embedding"],"title":"TaskClass"},"TelehealthModality":{"type":"string","enum":["audio_video","audio_only","store_forward","remote_monitoring"],"title":"TelehealthModality"},"TemplateField":{"properties":{"field_key":{"type":"string","title":"Field Key"},"label":{"type":"string","title":"Label"},"field_type":{"$ref":"#/components/schemas/FieldType"},"required":{"type":"boolean","title":"Required","default":false},"fhir_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fhir Source"},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"default_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Value"},"help_text":{"type":"string","title":"Help Text","default":""}},"type":"object","required":["field_key","label","field_type"],"title":"TemplateField"},"TemplateRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"template_type":{"$ref":"#/components/schemas/TemplateType"},"version":{"type":"string","title":"Version","description":"Semantic version","default":"1.0.0"},"content":{"type":"string","title":"Content","description":"Template body (may include {{placeholders}})"},"loinc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loinc Code","description":"LOINC code for the note type"}},"type":"object","required":["tenant_id","name","template_type","content"],"title":"TemplateRequest"},"TemplateType":{"type":"string","enum":["history_and_physical","procedure_note","discharge_summary","progress_note","consultation_note","operative_note","behavioral_health","other"],"title":"TemplateType"},"TenantConfigUpdate":{"properties":{"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"province":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Province"},"applicable_laws":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Applicable Laws"},"retention_years_medical":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retention Years Medical"},"retention_years_audit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retention Years Audit"},"notification_channels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Notification Channels"},"approved_ehr_integrations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Approved Ehr Integrations"}},"type":"object","title":"TenantConfigUpdate"},"TenantConfigUpsert":{"properties":{"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"province":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Province"},"applicable_laws":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Applicable Laws"},"retention_years_medical":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retention Years Medical"},"retention_years_audit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retention Years Audit"},"notification_channels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Notification Channels"},"approved_ehr_integrations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Approved Ehr Integrations"},"feature_flags":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Feature Flags"}},"type":"object","title":"TenantConfigUpsert","description":"Full or partial upsert for tenant-level configuration."},"TenantInfo":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"display_name":{"type":"string","title":"Display Name"},"region":{"type":"string","title":"Region"},"fhir_version":{"type":"string","title":"Fhir Version"},"feature_flags":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Feature Flags"}},"type":"object","required":["tenant_id","display_name","region","fhir_version","feature_flags"],"title":"TenantInfo"},"TenantProfileAssignment":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"profile":{"$ref":"#/components/schemas/SettingProfile"},"overrides":{"additionalProperties":true,"type":"object","title":"Overrides","description":"Per-tenant overrides to the base profile"}},"type":"object","required":["tenant_id","profile"],"title":"TenantProfileAssignment"},"TestProtocol":{"properties":{"reference_standard":{"type":"string","title":"Reference Standard","default":"NISTIR 7742 — Customized Common Industry Format Template for Electronic Health Record Usability Testing"},"scope":{"type":"string","title":"Scope","default":"§ 170.315(g)(3)(i) safety-enhanced design referenced criteria"},"participant_recruitment":{"additionalProperties":true,"type":"object","title":"Participant Recruitment","default":{"roles":["Physician","Nurse / NP / PA","Pharmacist","Care coordinator","Patient"],"min_per_capability":10,"min_total":10,"screening_criteria":["Primary user of clinical EHR systems (≥ 1 yr experience for clinical roles)","No Sphere EHR developer / designer affiliation","Normal or corrected-to-normal vision"]}},"test_tasks_per_criterion":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Test Tasks Per Criterion","default":{"a1":["Order a new medication","Modify dose of existing order","Cancel a CPOE order"],"a2":["Order a lab panel","Review pending lab orders","Cancel a lab order"],"a3":["Order a diagnostic imaging study","Review imaging order status"],"a4":["Trigger a drug-drug interaction alert","Override alert with rationale"],"a5":["Record patient demographics","Update preferred language field"],"a14":["Register an implantable device (UDI scan)","View device history"],"b2":["Reconcile medication list from imported document"],"b3":["Electronically prescribe a controlled substance"],"b11":["Review a source attribute","Enable a decision support intervention"]}},"data_collection_method":{"type":"string","title":"Data Collection Method","default":"Think-aloud protocol; screen + audio recording; observer error log. SUS questionnaire administered post-session."},"success_thresholds":{"additionalProperties":true,"type":"object","title":"Success Thresholds","default":{"task_completion_rate":"≥ 78 %","SUS_score":"≥ 68 (industry average)","critical_error_rate":"0 % on safety-critical tasks"}},"protocol_version":{"type":"string","title":"Protocol Version","default":"1.0.0"},"approved_by":{"type":"string","title":"Approved By","default":"UX Lead / Clinical Informatics"},"approved_date":{"type":"string","title":"Approved Date","default":"2026-05-09"}},"type":"object","title":"TestProtocol"},"TestingReason":{"type":"string","enum":["pre_employment","random","post_incident","reasonable_suspicion","return_to_duty","follow_up"],"title":"TestingReason"},"TextDirection":{"type":"string","enum":["ltr","rtl"],"title":"TextDirection"},"ThroughputQuota":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"messages_per_second":{"type":"integer","title":"Messages Per Second"},"bytes_per_second":{"type":"integer","title":"Bytes Per Second"},"burst_factor":{"type":"number","title":"Burst Factor","default":2.0},"current_utilization_pct":{"type":"number","title":"Current Utilization Pct"},"throttled":{"type":"boolean","title":"Throttled"}},"type":"object","required":["tenant_id","messages_per_second","bytes_per_second","current_utilization_pct","throttled"],"title":"ThroughputQuota","description":"Per-tenant polyglot throughput quota."},"ThroughputStats":{"properties":{"messages_received_total":{"type":"integer","title":"Messages Received Total"},"messages_per_second_last_60s":{"type":"number","title":"Messages Per Second Last 60S"},"ack_accepted":{"type":"integer","title":"Ack Accepted"},"ack_error":{"type":"integer","title":"Ack Error"},"ack_rejected":{"type":"integer","title":"Ack Rejected"},"ring_buffer_utilization_pct":{"type":"number","title":"Ring Buffer Utilization Pct"}},"type":"object","required":["messages_received_total","messages_per_second_last_60s","ack_accepted","ack_error","ack_rejected","ring_buffer_utilization_pct"],"title":"ThroughputStats"},"TimeOutStatus":{"type":"string","enum":["pending","completed","aborted"],"title":"TimeOutStatus"},"TimeseriesQuery":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"loinc_codes":{"items":{"type":"string"},"type":"array","title":"Loinc Codes"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"aggregation":{"type":"string","title":"Aggregation","description":"mean | min | max | last","default":"mean"},"bucket_interval":{"type":"string","title":"Bucket Interval","description":"TimescaleDB bucket interval e.g. '1 hour', '1 day'","default":"1 day"}},"type":"object","required":["patient_id","loinc_codes","start_datetime","end_datetime"],"title":"TimeseriesQuery"},"TlsPolicy":{"properties":{"min_tls_version":{"type":"string","title":"Min Tls Version"},"profile":{"type":"string","title":"Profile"},"https_redirect":{"type":"boolean","title":"Https Redirect"},"http_port":{"type":"integer","title":"Http Port"},"https_port":{"type":"integer","title":"Https Port"},"service_auth_method":{"type":"string","title":"Service Auth Method"}},"type":"object","required":["min_tls_version","profile","https_redirect","http_port","https_port","service_auth_method"],"title":"TlsPolicy"},"TokenIssueRequest":{"properties":{"device_fingerprint":{"type":"string","title":"Device Fingerprint"}},"type":"object","required":["device_fingerprint"],"title":"TokenIssueRequest","description":"Request body for issuing a device-bound short-lived token pair."},"TokenRefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"},"device_fingerprint":{"type":"string","title":"Device Fingerprint"}},"type":"object","required":["refresh_token","device_fingerprint"],"title":"TokenRefreshRequest"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"Bearer"},"expires_in":{"type":"integer","title":"Expires In","default":3600},"scope":{"type":"string","title":"Scope"},"patient":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient"},"encounter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter"},"id_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id Token"},"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"},"need_patient_banner":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Need Patient Banner"},"smart_style_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smart Style Url"}},"type":"object","required":["access_token","scope"],"title":"TokenResponse","description":"SMART App Launch token response.\n\nFields beyond the OAuth basics follow SMART App Launch v2.2.0 §5: ``patient``\nand ``encounter`` carry launch context; ``need_patient_banner`` and\n``smart_style_url`` are required when an EHR launch grants a user-level\nscope so the host UI can be matched."},"TonometryReading":{"properties":{"reading_id":{"type":"string","title":"Reading Id"},"patient_id":{"type":"string","title":"Patient Id"},"exam_date":{"type":"string","title":"Exam Date"},"od_iop_mmhg":{"type":"number","title":"Od Iop Mmhg"},"os_iop_mmhg":{"type":"number","title":"Os Iop Mmhg"},"method":{"type":"string","title":"Method","default":"non_contact"},"od_suspicious":{"type":"boolean","title":"Od Suspicious","default":false},"os_suspicious":{"type":"boolean","title":"Os Suspicious","default":false},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"}},"type":"object","required":["patient_id","exam_date","od_iop_mmhg","os_iop_mmhg"],"title":"TonometryReading"},"ToolCallLogRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"tool_name":{"type":"string","title":"Tool Name"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs"},"outputs":{"additionalProperties":true,"type":"object","title":"Outputs"}},"type":"object","required":["session_id","tool_name","inputs","outputs"],"title":"ToolCallLogRequest"},"ToolInvokeRequest":{"properties":{"tool_name":{"type":"string","title":"Tool Name"},"input":{"additionalProperties":true,"type":"object","title":"Input"},"caller_scopes":{"items":{"type":"string"},"type":"array","title":"Caller Scopes"},"caller_roles":{"items":{"type":"string"},"type":"array","title":"Caller Roles"},"caller_id":{"type":"string","title":"Caller Id","default":""},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},"type":"object","required":["tool_name"],"title":"ToolInvokeRequest"},"ToolInvokeResponse":{"properties":{"invocation_id":{"type":"string","title":"Invocation Id"},"tool_name":{"type":"string","title":"Tool Name"},"outcome":{"$ref":"#/components/schemas/SandboxOutcome"},"output":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output"},"audit_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audit Event Id"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason"},"invoked_at":{"type":"string","format":"date-time","title":"Invoked At"}},"type":"object","required":["invocation_id","tool_name","outcome"],"title":"ToolInvokeResponse"},"ToolPermission":{"type":"string","enum":["fhir:read","fhir:write","knowledge_base:read","structured_output:write","speech:transcript:read"],"title":"ToolPermission"},"ToolRegistration":{"properties":{"tool_id":{"type":"string","title":"Tool Id"},"name":{"type":"string","title":"Name","description":"Dotted namespace, e.g. patient.summarize"},"display_name":{"type":"string","title":"Display Name"},"description":{"type":"string","title":"Description"},"version":{"type":"string","title":"Version","default":"1.0.0"},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema"},"output_schema":{"additionalProperties":true,"type":"object","title":"Output Schema"},"side_effects":{"items":{"$ref":"#/components/schemas/SideEffect"},"type":"array","title":"Side Effects"},"phi_classification":{"$ref":"#/components/schemas/PhiClassification","default":"NO_PHI"},"allowed_scopes":{"items":{"type":"string"},"type":"array","title":"Allowed Scopes"},"abac_predicate":{"type":"string","title":"Abac Predicate","description":"CEL-like expression; empty string = always allow","default":""},"audit_class":{"$ref":"#/components/schemas/AuditClass","default":"STANDARD"},"rate_limits":{"$ref":"#/components/schemas/RateLimitConfig"},"builtin":{"type":"boolean","title":"Builtin","default":false},"registered_at":{"type":"string","format":"date-time","title":"Registered At"},"deprecated":{"type":"boolean","title":"Deprecated","default":false}},"type":"object","required":["name","display_name","description"],"title":"ToolRegistration"},"ToolRegistrationRequest":{"properties":{"name":{"type":"string","title":"Name"},"display_name":{"type":"string","title":"Display Name"},"description":{"type":"string","title":"Description"},"version":{"type":"string","title":"Version","default":"1.0.0"},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema"},"output_schema":{"additionalProperties":true,"type":"object","title":"Output Schema"},"side_effects":{"items":{"$ref":"#/components/schemas/SideEffect"},"type":"array","title":"Side Effects"},"phi_classification":{"$ref":"#/components/schemas/PhiClassification","default":"NO_PHI"},"allowed_scopes":{"items":{"type":"string"},"type":"array","title":"Allowed Scopes"},"abac_predicate":{"type":"string","title":"Abac Predicate","default":""},"audit_class":{"$ref":"#/components/schemas/AuditClass","default":"STANDARD"},"rate_limits":{"$ref":"#/components/schemas/RateLimitConfig"}},"type":"object","required":["name","display_name","description"],"title":"ToolRegistrationRequest"},"ToothNotationSystem":{"type":"string","enum":["universal","fdi"],"title":"ToothNotationSystem"},"TraceEventType":{"type":"string","enum":["session_started","tool_call","tool_result","model_invoke","model_response","output_guard_pass","output_guard_fail","confidence_evaluated","escalation_triggered","session_completed","session_failed"],"title":"TraceEventType"},"TraceabilityRef":{"properties":{"spec_section_id":{"type":"string","title":"Spec Section Id"},"spec_source_doc":{"type":"string","title":"Spec Source Doc"},"spec_checksum":{"type":"string","title":"Spec Checksum"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"type":"object","required":["spec_section_id","spec_source_doc","spec_checksum","generated_at"],"title":"TraceabilityRef","description":"Back-reference from a generated artifact to its originating spec section."},"TracerRequest":{"properties":{"tracer_type":{"$ref":"#/components/schemas/TracerType"},"scope":{"type":"string","title":"Scope","description":"Unit, department, or system being traced"},"surveyor_uid":{"type":"string","title":"Surveyor Uid"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id","description":"Required for PATIENT_TRACER"}},"type":"object","required":["tracer_type","scope","surveyor_uid"],"title":"TracerRequest"},"TracerType":{"type":"string","enum":["PATIENT_TRACER","SYSTEM_TRACER","EOC_TRACER","MEDICATION_MGMT_TRACER","IC_TRACER"],"title":"TracerType"},"TrafficTopologyOut":{"properties":{"total_weight":{"type":"integer","title":"Total Weight"},"regions":{"items":{"$ref":"#/components/schemas/RegionOut"},"type":"array","title":"Regions"},"active_active_count":{"type":"integer","title":"Active Active Count"},"global_lb_enabled":{"type":"boolean","title":"Global Lb Enabled"}},"type":"object","required":["total_weight","regions","active_active_count","global_lb_enabled"],"title":"TrafficTopologyOut"},"TrainingTrack":{"type":"string","enum":["clinician_core","clinician_cpoe","clinical_staff","admin_scheduling","privacy_security","sre_it"],"title":"TrainingTrack"},"TransactionType":{"type":"string","enum":["receive","dispense","transfer","adjustment","waste"],"title":"TransactionType"},"TranscriptLine":{"properties":{"speaker_label":{"type":"string","title":"Speaker Label"},"channel":{"$ref":"#/components/schemas/DiarizationChannel","default":"unknown"},"text":{"type":"string","title":"Text"},"text_redacted":{"type":"string","title":"Text Redacted","default":""},"confidence":{"type":"number","title":"Confidence","default":1.0},"offset_ms":{"type":"integer","title":"Offset Ms","default":0},"duration_ms":{"type":"integer","title":"Duration Ms","default":0},"word_timestamps":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Word Timestamps"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["speaker_label","text"],"title":"TranscriptLine"},"TranscriptSegment":{"properties":{"speaker":{"type":"string","title":"Speaker"},"text":{"type":"string","title":"Text"},"timestamp_seconds":{"type":"number","title":"Timestamp Seconds","default":0.0}},"type":"object","required":["speaker","text"],"title":"TranscriptSegment"},"TransferRequest":{"properties":{"request_id":{"type":"string","title":"Request Id"},"visit_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visit Id"},"patient_id":{"type":"string","title":"Patient Id"},"direction":{"type":"string","title":"Direction"},"referring_facility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referring Facility"},"accepting_facility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepting Facility"},"referring_physician":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referring Physician"},"accepting_physician":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepting Physician"},"clinical_summary":{"type":"string","title":"Clinical Summary"},"acuity_level":{"anyOf":[{"$ref":"#/components/schemas/TriageLevel"},{"type":"null"}]},"requested_service":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Service"},"insurance_verified":{"type":"boolean","title":"Insurance Verified","default":false},"bed_confirmed":{"type":"boolean","title":"Bed Confirmed","default":false},"transport_arranged":{"type":"boolean","title":"Transport Arranged","default":false},"status":{"$ref":"#/components/schemas/TransferStatus","default":"initiated"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","direction","clinical_summary"],"title":"TransferRequest","description":"Inbound/outbound transfer request managed by the transfer center."},"TransferStatus":{"type":"string","enum":["initiated","accepted","declined","in_transit","completed","cancelled"],"title":"TransferStatus"},"TransfusionAdministration":{"properties":{"admin_id":{"type":"string","title":"Admin Id"},"order_id":{"type":"string","title":"Order Id"},"verification_id":{"type":"string","title":"Verification Id"},"patient_id":{"type":"string","title":"Patient Id"},"unit_isbt":{"type":"string","title":"Unit Isbt"},"product":{"$ref":"#/components/schemas/BloodProduct"},"start_dt":{"type":"string","format":"date-time","title":"Start Dt"},"end_dt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Dt"},"volume_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume Ml"},"vital_signs_pre":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Vital Signs Pre"},"vital_signs_post":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Vital Signs Post"},"administered_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Administered By"}},"type":"object","required":["order_id","verification_id","patient_id","unit_isbt","product"],"title":"TransfusionAdministration"},"TransfusionOrder":{"properties":{"order_id":{"type":"string","title":"Order Id"},"patient_id":{"type":"string","title":"Patient Id"},"ts_id":{"type":"string","title":"Ts Id"},"product":{"$ref":"#/components/schemas/BloodProduct"},"units_ordered":{"type":"integer","title":"Units Ordered","default":1},"indication":{"type":"string","title":"Indication"},"ordered_by":{"type":"string","title":"Ordered By"},"ordered_at":{"type":"string","format":"date-time","title":"Ordered At"},"urgent":{"type":"boolean","title":"Urgent","default":false},"massive_transfusion_protocol":{"type":"boolean","title":"Massive Transfusion Protocol","default":false}},"type":"object","required":["patient_id","ts_id","product","indication","ordered_by"],"title":"TransfusionOrder"},"TransfusionReaction":{"properties":{"reaction_id":{"type":"string","title":"Reaction Id"},"admin_id":{"type":"string","title":"Admin Id"},"patient_id":{"type":"string","title":"Patient Id"},"reaction_type":{"$ref":"#/components/schemas/TransfusionReactionType"},"onset_dt":{"type":"string","format":"date-time","title":"Onset Dt"},"symptoms":{"items":{"type":"string"},"type":"array","title":"Symptoms"},"transfusion_stopped":{"type":"boolean","title":"Transfusion Stopped","default":true},"workup_initiated":{"type":"boolean","title":"Workup Initiated","default":false},"reported_to_blood_bank":{"type":"boolean","title":"Reported To Blood Bank","default":false},"fda_reported":{"type":"boolean","title":"Fda Reported","default":false},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"}},"type":"object","required":["admin_id","patient_id","reaction_type"],"title":"TransfusionReaction"},"TransfusionReactionType":{"type":"string","enum":["acute_hemolytic","delayed_hemolytic","febrile_non_hemolytic","allergic_mild","allergic_anaphylactic","taco","trali","septic","other"],"title":"TransfusionReactionType"},"TransitionRequest":{"properties":{"target_stage":{"$ref":"#/components/schemas/ModelLifecycleStage"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["target_stage"],"title":"TransitionRequest"},"TranslationRequest":{"properties":{"content":{"type":"string","title":"Content"},"target_locale":{"$ref":"#/components/schemas/SupportedLocale"},"reading_level":{"$ref":"#/components/schemas/ReadingLevel","default":"grade_8"},"content_type":{"type":"string","title":"Content Type","default":"plain_text"}},"type":"object","required":["content","target_locale"],"title":"TranslationRequest"},"TransmissionSummary":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"message_type":{"type":"string","enum":["NewRx","RxRenewalResponse","RxChangeResponse","CancelRx","RxRenewalRequest","RxChangeRequest","RxFill"],"title":"Message Type"},"patient_id":{"type":"string","title":"Patient Id"},"pharmacy_ncpdp_id":{"type":"string","title":"Pharmacy Ncpdp Id"},"drug_description":{"type":"string","title":"Drug Description"},"status":{"type":"string","title":"Status"},"created":{"type":"string","title":"Created"}},"type":"object","required":["transmission_id","message_type","patient_id","pharmacy_ncpdp_id","drug_description","status","created"],"title":"TransmissionSummary"},"TransmitRequest":{"properties":{"recipient_address":{"type":"string","title":"Recipient Address","description":"Direct address of the receiving organisation or provider (user@domain.tld)"},"sender_address":{"type":"string","title":"Sender Address","description":"Direct address to use as the sender (defaults to portal address)","default":"patient-portal@spheretechnology.com"},"doc_type":{"type":"string","title":"Doc Type","description":"C-CDA document type: ccd | referral | discharge","default":"ccd"}},"type":"object","required":["recipient_address"],"title":"TransmitRequest"},"TransportOrderRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_id":{"type":"string","title":"Encounter Id"},"origin_location":{"type":"string","title":"Origin Location"},"destination_location":{"type":"string","title":"Destination Location"},"priority":{"$ref":"#/components/schemas/TransportPriority","default":"routine"},"equipment_needed":{"items":{"type":"string"},"type":"array","title":"Equipment Needed","description":"e.g. ['wheelchair', 'oxygen_tank']"},"escort_required":{"type":"boolean","title":"Escort Required","default":false},"ordering_provider_npi":{"type":"string","title":"Ordering Provider Npi"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","encounter_id","origin_location","destination_location","ordering_provider_npi"],"title":"TransportOrderRequest"},"TransportPriority":{"type":"string","enum":["routine","urgent","stat"],"title":"TransportPriority"},"TransportStatus":{"type":"string","enum":["requested","assigned","in_progress","completed","cancelled"],"title":"TransportStatus"},"TransportType":{"type":"string","enum":["mllp_tls","mllp_plain","https","sftp"],"title":"TransportType"},"TreatmentOutcome":{"type":"string","enum":["completed","early_termination","interrupted","patient_refused"],"title":"TreatmentOutcome"},"TriageAssessment":{"properties":{"visit_id":{"type":"string","title":"Visit Id"},"triage_level":{"$ref":"#/components/schemas/TriageLevel"},"vital_signs":{"additionalProperties":true,"type":"object","title":"Vital Signs"},"chief_complaint":{"type":"string","title":"Chief Complaint"},"pain_scale":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Pain Scale"},"nurse_id":{"type":"string","title":"Nurse Id"},"assessed_at":{"type":"string","format":"date-time","title":"Assessed At"}},"type":"object","required":["visit_id","triage_level","chief_complaint","nurse_id"],"title":"TriageAssessment"},"TriageCallStatus":{"type":"string","enum":["open","triaged","closed"],"title":"TriageCallStatus"},"TriageLevel":{"type":"string","enum":["esi_1","esi_2","esi_3","esi_4","esi_5"],"title":"TriageLevel"},"TriageRequest":{"properties":{"acuity_level":{"$ref":"#/components/schemas/AcuityLevel"},"acuity_rationale":{"type":"string","title":"Acuity Rationale","default":""}},"type":"object","required":["acuity_level"],"title":"TriageRequest"},"TrialPhase":{"type":"string","enum":["phase_1","phase_1_2","phase_2","phase_2_3","phase_3","phase_4","observational","expanded_access"],"title":"TrialPhase"},"TriggerRule":{"properties":{"code":{"type":"string","title":"Code","description":"SNOMED CT or ICD-10-CM trigger code from RCKMS"},"code_system":{"type":"string","title":"Code System","description":"Code system: 'SNOMED' for SNOMED CT, 'ICD10CM' for ICD-10-CM","default":"SNOMED"},"code_display":{"type":"string","title":"Code Display","description":"Human-readable name for the trigger code","default":""},"jurisdiction":{"type":"string","title":"Jurisdiction","description":"Target jurisdiction code (e.g. 'CA', 'NY', 'MOCK')"},"condition":{"type":"string","title":"Condition","description":"Name of the reportable condition"},"notes":{"type":"string","title":"Notes","description":"Optional free-text notes","default":""}},"type":"object","required":["code","jurisdiction","condition"],"title":"TriggerRule","description":"A rule mapping a RCKMS trigger code to a reportable condition and jurisdiction."},"TriggerRuleResponse":{"properties":{"code":{"type":"string","title":"Code","description":"SNOMED CT or ICD-10-CM trigger code from RCKMS"},"code_system":{"type":"string","title":"Code System","description":"Code system: 'SNOMED' for SNOMED CT, 'ICD10CM' for ICD-10-CM","default":"SNOMED"},"code_display":{"type":"string","title":"Code Display","description":"Human-readable name for the trigger code","default":""},"jurisdiction":{"type":"string","title":"Jurisdiction","description":"Target jurisdiction code (e.g. 'CA', 'NY', 'MOCK')"},"condition":{"type":"string","title":"Condition","description":"Name of the reportable condition"},"notes":{"type":"string","title":"Notes","description":"Optional free-text notes","default":""},"id":{"type":"string","title":"Id"}},"type":"object","required":["code","jurisdiction","condition","id"],"title":"TriggerRuleResponse"},"TrustAnchorRegisterRequest":{"properties":{"anchor_name":{"type":"string","title":"Anchor Name","description":"Human-readable name for this trust anchor (e.g. 'DirectTrust Root CA 1')"},"pem_certificate":{"type":"string","title":"Pem Certificate","description":"PEM-encoded X.509 CA root certificate"},"issuer_domain":{"type":"string","title":"Issuer Domain","description":"Domain scope for this anchor (e.g. 'direct.hospital.org'). Empty = global.","default":""}},"type":"object","required":["anchor_name","pem_certificate"],"title":"TrustAnchorRegisterRequest","description":"Body for POST /direct/trust-anchors — register a DirectTrust CA root cert."},"TrustAnchorResponse":{"properties":{"anchor_id":{"type":"string","title":"Anchor Id"},"anchor_name":{"type":"string","title":"Anchor Name"},"issuer_domain":{"type":"string","title":"Issuer Domain"},"registered_at":{"type":"string","title":"Registered At"},"fhir_basic_id":{"type":"string","title":"Fhir Basic Id","description":"FHIR Basic resource ID storing the anchor"}},"type":"object","required":["anchor_id","anchor_name","issuer_domain","registered_at","fhir_basic_id"],"title":"TrustAnchorResponse"},"TrustAnchorSummary":{"properties":{"anchor_id":{"type":"string","title":"Anchor Id"},"anchor_name":{"type":"string","title":"Anchor Name"},"issuer_domain":{"type":"string","title":"Issuer Domain"},"registered_at":{"type":"string","title":"Registered At"},"fhir_basic_id":{"type":"string","title":"Fhir Basic Id"}},"type":"object","required":["anchor_id","anchor_name","issuer_domain","registered_at","fhir_basic_id"],"title":"TrustAnchorSummary"},"TrustedConnectionStatus":{"properties":{"compliant":{"type":"boolean","title":"Compliant"},"environment":{"type":"string","title":"Environment"},"tls_policy":{"$ref":"#/components/schemas/TlsPolicy"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["compliant","environment","tls_policy","notes"],"title":"TrustedConnectionStatus"},"TumorBoardCase":{"properties":{"case_id":{"type":"string","title":"Case Id"},"patient_id":{"type":"string","title":"Patient Id"},"tumor_type":{"type":"string","title":"Tumor Type"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"presented_at":{"type":"string","format":"date-time","title":"Presented At"},"attending_specialties":{"items":{"type":"string"},"type":"array","title":"Attending Specialties"},"decision":{"anyOf":[{"$ref":"#/components/schemas/TumorBoardDecision"},{"type":"null"}]},"recommended_regimen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Regimen"},"clinical_trial_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinical Trial Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","tumor_type"],"title":"TumorBoardCase"},"TumorBoardDecision":{"type":"string","enum":["proceed_as_planned","modify_regimen","defer_treatment","transition_to_palliative","enroll_clinical_trial"],"title":"TumorBoardDecision"},"TurnPage":{"properties":{"session_id":{"type":"string","title":"Session Id"},"turns":{"items":{"$ref":"#/components/schemas/TurnRecord"},"type":"array","title":"Turns"},"total_tokens":{"type":"integer","title":"Total Tokens"}},"type":"object","required":["session_id","turns","total_tokens"],"title":"TurnPage"},"TurnRecord":{"properties":{"turn_id":{"type":"string","title":"Turn Id"},"session_id":{"type":"string","title":"Session Id"},"seq":{"type":"integer","title":"Seq"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"tool_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Name"},"token_count":{"type":"integer","title":"Token Count"},"recorded_at":{"type":"string","title":"Recorded At"}},"type":"object","required":["turn_id","session_id","seq","role","content","tool_name","token_count","recorded_at"],"title":"TurnRecord"},"TypeAndScreen":{"properties":{"ts_id":{"type":"string","title":"Ts Id"},"patient_id":{"type":"string","title":"Patient Id"},"abo":{"$ref":"#/components/schemas/ABO"},"rh":{"$ref":"#/components/schemas/RhFactor"},"antibody_screen":{"type":"string","title":"Antibody Screen","default":"negative"},"collected_at":{"type":"string","format":"date-time","title":"Collected At"},"collected_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collected By"},"expiry_dt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry Dt"}},"type":"object","required":["patient_id","abo","rh"],"title":"TypeAndScreen"},"UcdProcessSummary":{"properties":{"standard":{"type":"string","title":"Standard","default":"NISTIR 7741 / ISO 9241-11"},"phases":{"items":{"type":"string"},"type":"array","title":"Phases","default":["1. Context of Use Analysis","2. User Requirements Specification","3. Design Solutions","4. Evaluation (summative usability testing)"]},"participant_criteria":{"type":"string","title":"Participant Criteria","default":"At least 10 representative participants must be included for each in-scope capability tested under § 170.315(g)(3)."},"test_environment":{"type":"string","title":"Test Environment","default":"Simulated clinical environment with representative EHR data; no live PHI used during testing sessions."},"measures_collected":{"items":{"type":"string"},"type":"array","title":"Measures Collected","default":["Task completion rate","Time-on-task","Number of errors (slips, lapses, mistakes)","Satisfaction — System Usability Scale (SUS)","Near-miss / use-error incidents"]},"in_scope_criteria":{"additionalProperties":{"type":"string"},"type":"object","title":"In Scope Criteria"},"document_version":{"type":"string","title":"Document Version","default":"1.0.0"},"last_updated":{"type":"string","title":"Last Updated","default":"2026-05-18"}},"type":"object","title":"UcdProcessSummary"},"UnifiedOrder":{"properties":{"order_id":{"type":"string","title":"Order Id"},"order_type":{"type":"string","title":"Order Type"},"resource_type":{"type":"string","title":"Resource Type"},"status":{"type":"string","title":"Status"},"name":{"type":"string","title":"Name"},"detail":{"type":"string","title":"Detail"},"patient_id":{"type":"string","title":"Patient Id"},"provider_id":{"type":"string","title":"Provider Id"},"authored_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authored On"}},"type":"object","required":["order_id","order_type","resource_type","status","name","detail","patient_id","provider_id","authored_on"],"title":"UnifiedOrder","description":"A normalised view of any order type for the composer UI."},"UnmergeRequest":{"properties":{"merge_id":{"type":"string","title":"Merge Id"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["merge_id","reason"],"title":"UnmergeRequest"},"UpdateDSIStatusRequest":{"properties":{"status":{"$ref":"#/components/schemas/DSIStatus"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Reason for the status change"}},"type":"object","required":["status"],"title":"UpdateDSIStatusRequest"},"UpdateNoteRequest":{"properties":{"note_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note Type"},"sections":{"anyOf":[{"$ref":"#/components/schemas/NoteSections"},{"type":"null"}]}},"type":"object","title":"UpdateNoteRequest"},"UpdatePushTokenRequest":{"properties":{"push_token":{"type":"string","title":"Push Token"}},"type":"object","required":["push_token"],"title":"UpdatePushTokenRequest"},"UpdateSourceAttributesRequest":{"properties":{"source_attributes":{"$ref":"#/components/schemas/SourceAttributeDraft"}},"type":"object","required":["source_attributes"],"title":"UpdateSourceAttributesRequest"},"UpgradePreviewRequest":{"properties":{"source_doc":{"type":"string","title":"Source Doc"},"raw_text":{"type":"string","title":"Raw Text"}},"type":"object","required":["source_doc","raw_text"],"title":"UpgradePreviewRequest"},"UpsertBatchRequest":{"properties":{"points":{"items":{"$ref":"#/components/schemas/UpsertPoint"},"type":"array","title":"Points"}},"type":"object","required":["points"],"title":"UpsertBatchRequest"},"UpsertPoint":{"properties":{"point_id":{"type":"string","title":"Point Id"},"vector":{"items":{"type":"number"},"type":"array","title":"Vector"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["vector"],"title":"UpsertPoint"},"UrgentCareVisit":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"setting_type":{"$ref":"#/components/schemas/AcuteSettingType"},"visit_date":{"type":"string","format":"date-time","title":"Visit Date"},"chief_complaint":{"type":"string","title":"Chief Complaint"},"provider_id":{"type":"string","title":"Provider Id"},"disposition":{"$ref":"#/components/schemas/EncounterDisposition","default":"discharged"},"telehealth_modality":{"anyOf":[{"$ref":"#/components/schemas/TelehealthModality"},{"type":"null"}]},"telehealth_platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telehealth Platform"},"patient_location_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Location State"},"provider_location_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Location State"},"consent_obtained":{"type":"boolean","title":"Consent Obtained","default":false},"fqhc_encounter_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fqhc Encounter Code"},"rhc_visit_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rhc Visit Code"},"sliding_fee_applied":{"type":"boolean","title":"Sliding Fee Applied","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["patient_id","setting_type","chief_complaint","provider_id"],"title":"UrgentCareVisit"},"UserSummary":{"properties":{"uid":{"type":"string","title":"Uid"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"role":{"type":"string","title":"Role"},"mfa_enrolled":{"type":"boolean","title":"Mfa Enrolled"}},"type":"object","required":["uid","email","display_name","role","mfa_enrolled"],"title":"UserSummary"},"VXUSendRequest":{"properties":{"jurisdiction":{"type":"string","title":"Jurisdiction","description":"Jurisdiction code for the target IIS (e.g. 'CA', 'NY', 'MOCK')"},"immunization_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Immunization Ids","description":"FHIR Immunization resource IDs to include. If omitted, all FHIR Immunization resources for the patient are sent."}},"type":"object","required":["jurisdiction"],"title":"VXUSendRequest","description":"Body for POST /immunization-registries/{patient_id}/vxu."},"VXUSendResponse":{"properties":{"transmission_id":{"type":"string","title":"Transmission Id"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"patient_id":{"type":"string","title":"Patient Id"},"immunization_count":{"type":"integer","title":"Immunization Count"},"ack_code":{"type":"string","title":"Ack Code"},"message_control_id":{"type":"string","title":"Message Control Id"}},"type":"object","required":["transmission_id","jurisdiction","patient_id","immunization_count","ack_code","message_control_id"],"title":"VXUSendResponse"},"ValidateRequest":{"properties":{"ccda_base64":{"type":"string","title":"Ccda Base64","description":"Base64-encoded C-CDA XML to validate"}},"type":"object","required":["ccda_base64"],"title":"ValidateRequest","description":"Body for POST /transitions/validate."},"ValidateResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"doc_type":{"type":"string","title":"Doc Type","default":""},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"},"document_title":{"type":"string","title":"Document Title","default":""},"sections":{"items":{"$ref":"#/components/schemas/RenderedSection"},"type":"array","title":"Sections"}},"type":"object","required":["valid"],"title":"ValidateResponse"},"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"},"VascularAccessAssessment":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"patient_id":{"type":"string","title":"Patient Id"},"access_type":{"$ref":"#/components/schemas/AccessType"},"location":{"type":"string","title":"Location"},"bruit_present":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bruit Present"},"thrill_present":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thrill Present"},"flow_ml_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Flow Ml Min"},"stenosis_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stenosis Pct"},"intervention_needed":{"type":"boolean","title":"Intervention Needed","default":false},"assessed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assessed By"},"assessed_at":{"type":"string","format":"date-time","title":"Assessed At"}},"type":"object","required":["patient_id","access_type","location"],"title":"VascularAccessAssessment"},"VectorSearchRequest":{"properties":{"collection":{"type":"string","title":"Collection","default":"clinical_docs"},"query_embedding":{"items":{"type":"number"},"type":"array","title":"Query Embedding"},"top_k":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Top K","default":5}},"type":"object","required":["query_embedding"],"title":"VectorSearchRequest"},"VectorSearchResult":{"properties":{"doc_id":{"type":"string","title":"Doc Id"},"score":{"type":"number","title":"Score"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["doc_id","score","metadata"],"title":"VectorSearchResult"},"VectorUpsertRequest":{"properties":{"collection":{"type":"string","title":"Collection","description":"Vector collection / table name","default":"clinical_docs"},"doc_id":{"type":"string","title":"Doc Id"},"embedding":{"items":{"type":"number"},"type":"array","title":"Embedding","description":"Dense embedding vector (e.g. 1536-dim)"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"De-identified metadata"}},"type":"object","required":["doc_id","embedding"],"title":"VectorUpsertRequest"},"VentWeaningStage":{"type":"string","enum":["not_weaning","sbt_eligible","sbt_in_progress","sbt_passed","extubated","sbt_failed"],"title":"VentWeaningStage"},"VentWeaningUpdate":{"properties":{"weaning_stage":{"$ref":"#/components/schemas/VentWeaningStage"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"}},"type":"object","required":["weaning_stage"],"title":"VentWeaningUpdate"},"VentilatorMode":{"type":"string","enum":["ac_vc","ac_pc","simv","psv","cpap","prvc","aprv","hfov"],"title":"VentilatorMode"},"VentilatorSettings":{"properties":{"settings_id":{"type":"string","title":"Settings Id"},"admission_id":{"type":"string","title":"Admission Id"},"mode":{"$ref":"#/components/schemas/VentilatorMode"},"fio2_pct":{"type":"number","maximum":100.0,"minimum":21.0,"title":"Fio2 Pct"},"tidal_volume_ml":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tidal Volume Ml"},"peep_cmh2o":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peep Cmh2O"},"rate_per_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Per Min"},"pressure_support_cmh2o":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pressure Support Cmh2O"},"weaning_stage":{"$ref":"#/components/schemas/VentWeaningStage","default":"not_weaning"},"sbt_duration_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sbt Duration Min"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"},"recorded_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recorded By"}},"type":"object","required":["admission_id","mode","fio2_pct"],"title":"VentilatorSettings"},"VerificationCadence":{"type":"string","enum":["real_time","batch_72h","day_of","post_service"],"title":"VerificationCadence"},"VerificationDecision":{"properties":{"action":{"type":"string","title":"Action","description":"verify | reject | hold"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"annotation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Annotation"}},"type":"object","required":["action"],"title":"VerificationDecision"},"VerificationRecord":{"properties":{"verification_id":{"type":"string","title":"Verification Id"},"order_id":{"type":"string","title":"Order Id"},"patient_id":{"type":"string","title":"Patient Id"},"medication_id":{"type":"string","title":"Medication Id"},"dose":{"type":"string","title":"Dose"},"route":{"type":"string","title":"Route"},"frequency":{"type":"string","title":"Frequency"},"prescriber_id":{"type":"string","title":"Prescriber Id"},"urgency":{"type":"string","title":"Urgency"},"status":{"$ref":"#/components/schemas/VerificationStatus"},"pharmacist_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pharmacist Id"},"annotation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Annotation"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["verification_id","order_id","patient_id","medication_id","dose","route","frequency","prescriber_id","urgency","status","created_at","updated_at"],"title":"VerificationRecord"},"VerificationSource":{"type":"string","enum":["CAQH","NPDB","OIG_LEIE","SAM_GOV","STATE_BOARD","FSMB","DEA","CMS_PECOS","NPI_REGISTRY"],"title":"VerificationSource"},"VerificationStatus":{"type":"string","enum":["pending","verified","rejected","on_hold"],"title":"VerificationStatus"},"VerifyKBARequest":{"properties":{"kba_session_id":{"type":"string","title":"Kba Session Id"},"answers":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Answers"}},"type":"object","required":["kba_session_id","answers"],"title":"VerifyKBARequest"},"VerifyRequest":{"properties":{"content":{"type":"string","title":"Content","description":"Document content to verify."},"expected_hash":{"type":"string","title":"Expected Hash","description":"Expected SHA-256 hex digest."},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id","description":"Opaque document identifier — included in audit events (no PHI)."}},"type":"object","required":["content","expected_hash"],"title":"VerifyRequest","description":"Request body for document integrity verification."},"VerifyResponse":{"properties":{"verified":{"type":"boolean","title":"Verified"},"algorithm":{"type":"string","title":"Algorithm"},"computed_hash":{"type":"string","title":"Computed Hash"},"expected_hash":{"type":"string","title":"Expected Hash"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"}},"type":"object","required":["verified","algorithm","computed_hash","expected_hash","document_id"],"title":"VerifyResponse"},"ViewerManifest":{"properties":{"study_instance_uid":{"type":"string","title":"Study Instance Uid"},"accession_number":{"type":"string","title":"Accession Number"},"patient_id":{"type":"string","title":"Patient Id"},"patient_name":{"type":"string","title":"Patient Name"},"modality":{"type":"string","title":"Modality"},"study_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Study Description"},"series":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Series"},"viewport_preset":{"additionalProperties":true,"type":"object","title":"Viewport Preset"},"wado_rs_base":{"type":"string","title":"Wado Rs Base"}},"type":"object","required":["study_instance_uid","accession_number","patient_id","patient_name","modality","study_description","series","viewport_preset","wado_rs_base"],"title":"ViewerManifest"},"VisionCorrectionType":{"type":"string","enum":["glasses","contact_lens","bifocal","progressive","none"],"title":"VisionCorrectionType"},"VisitInfo":{"properties":{"visit_id":{"type":"string","title":"Visit Id","description":"Encounter / visit identifier"},"patient_class":{"type":"string","title":"Patient Class","description":"HL7 patient class: E=Emergency, I=Inpatient, O=Outpatient","default":"E"},"admit_datetime":{"type":"string","title":"Admit Datetime","description":"HL7 DTM (yyyyMMddHHmmss); defaults to current UTC time if omitted","default":""},"discharge_datetime":{"type":"string","title":"Discharge Datetime","description":"HL7 DTM; relevant for ADT^A03 discharge messages","default":""},"facility_id":{"type":"string","title":"Facility Id","description":"Facility identifier (optional)","default":""},"chief_complaint_code":{"type":"string","title":"Chief Complaint Code","description":"SNOMED CT concept code for chief complaint","default":""},"chief_complaint_display":{"type":"string","title":"Chief Complaint Display","description":"Human-readable chief complaint display name","default":""},"chief_complaint_text":{"type":"string","title":"Chief Complaint Text","description":"Free-text chief complaint (encoded in OBX with LOINC 8661-1)","default":""}},"type":"object","required":["visit_id"],"title":"VisitInfo","description":"Visit/encounter details used to build the ADT message."},"VitalEventType":{"type":"string","enum":["birth","death","fetal_death","marriage","divorce"],"title":"VitalEventType"},"VitalRecord":{"properties":{"event_type":{"$ref":"#/components/schemas/VitalEventType"},"event_date":{"type":"string","format":"date","title":"Event Date"},"patient_id":{"type":"string","title":"Patient Id"},"state_code":{"type":"string","maxLength":2,"minLength":2,"title":"State Code"},"reporting_facility_npi":{"type":"string","title":"Reporting Facility Npi"},"certificate_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Certificate Number"},"icd10_cause_of_death":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icd10 Cause Of Death","description":"ICD-10 code; required for death events"},"birth_weight_grams":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birth Weight Grams"},"gestational_age_weeks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gestational Age Weeks"},"additional_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Additional Fields"}},"type":"object","required":["event_type","event_date","patient_id","state_code","reporting_facility_npi"],"title":"VitalRecord","description":"State vital records submission."},"VitalsObservation":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"loinc_code":{"type":"string","title":"Loinc Code","description":"LOINC code for the vital (e.g. 8867-4 heart rate)"},"value":{"type":"number","title":"Value"},"unit":{"type":"string","title":"Unit"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"},"device_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Id"}},"type":"object","required":["patient_id","loinc_code","value","unit"],"title":"VitalsObservation"},"VitalsRangeResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"loinc_code":{"type":"string","title":"Loinc Code"},"observations":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Observations"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["patient_id","loinc_code","observations","count"],"title":"VitalsRangeResponse"},"VoiceAuthRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"audio_b64":{"type":"string","title":"Audio B64"},"purpose":{"type":"string","title":"Purpose","default":"step_down_verification"}},"type":"object","required":["session_id","audio_b64"],"title":"VoiceAuthRequest","description":"Voice authentication sample — step-down only.\n\nThis endpoint allows a voice sample to be verified against a stored\nvoiceprint.  If verification fails, the caller retains their existing\nsession auth level — it never blocks access."},"VvRunCreate":{"properties":{"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id","description":"Caller-supplied run ID (e.g. CI job ID)"},"item_id":{"type":"string","title":"Item Id","description":"Traceability item_id this run covers"},"test_level":{"type":"string","title":"Test Level","description":"unit | integration | live_fhir | accessibility | security | uat"},"status":{"type":"string","title":"Status","description":"passed | failed | skipped"},"test_count":{"type":"integer","minimum":0.0,"title":"Test Count","default":0},"failure_count":{"type":"integer","minimum":0.0,"title":"Failure Count","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["item_id","test_level","status"],"title":"VvRunCreate","description":"Payload for recording a V&V run result."},"WebAuthnAuthBeginRequest":{"properties":{"uid":{"type":"string","title":"Uid"}},"type":"object","required":["uid"],"title":"WebAuthnAuthBeginRequest"},"WebAuthnAuthCompleteRequest":{"properties":{"challenge":{"type":"string","title":"Challenge"},"credential":{"additionalProperties":true,"type":"object","title":"Credential"},"uid":{"type":"string","title":"Uid"}},"type":"object","required":["challenge","credential","uid"],"title":"WebAuthnAuthCompleteRequest"},"WebAuthnRegisterCompleteRequest":{"properties":{"challenge":{"type":"string","title":"Challenge"},"credential":{"additionalProperties":true,"type":"object","title":"Credential"},"display_name":{"type":"string","title":"Display Name","default":"Security key"}},"type":"object","required":["challenge","credential"],"title":"WebAuthnRegisterCompleteRequest"},"WebhookSubscription":{"properties":{"client_id":{"type":"string","title":"Client Id"},"fhir_resource_types":{"items":{"type":"string"},"type":"array","title":"Fhir Resource Types","description":"e.g. ['Patient', 'Encounter', 'Observation']"},"filter_criteria":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter Criteria","description":"FHIR search string to filter events"},"endpoint_url":{"type":"string","title":"Endpoint Url"},"secret":{"type":"string","title":"Secret","description":"HMAC signing secret for payload verification"},"max_retries":{"type":"integer","maximum":10.0,"title":"Max Retries","default":3}},"type":"object","required":["client_id","fhir_resource_types","endpoint_url","secret"],"title":"WebhookSubscription"},"WorkStatus":{"type":"string","enum":["full_duty","modified_duty","off_work","return_to_work","permanent_restrictions"],"title":"WorkStatus"},"WorkflowDefinition":{"properties":{"definition_id":{"type":"string","title":"Definition Id"},"name":{"type":"string","title":"Name"},"version":{"type":"string","title":"Version"},"steps":{"items":{"$ref":"#/components/schemas/WorkflowStepDef"},"type":"array","title":"Steps"}},"type":"object","required":["definition_id","name","version","steps"],"title":"WorkflowDefinition"},"WorkflowStepDef":{"properties":{"step_key":{"type":"string","title":"Step Key"},"display_name":{"type":"string","title":"Display Name"},"step_type":{"$ref":"#/components/schemas/StepType"},"required_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Required Role"},"depends_on":{"items":{"type":"string"},"type":"array","title":"Depends On"},"deadline_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deadline Minutes"},"escalation_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Role"},"requires_attestation":{"type":"boolean","title":"Requires Attestation","default":false},"requires_cosign":{"type":"boolean","title":"Requires Cosign","default":false},"cosign_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cosign Role"},"dual_control":{"$ref":"#/components/schemas/DualControlConfig"}},"type":"object","required":["step_key","display_name","step_type"],"title":"WorkflowStepDef"},"WorkingMemoryEntry":{"properties":{"session_id":{"type":"string","title":"Session Id"},"key":{"type":"string","title":"Key"},"value":{"title":"Value"},"ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Seconds"},"created_at":{"type":"string","title":"Created At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["session_id","key","value","ttl_seconds","created_at","expires_at"],"title":"WorkingMemoryEntry"},"WorkingMemoryPage":{"properties":{"session_id":{"type":"string","title":"Session Id"},"entries":{"items":{"$ref":"#/components/schemas/WorkingMemoryEntry"},"type":"array","title":"Entries"}},"type":"object","required":["session_id","entries"],"title":"WorkingMemoryPage"},"WorkingMemoryUpsertRequest":{"properties":{"value":{"title":"Value","description":"Arbitrary JSON-serialisable value"},"ttl_seconds":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Ttl Seconds","description":"TTL in seconds; null = session-scoped"}},"type":"object","required":["value"],"title":"WorkingMemoryUpsertRequest"},"XCACrossGatewayQueryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"home_community_id":{"type":"string","title":"Home Community Id"},"initiating_gateway_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initiating Gateway Id"},"class_codes":{"items":{"type":"string"},"type":"array","title":"Class Codes"},"format_codes":{"items":{"type":"string"},"type":"array","title":"Format Codes"},"service_start_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Start From"},"service_start_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Start To"},"purpose_of_use":{"$ref":"#/components/schemas/app__serving__tefca_qhin__PurposeOfUse","default":"TREATMENT"}},"type":"object","required":["patient_id","home_community_id"],"title":"XCACrossGatewayQueryRequest","description":"IHE XCA ITI-38 Cross Gateway Query."},"XCARetrieveRequest":{"properties":{"document_requests":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Document Requests","description":"List of {home_community_id, repository_unique_id, document_unique_id}"},"purpose_of_use":{"$ref":"#/components/schemas/app__serving__tefca_qhin__PurposeOfUse","default":"TREATMENT"}},"type":"object","required":["document_requests"],"title":"XCARetrieveRequest","description":"IHE XCA ITI-39 Cross Gateway Retrieve."},"XCPDPatientDiscoveryRequest":{"properties":{"demographics":{"$ref":"#/components/schemas/PatientDemographics"},"identifiers":{"items":{"$ref":"#/components/schemas/PatientIdentifier"},"type":"array","title":"Identifiers"},"home_community_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Community Id"},"target_community_ids":{"items":{"type":"string"},"type":"array","title":"Target Community Ids","description":"Community OIDs to query; empty = federated broadcast"},"minimum_degree_match":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Minimum Degree Match","description":"Minimum matching percentage (0-100)","default":50}},"type":"object","required":["demographics"],"title":"XCPDPatientDiscoveryRequest","description":"IHE XCPD ITI-55 Cross Gateway Patient Discovery."},"XDSDocumentEntry":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"document_unique_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Unique Id"},"repository_unique_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repository Unique Id"},"class_code":{"type":"string","title":"Class Code","description":"XDS classCode (LOINC or XDS-defined)"},"type_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Code"},"format_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format Code"},"title":{"type":"string","title":"Title"},"author_person":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Person"},"author_institution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Institution"},"service_start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Start Time"},"service_stop_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Stop Time"},"language_code":{"type":"string","title":"Language Code","default":"en-US"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hash"},"mime_type":{"type":"string","title":"Mime Type","default":"application/fhir+json"},"document_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Content","description":"Base64-encoded document content for ITI-41 Provide"}},"type":"object","required":["patient_id","class_code","title"],"title":"XDSDocumentEntry","description":"XDS.b document metadata (DocumentEntry object)."},"XDSDocumentStatus":{"type":"string","enum":["Approved","Deprecated"],"title":"XDSDocumentStatus"},"XDSQueryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"class_codes":{"items":{"type":"string"},"type":"array","title":"Class Codes"},"status":{"items":{"$ref":"#/components/schemas/XDSDocumentStatus"},"type":"array","title":"Status"},"service_start_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Start From"},"service_start_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Start To"},"max_results":{"type":"integer","maximum":1000.0,"title":"Max Results","default":100}},"type":"object","required":["patient_id"],"title":"XDSQueryRequest","description":"XDS.b stored query parameters (ITI-18)."},"XdmPackageRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"document_base64":{"type":"string","title":"Document Base64"},"document_mime_type":{"type":"string","title":"Document Mime Type","default":"application/xml"},"document_title":{"type":"string","title":"Document Title"},"document_type_code":{"type":"string","title":"Document Type Code","default":"34133-9"}},"type":"object","required":["patient_id","document_base64","document_title"],"title":"XdmPackageRequest","description":"Build an XDM ZIP package (IHE ITI-32) for offline / media exchange."},"XdmPackageResponse":{"properties":{"package_id":{"type":"string","title":"Package Id"},"zip_base64":{"type":"string","title":"Zip Base64"},"manifest_id":{"type":"string","title":"Manifest Id"}},"type":"object","required":["package_id","zip_base64","manifest_id"],"title":"XdmPackageResponse"},"XdrMDNResponse":{"properties":{"message_id":{"type":"string","title":"Message Id"},"final_recipient":{"type":"string","title":"Final Recipient"},"original_message_id":{"type":"string","title":"Original Message Id"},"disposition":{"type":"string","title":"Disposition"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["message_id","final_recipient","original_message_id","disposition","timestamp"],"title":"XdrMDNResponse","description":"RFC 3798 / Direct-Project MDN auto-response returned to the sender\nwhen /xdr/receive successfully ingests an inbound submission."},"XdrReadinessResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"mode":{"type":"string","title":"Mode"},"endpoint_url":{"type":"string","title":"Endpoint Url"},"affinity_domain_oid":{"type":"string","title":"Affinity Domain Oid"},"direct_from_address":{"type":"string","title":"Direct From Address"},"reachable":{"type":"boolean","title":"Reachable"},"missing":{"items":{"type":"string"},"type":"array","title":"Missing"},"checks":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Checks"}},"type":"object","required":["ok","mode","endpoint_url","affinity_domain_oid","direct_from_address","reachable","missing","checks"],"title":"XdrReadinessResponse","description":"Non-secret XDR readiness for production cert preflight."},"XdrReceiveRequest":{"properties":{"sender_endpoint":{"type":"string","title":"Sender Endpoint"},"document_base64":{"type":"string","title":"Document Base64"},"document_mime_type":{"type":"string","title":"Document Mime Type","default":"application/xml"},"document_title":{"type":"string","title":"Document Title"},"patient_id":{"type":"string","title":"Patient Id"},"submission_set_id":{"type":"string","title":"Submission Set Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["sender_endpoint","document_base64","document_title","patient_id"],"title":"XdrReceiveRequest","description":"Inbound XDR submission (posted by an upstream XDR hub or HISP gateway)."},"XdrReceiveResponse":{"properties":{"submission_set_id":{"type":"string","title":"Submission Set Id"},"document_reference_id":{"type":"string","title":"Document Reference Id"},"acknowledged":{"type":"boolean","title":"Acknowledged"},"document_type_code":{"type":"string","title":"Document Type Code","description":"LOINC code extracted from inbound metadata (or default 34133-9 Summary of Episode Note if metadata.document_type_code is unset).","default":"34133-9"},"mdn":{"anyOf":[{"$ref":"#/components/schemas/XdrMDNResponse"},{"type":"null"}],"description":"MDN auto-response payload — populated when the inbound submission metadata carries an mdn_requested=true flag, satisfying (h)(2)(ii)."}},"type":"object","required":["submission_set_id","document_reference_id","acknowledged"],"title":"XdrReceiveResponse"},"XdrStatusResponse":{"properties":{"mode":{"type":"string","title":"Mode"},"endpoint_url":{"type":"string","title":"Endpoint Url"},"affinity_domain_oid":{"type":"string","title":"Affinity Domain Oid"},"direct_from_address":{"type":"string","title":"Direct From Address"},"reachable":{"type":"boolean","title":"Reachable"}},"type":"object","required":["mode","endpoint_url","affinity_domain_oid","direct_from_address","reachable"],"title":"XdrStatusResponse"},"XdrSubmitRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID"},"document_base64":{"type":"string","title":"Document Base64","description":"Base64-encoded document (C-CDA R2.1 XML or PDF)"},"document_mime_type":{"type":"string","title":"Document Mime Type","description":"MIME type of the document","default":"application/xml"},"document_title":{"type":"string","title":"Document Title","description":"Human-readable document title"},"document_type_code":{"type":"string","title":"Document Type Code","description":"LOINC code for document type (default: Summary of Episode Note)","default":"34133-9"},"recipient_endpoint":{"type":"string","title":"Recipient Endpoint","description":"Destination XDR SOAP endpoint URL or Direct address"},"submission_set_id":{"type":"string","title":"Submission Set Id","description":"Unique identifier for this submission set"},"event_codes":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Event Codes","description":"Event-code classification(s) — list of {code, code_system, display}. Maps to classificationScheme 2c6b8cb7-8b2a-4051-b291-b1ae6a575ef4."},"confidentiality_code":{"type":"string","title":"Confidentiality Code","description":"HL7 v3 Confidentiality code (N/R/V); maps to classificationScheme f4f85eac-e6cb-4883-b524-f2705394840f.","default":"N"},"healthcare_facility_type_code":{"type":"string","title":"Healthcare Facility Type Code","description":"SNOMED facility-type code; maps to classificationScheme f33fb8ac-18af-42cc-ae0e-ed0b0bdb91e1.","default":"GENERAL"},"practice_setting_code":{"type":"string","title":"Practice Setting Code","description":"SNOMED practice-setting code; maps to classificationScheme cccf5598-8b07-4b77-a05e-ae952c785ead.","default":"GENERAL"},"service_start_time":{"type":"string","title":"Service Start Time","description":"ISO-8601 timestamp marking the start of the clinical service the document covers.","default":""},"service_stop_time":{"type":"string","title":"Service Stop Time","description":"ISO-8601 timestamp marking the end of the clinical service the document covers.","default":""}},"type":"object","required":["patient_id","document_base64","document_title","recipient_endpoint"],"title":"XdrSubmitRequest","description":"ITI-41 Provide and Register Document Set-b."},"XdrSubmitResponse":{"properties":{"submission_set_id":{"type":"string","title":"Submission Set Id"},"tracking_id":{"type":"string","title":"Tracking Id"},"status":{"type":"string","title":"Status"},"document_reference_id":{"type":"string","title":"Document Reference Id"}},"type":"object","required":["submission_set_id","tracking_id","status","document_reference_id"],"title":"XdrSubmitResponse"},"app__serving__abac__PurposeOfUse":{"type":"string","enum":["TREAT","HPAYMT","HOPERAT","HRESCH","ETREAT","SYSADMIN","AUDIT"],"title":"PurposeOfUse","description":"HL7 v3 PurposeOfUse vocabulary (subset)."},"app__serving__accounting_disclosures__DisclosurePurpose":{"type":"string","enum":["publichealth","lawenforcement","judicial","research","oversight","threat","government","workerscomp","other"],"title":"DisclosurePurpose"},"app__serving__agents__ReviewDecision":{"type":"string","enum":["accepted","edited","rejected","revision_requested","marked_unsafe"],"title":"ReviewDecision"},"app__serving__agents__ReviewRequest":{"properties":{"decision":{"$ref":"#/components/schemas/app__serving__agents__ReviewDecision"},"edited_output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Output","description":"Required when decision is 'edited'"},"revision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Note","description":"Required when decision is 'revision_requested' or 'rejected'"}},"type":"object","required":["decision"],"title":"ReviewRequest"},"app__serving__agents_operational__ConsentRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"procedure_code":{"type":"string","title":"Procedure Code"},"language":{"type":"string","title":"Language","default":"en"}},"type":"object","required":["patient_id","procedure_code"],"title":"ConsentRequest"},"app__serving__agents_order_dsi__OrderSetRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"indication":{"type":"string","title":"Indication"},"encounter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Id"}},"type":"object","required":["patient_id","indication"],"title":"OrderSetRequest"},"app__serving__amendments__AmendmentStatus":{"type":"string","enum":["pending","accepted","denied","modified"],"title":"AmendmentStatus"},"app__serving__audit_rules__AlertSeverity":{"type":"string","enum":["low","medium","high","critical"],"title":"AlertSeverity"},"app__serving__b12_mdm__ChangeStatus":{"type":"string","enum":["pending","approved","rejected"],"title":"ChangeStatus"},"app__serving__b12_mdm__ConflictStrategy":{"type":"string","enum":["latest_wins","highest_precedence","most_complete"],"title":"ConflictStrategy"},"app__serving__b13_clinical_content_governance__OrderSetRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"category":{"$ref":"#/components/schemas/OrderSetCategory"},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"},"indication":{"type":"string","title":"Indication","description":"Clinical indication / trigger condition"},"orders":{"items":{"$ref":"#/components/schemas/OrderItem"},"type":"array","title":"Orders"},"evidence_references":{"items":{"type":"string"},"type":"array","title":"Evidence References","description":"PMIDs, guideline URLs, or internal policy refs"},"loinc_panel_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loinc Panel Code"},"version":{"type":"string","title":"Version","description":"Semantic version (MAJOR.MINOR.PATCH)","default":"1.0.0"}},"type":"object","required":["tenant_id","name","category","indication","orders"],"title":"OrderSetRequest"},"app__serving__b13_clinical_content_governance__ReviewDecision":{"type":"string","enum":["approve","reject","defer"],"title":"ReviewDecision"},"app__serving__b13_clinical_content_governance__ReviewRequest":{"properties":{"decision":{"$ref":"#/components/schemas/app__serving__b13_clinical_content_governance__ReviewDecision"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"conditions":{"items":{"type":"string"},"type":"array","title":"Conditions","description":"Conditions that must be met before approval (for DEFER)"}},"type":"object","required":["decision"],"title":"ReviewRequest"},"app__serving__b7_legacy_ehr_import__ApprovalRequest":{"properties":{"approved_by_counsel":{"type":"boolean","title":"Approved By Counsel","description":"Operator confirms BAA is in place and data transfer is authorized"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["approved_by_counsel"],"title":"ApprovalRequest"},"app__serving__b7_legacy_ehr_import__ConflictStrategy":{"type":"string","enum":["skip","overwrite","merge"],"title":"ConflictStrategy"},"app__serving__cancer_registries__CancerSite":{"type":"string","enum":["breast","colon","lung","prostate","melanoma","cervix","leukemia","lymphoma","other"],"title":"CancerSite"},"app__serving__cdm_supply_chain__ChargeStatus":{"type":"string","enum":["active","inactive","draft"],"title":"ChargeStatus"},"app__serving__charge_capture_svc__ChargeStatus":{"type":"string","enum":["draft","pending_review","approved","billed","voided"],"title":"ChargeStatus"},"app__serving__clinical_content__ApprovalRequest":{"properties":{"approved":{"type":"boolean","title":"Approved"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["approved"],"title":"ApprovalRequest"},"app__serving__clinical_data__DirectSendRequest":{"properties":{"to_address":{"type":"string","title":"To Address","description":"Direct address of recipient"},"subject":{"type":"string","maxLength":255,"title":"Subject"},"body":{"type":"string","title":"Body","description":"Message body (plain text)"}},"type":"object","required":["to_address","subject","body"],"title":"DirectSendRequest"},"app__serving__clinical_data__DirectSendResponse":{"properties":{"message_id":{"type":"string","title":"Message Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["message_id","status"],"title":"DirectSendResponse"},"app__serving__compliance_ops__RestrictionDecision":{"properties":{"decision":{"$ref":"#/components/schemas/app__serving__compliance_ops__RestrictionStatus"},"reviewer_uid":{"type":"string","title":"Reviewer Uid"},"rationale":{"type":"string","title":"Rationale"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"expiry_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiry Date"}},"type":"object","required":["decision","reviewer_uid","rationale"],"title":"RestrictionDecision"},"app__serving__compliance_ops__RestrictionRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"recipient_class":{"$ref":"#/components/schemas/RestrictionRecipientClass"},"specific_recipient":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specific Recipient","description":"Named entity e.g. 'Blue Cross Plan XYZ'"},"phi_categories":{"items":{"type":"string"},"type":"array","title":"Phi Categories","description":"FHIR sensitivity categories e.g. ['PSY','HIV','SUD'] or empty for all PHI"},"treatment_types":{"items":{"type":"string"},"type":"array","title":"Treatment Types","description":"Restrict only PHI related to these treatments/conditions"},"oop_paid_in_full":{"type":"boolean","title":"Oop Paid In Full","description":"Patient attests they paid out-of-pocket in full (triggers mandatory acceptance for health-plan restrictions)","default":false},"patient_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Rationale"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"}},"type":"object","required":["patient_id","recipient_class"],"title":"RestrictionRequest"},"app__serving__compliance_ops__RestrictionStatus":{"type":"string","enum":["PENDING","ACCEPTED","DENIED","TERMINATED"],"title":"RestrictionStatus"},"app__serving__credentialing__VerificationRequest":{"properties":{"npi":{"type":"string","title":"Npi"},"sources":{"items":{"$ref":"#/components/schemas/VerificationSource"},"type":"array","title":"Sources"},"requesting_facility_id":{"type":"string","title":"Requesting Facility Id"},"requesting_admin_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requesting Admin Uid"}},"type":"object","required":["npi","requesting_facility_id"],"title":"VerificationRequest"},"app__serving__d13_payer_interop__SubscriptionCreate":{"properties":{"reason":{"type":"string","title":"Reason"},"endpoint":{"type":"string","title":"Endpoint","description":"HTTPS URL to POST notifications to"},"payload_mime_type":{"type":"string","title":"Payload Mime Type","default":"application/fhir+json"},"filter":{"$ref":"#/components/schemas/app__serving__d13_payer_interop__SubscriptionFilter"},"channel_header":{"additionalProperties":{"type":"string"},"type":"object","title":"Channel Header"},"rate_limit":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Rate Limit","description":"Max deliveries per 60-second window","default":100}},"type":"object","required":["reason","endpoint","filter"],"title":"SubscriptionCreate"},"app__serving__d13_payer_interop__SubscriptionFilter":{"properties":{"resource_type":{"type":"string","title":"Resource Type","description":"FHIR resource type to watch"},"search_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Param"},"search_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Value"}},"type":"object","required":["resource_type"],"title":"SubscriptionFilter"},"app__serving__d13_payer_interop__SubscriptionResponse":{"properties":{"sub_id":{"type":"string","title":"Sub Id"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"reason":{"type":"string","title":"Reason"},"endpoint":{"type":"string","title":"Endpoint"},"filter":{"$ref":"#/components/schemas/app__serving__d13_payer_interop__SubscriptionFilter"},"payload_mime_type":{"type":"string","title":"Payload Mime Type"},"channel_header":{"additionalProperties":{"type":"string"},"type":"object","title":"Channel Header"},"rate_limit":{"type":"integer","title":"Rate Limit"},"created_at":{"type":"string","title":"Created At"},"error_count":{"type":"integer","title":"Error Count"},"retry_count":{"type":"integer","title":"Retry Count"},"last_notified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Notified At"},"secret":{"type":"string","title":"Secret","description":"HMAC signing secret — store securely; only returned on creation"}},"type":"object","required":["sub_id","status","reason","endpoint","filter","payload_mime_type","channel_header","rate_limit","created_at","error_count","retry_count","secret"],"title":"SubscriptionResponse"},"app__serving__d13_payer_interop__SubscriptionSummary":{"properties":{"sub_id":{"type":"string","title":"Sub Id"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"reason":{"type":"string","title":"Reason"},"endpoint":{"type":"string","title":"Endpoint"},"filter":{"$ref":"#/components/schemas/app__serving__d13_payer_interop__SubscriptionFilter"},"rate_limit":{"type":"integer","title":"Rate Limit"},"created_at":{"type":"string","title":"Created At"},"error_count":{"type":"integer","title":"Error Count"},"retry_count":{"type":"integer","title":"Retry Count"},"last_notified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Notified At"}},"type":"object","required":["sub_id","status","reason","endpoint","filter","rate_limit","created_at","error_count","retry_count"],"title":"SubscriptionSummary"},"app__serving__d19_polyglot_dataplane__SearchHit":{"properties":{"doc_id":{"type":"string","title":"Doc Id"},"score":{"type":"number","title":"Score"},"source":{"additionalProperties":true,"type":"object","title":"Source"}},"type":"object","required":["doc_id","score","source"],"title":"SearchHit"},"app__serving__data_migration__ApprovalRequest":{"properties":{"approved_by_counsel":{"type":"boolean","title":"Approved By Counsel","description":"Operator confirms that data transfer authorization / BAA is in place"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["approved_by_counsel"],"title":"ApprovalRequest"},"app__serving__demographics__AddressInput":{"properties":{"line":{"items":{"type":"string"},"type":"array","title":"Line","description":"Street address lines"},"city":{"type":"string","title":"City","description":"City","default":""},"state":{"type":"string","title":"State","description":"State (2-letter US code)","default":""},"postal_code":{"type":"string","title":"Postal Code","description":"ZIP / postal code","default":""},"country":{"type":"string","title":"Country","description":"Country (ISO 3166-1 alpha-2)","default":"US"},"use":{"type":"string","title":"Use","description":"Address use: home | work | temp | billing","default":"home"}},"type":"object","title":"AddressInput"},"app__serving__direct_project__DirectSendRequest":{"properties":{"to_address":{"type":"string","title":"To Address","description":"Recipient's Direct address (e.g. provider@direct.hospital.org)"},"subject":{"type":"string","title":"Subject","description":"Message subject line","default":"Sphere EHR — Secure Clinical Message"},"ccda_base64":{"type":"string","title":"Ccda Base64","description":"Base64-encoded C-CDA R2.1 XML payload"},"patient_id":{"type":"string","title":"Patient Id","description":"FHIR Patient resource ID — used for audit trail"},"document_reference_id":{"type":"string","title":"Document Reference Id","description":"Optional: FHIR DocumentReference ID of the C-CDA (if pre-generated)","default":""}},"type":"object","required":["to_address","ccda_base64","patient_id"],"title":"DirectSendRequest","description":"Body for POST /direct/send."},"app__serving__direct_project__DirectSendResponse":{"properties":{"tracking_id":{"type":"string","title":"Tracking Id","description":"HISP-assigned or locally-generated tracking ID"},"from_address":{"type":"string","title":"From Address"},"to_address":{"type":"string","title":"To Address"},"mode":{"type":"string","title":"Mode","description":"Transport mode used: rest | smtp | stub"},"queued_at":{"type":"string","title":"Queued At","description":"ISO-8601 timestamp of submission"},"status":{"type":"string","title":"Status","description":"Submission status: accepted | failed","default":"accepted"}},"type":"object","required":["tracking_id","from_address","to_address","mode","queued_at"],"title":"DirectSendResponse"},"app__serving__directory__AddressInput":{"properties":{"line":{"items":{"type":"string"},"type":"array","title":"Line"},"city":{"type":"string","title":"City","default":""},"state":{"type":"string","title":"State","default":""},"postal_code":{"type":"string","title":"Postal Code","default":""},"country":{"type":"string","title":"Country","default":"US"}},"type":"object","title":"AddressInput"},"app__serving__e12_code_factory__GenerateRequest":{"properties":{"spec_section_id":{"type":"string","title":"Spec Section Id"},"module_name":{"type":"string","title":"Module Name"},"artifact_type":{"type":"string","title":"Artifact Type","description":"'router' or 'test'","default":"router"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","required":["spec_section_id","module_name"],"title":"GenerateRequest"},"app__serving__eprescribing__NewRxRequest":{"properties":{"medication_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medication Request Id","description":"FHIR MedicationRequest ID to use as the source; if absent, drug_info is required."},"drug_info":{"anyOf":[{"$ref":"#/components/schemas/DrugInfo"},{"type":"null"}],"description":"Drug details (required when medication_request_id is absent)"},"pharmacy":{"$ref":"#/components/schemas/PharmacyInfo"},"prescriber_name":{"type":"string","title":"Prescriber Name","description":"Prescribing clinician name"},"prescriber_npi":{"type":"string","title":"Prescriber Npi","description":"Prescribing clinician NPI"},"patient_dob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Dob","description":"Patient date of birth (YYYY-MM-DD) for NCPDP header"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["pharmacy","prescriber_name","prescriber_npi"],"title":"NewRxRequest","description":"Body for POST /eprescribing/{patient_id}/new-rx."},"app__serving__fhir_subscriptions__SubscriptionCreate":{"properties":{"reason":{"type":"string","title":"Reason","description":"Human-readable reason for the subscription"},"endpoint":{"type":"string","title":"Endpoint","description":"Webhook URL to POST notifications to (must be HTTPS in production)"},"payload_mime_type":{"type":"string","title":"Payload Mime Type","description":"MIME type for webhook payload (application/fhir+json or id-only)","default":"application/fhir+json"},"filter":{"$ref":"#/components/schemas/app__serving__fhir_subscriptions__SubscriptionFilter"},"channel_header":{"additionalProperties":{"type":"string"},"type":"object","title":"Channel Header","description":"Additional HTTP headers to include in webhook delivery"}},"type":"object","required":["reason","endpoint","filter"],"title":"SubscriptionCreate","description":"Body for POST /fhir/Subscription."},"app__serving__fhir_subscriptions__SubscriptionFilter":{"properties":{"resource_type":{"type":"string","title":"Resource Type","description":"FHIR resource type to watch (e.g. 'Observation')"},"search_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Param","description":"Optional FHIR search parameter name to further scope (e.g. 'patient' — filter Observations by patient reference)"},"search_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Value","description":"Value for the search_param filter (e.g. 'Patient/abc123')"}},"type":"object","required":["resource_type"],"title":"SubscriptionFilter","description":"Scopes the subscription to a specific resource type + optional search params."},"app__serving__fhir_subscriptions__SubscriptionResponse":{"properties":{"sub_id":{"type":"string","title":"Sub Id"},"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason"},"endpoint":{"type":"string","title":"Endpoint"},"filter":{"$ref":"#/components/schemas/app__serving__fhir_subscriptions__SubscriptionFilter"},"payload_mime_type":{"type":"string","title":"Payload Mime Type"},"channel_header":{"additionalProperties":{"type":"string"},"type":"object","title":"Channel Header"},"created_at":{"type":"string","title":"Created At"},"error_count":{"type":"integer","title":"Error Count"},"last_notified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Notified At"},"secret":{"type":"string","title":"Secret","description":"HMAC signing secret — store securely; only returned on creation"}},"type":"object","required":["sub_id","status","reason","endpoint","filter","payload_mime_type","channel_header","created_at","error_count","secret"],"title":"SubscriptionResponse"},"app__serving__fhir_subscriptions__SubscriptionSummary":{"properties":{"sub_id":{"type":"string","title":"Sub Id"},"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason"},"endpoint":{"type":"string","title":"Endpoint"},"filter":{"$ref":"#/components/schemas/app__serving__fhir_subscriptions__SubscriptionFilter"},"created_at":{"type":"string","title":"Created At"},"error_count":{"type":"integer","title":"Error Count"},"last_notified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Notified At"}},"type":"object","required":["sub_id","status","reason","endpoint","filter","created_at","error_count"],"title":"SubscriptionSummary"},"app__serving__healthcare_surveys__SurveyType":{"type":"string","enum":["hcahps","cg-cahps","hhcahps","edcahps","custom"],"title":"SurveyType"},"app__serving__hospital_ops_d8__AlertSeverity":{"type":"string","enum":["info","warning","critical"],"title":"AlertSeverity"},"app__serving__inbox_b1__SendRequest":{"properties":{"to_address":{"type":"string","maxLength":320,"minLength":3,"title":"To Address"},"subject":{"type":"string","maxLength":998,"title":"Subject","default":""},"body":{"type":"string","title":"Body","default":""},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"doc_type":{"type":"string","title":"Doc Type","default":"CCD"}},"type":"object","required":["to_address"],"title":"SendRequest"},"app__serving__inbox_b1__SendResponse":{"properties":{"message_id":{"type":"string","title":"Message Id"},"status":{"type":"string","title":"Status","default":"sent"},"attached_ccda":{"type":"boolean","title":"Attached Ccda"}},"type":"object","required":["message_id","attached_ccda"],"title":"SendResponse"},"app__serving__law_overlay__ConsentRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"jurisdiction_code":{"type":"string","title":"Jurisdiction Code","description":"PHIPA | PIPEDA | HIPAA"},"consent_type":{"$ref":"#/components/schemas/ConsentType"},"scope":{"type":"string","title":"Scope","description":"What PHI / purpose this consent covers"},"expressed":{"type":"boolean","title":"Expressed","description":"True = express consent; False = implied/inferred"},"obtained_by":{"type":"string","title":"Obtained By","description":"UID or name of staff member obtaining consent"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","jurisdiction_code","consent_type","scope","expressed","obtained_by"],"title":"ConsentRequest"},"app__serving__medication_reconciler_agent__MedicationEntry":{"properties":{"name":{"type":"string","title":"Name"},"rxnorm_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rxnorm Code"},"dose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dose"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency"},"source":{"type":"string","title":"Source","default":"unknown"}},"type":"object","required":["name"],"title":"MedicationEntry"},"app__serving__medications__SignOrderRequest":{"properties":{"override_reason":{"anyOf":[{"type":"string","minLength":5},{"type":"null"}],"title":"Override Reason","description":"Clinical reason for overriding detected interactions. Required when interaction alerts are present."}},"type":"object","title":"SignOrderRequest","description":"Optional body for signing a medication order.\n\nIf *override_reason* is supplied, any interaction alerts at or above the\nuser's severity threshold are overridden and recorded as mitigated\nDetectedIssue resources.  Omitting this field causes the endpoint to\nblock signing when actionable interactions are found."},"app__serving__oncology_infusion__AdverseEventReport":{"properties":{"ae_id":{"type":"string","title":"Ae Id"},"patient_id":{"type":"string","title":"Patient Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"adverse_event":{"type":"string","title":"Adverse Event"},"ctcae_term":{"type":"string","title":"Ctcae Term"},"grade":{"$ref":"#/components/schemas/CTCAEGrade"},"onset_date":{"type":"string","title":"Onset Date"},"resolved":{"type":"boolean","title":"Resolved","default":false},"resolution_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Date"},"attribution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution"},"reported_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reported By"},"requires_hold":{"type":"boolean","title":"Requires Hold","default":false}},"type":"object","required":["patient_id","adverse_event","ctcae_term","grade","onset_date"],"title":"AdverseEventReport"},"app__serving__orders__SignOrderRequest":{"properties":{"resource_type":{"type":"string","title":"Resource Type","description":"'MedicationRequest' | 'ServiceRequest'"},"order_id":{"type":"string","title":"Order Id","description":"FHIR resource ID"},"override_reason":{"anyOf":[{"type":"string","minLength":5},{"type":"null"}],"title":"Override Reason","description":"Clinical reason for overriding blocking safety alerts."}},"type":"object","required":["resource_type","order_id"],"title":"SignOrderRequest"},"app__serving__pharmacy_ops__VerificationRequest":{"properties":{"order_id":{"type":"string","title":"Order Id"},"patient_id":{"type":"string","title":"Patient Id"},"medication_id":{"type":"string","title":"Medication Id"},"dose":{"type":"string","title":"Dose"},"route":{"type":"string","title":"Route"},"frequency":{"type":"string","title":"Frequency"},"prescriber_id":{"type":"string","title":"Prescriber Id"},"urgency":{"type":"string","title":"Urgency","description":"routine | urgent | stat","default":"routine"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["order_id","patient_id","medication_id","dose","route","frequency","prescriber_id"],"title":"VerificationRequest"},"app__serving__phi_capture__MedicationEntry":{"properties":{"name":{"type":"string","maxLength":500,"title":"Name","description":"Medication name"},"dose":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Dose","description":"Dose and unit"},"frequency":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Frequency","description":"How often taken"},"indication":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Indication","description":"Reason for taking"}},"type":"object","required":["name"],"title":"MedicationEntry","description":"Single current medication entry (USCDI v3 Medications)."},"app__serving__privacy__AmendmentStatus":{"type":"string","enum":["pending","accepted","denied"],"title":"AmendmentStatus"},"app__serving__privacy__DisclosurePurpose":{"type":"string","enum":["treatment","payment","healthcare_operations","public_health","legal","research","required_by_law","emergency","other"],"title":"DisclosurePurpose"},"app__serving__privacy__RestrictionDecision":{"properties":{"decision":{"$ref":"#/components/schemas/app__serving__privacy__RestrictionStatus"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["decision"],"title":"RestrictionDecision"},"app__serving__privacy__RestrictionRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"restriction_scope":{"type":"string","title":"Restriction Scope","description":"PHI categories or specific uses/disclosures to restrict"},"requested_recipient":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Recipient","description":"Specific recipient to restrict disclosure to (e.g., a health plan for self-pay)"},"is_self_pay_mandatory":{"type":"boolean","title":"Is Self Pay Mandatory","default":false}},"type":"object","required":["patient_id","restriction_scope"],"title":"RestrictionRequest"},"app__serving__privacy__RestrictionStatus":{"type":"string","enum":["pending","agreed","denied","terminated"],"title":"RestrictionStatus"},"app__serving__quality_depth__CancerSite":{"type":"string","enum":["C50","C18","C34","C61","C43","C85","C91"],"title":"CancerSite"},"app__serving__quality_depth__PDMPQueryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"patient_first_name":{"type":"string","title":"Patient First Name"},"patient_last_name":{"type":"string","title":"Patient Last Name"},"patient_dob":{"type":"string","format":"date","title":"Patient Dob"},"requesting_provider_npi":{"type":"string","title":"Requesting Provider Npi"},"purpose":{"$ref":"#/components/schemas/PDMPQueryPurpose","default":"treatment"},"state_codes":{"items":{"type":"string"},"type":"array","title":"State Codes","description":"Two-letter state codes; empty = all states"},"preferred_protocol":{"$ref":"#/components/schemas/PDMPProtocol","default":"NCPDP_SCRIPT"},"delegate_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delegate Npi","description":"Delegate NPI when querying on behalf of prescriber"}},"type":"object","required":["patient_id","patient_first_name","patient_last_name","patient_dob","requesting_provider_npi"],"title":"PDMPQueryRequest"},"app__serving__quality_depth__SurveyType":{"type":"string","enum":["AHRQ_SOPS_HOSPITAL","AHRQ_SOPS_AMBULATORY","CAHPS_HOSPITAL","CAHPS_CLINICIAN","NHSN_ANNUAL","STATE_SPECIFIC"],"title":"SurveyType","description":"Healthcare survey types — (f)(7)."},"app__serving__quality_svc__AdverseEventReport":{"properties":{"category":{"$ref":"#/components/schemas/EventCategory"},"severity":{"$ref":"#/components/schemas/EventSeverity"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"unit_location":{"type":"string","title":"Unit Location","description":"Care unit / department where event occurred"},"event_date":{"type":"string","format":"date","title":"Event Date"},"event_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Time","description":"HH:MM in local time"},"description":{"type":"string","minLength":10,"title":"Description"},"immediate_actions_taken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Immediate Actions Taken"},"reporter_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reporter Role"},"involved_medications":{"items":{"type":"string"},"type":"array","title":"Involved Medications"},"involved_equipment":{"items":{"type":"string"},"type":"array","title":"Involved Equipment"},"witness_names":{"items":{"type":"string"},"type":"array","title":"Witness Names"},"anonymous":{"type":"boolean","title":"Anonymous","description":"Hide reporter identity in non-admin views","default":false}},"type":"object","required":["category","severity","unit_location","event_date","description"],"title":"AdverseEventReport"},"app__serving__release_mgmt__ChangeRequest":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"risk_level":{"$ref":"#/components/schemas/ChangeRisk"},"jira_ticket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jira Ticket","description":"e.g., KAN-260"},"affected_modules":{"items":{"type":"string"},"type":"array","title":"Affected Modules"},"test_plan":{"type":"string","title":"Test Plan","description":"Summary of testing required for this change"},"rollback_plan":{"type":"string","title":"Rollback Plan","description":"Steps to revert if the change causes issues"}},"type":"object","required":["title","description","risk_level","test_plan","rollback_plan"],"title":"ChangeRequest"},"app__serving__release_mgmt__ChangeStatus":{"type":"string","enum":["draft","under_review","approved","rejected","implemented"],"title":"ChangeStatus"},"app__serving__reportable_lab_results__MockPHAReceiveRequest":{"properties":{"hl7_message":{"type":"string","title":"Hl7 Message","description":"Raw HL7 v2.5.1 pipe-delimited ORU^R01 message"}},"type":"object","required":["hl7_message"],"title":"MockPHAReceiveRequest"},"app__serving__rtpb_epcs__ChangeRequest":{"properties":{"original_message_id":{"type":"string","title":"Original Message Id"},"change_reason":{"type":"string","title":"Change Reason"},"new_quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"New Quantity"},"new_days_supply":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"New Days Supply"},"new_drug_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Drug Name"},"new_ndc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Ndc"}},"type":"object","required":["original_message_id","change_reason"],"title":"ChangeRequest"},"app__serving__rtpb_epcs__NewRxRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"prescriber_npi":{"type":"string","title":"Prescriber Npi"},"drug_name":{"type":"string","title":"Drug Name"},"rxnorm_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rxnorm Code"},"ndc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ndc"},"quantity":{"type":"number","title":"Quantity"},"days_supply":{"type":"integer","title":"Days Supply"},"refills":{"type":"integer","title":"Refills","default":0},"directions":{"type":"string","title":"Directions"},"pharmacy_ncpdp_id":{"type":"string","title":"Pharmacy Ncpdp Id"},"is_controlled":{"type":"boolean","title":"Is Controlled","default":false}},"type":"object","required":["patient_id","prescriber_npi","drug_name","quantity","days_supply","directions","pharmacy_ncpdp_id"],"title":"NewRxRequest"},"app__serving__rtpb_epcs__PDMPQueryRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"state":{"$ref":"#/components/schemas/PDMPState","default":"OTHER"}},"type":"object","required":["patient_id"],"title":"PDMPQueryRequest"},"app__serving__syndromic_surveillance__MockPHAReceiveRequest":{"properties":{"hl7_message":{"type":"string","title":"Hl7 Message","description":"Raw HL7 v2.5.1 pipe-delimited ADT message"}},"type":"object","required":["hl7_message"],"title":"MockPHAReceiveRequest","description":"Body for POST /syndromic-surveillance/mock-pha/receive."},"app__serving__tefca_qhin__PurposeOfUse":{"type":"string","enum":["TREATMENT","PAYMENT","OPERATIONS","INDIVIDUAL_ACCESS","PUBLIC_HEALTH","RESEARCH","EMERGENCY"],"title":"PurposeOfUse"},"app__serving__transitions__GenerateRequest":{"properties":{"doc_type":{"type":"string","enum":["ccd","referral","discharge"],"title":"Doc Type","description":"C-CDA document type: ccd | referral | discharge","default":"ccd"},"author_name":{"type":"string","title":"Author Name","description":"Free-text author / organization name","default":"Sphere EHR"},"medications":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Medications","description":"FHIR MedicationRequest resources to include (optional; fetched if empty)"},"allergies":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Allergies","description":"FHIR AllergyIntolerance resources to include (optional)"},"problems":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Problems","description":"FHIR Condition resources to include (optional)"}},"type":"object","title":"GenerateRequest","description":"Body for POST /transitions/{patient_id}/generate."},"app__serving__transitions__SendRequest":{"properties":{"document_reference_id":{"type":"string","title":"Document Reference Id","description":"FHIR DocumentReference ID of the C-CDA to send"},"transport":{"type":"string","enum":["direct","xdr"],"title":"Transport","description":"Transport: direct | xdr","default":"direct"},"destination":{"type":"string","title":"Destination","description":"Destination address (Direct address or XDR endpoint URI)"}},"type":"object","required":["document_reference_id","destination"],"title":"SendRequest","description":"Body for POST /transitions/{patient_id}/send."},"app__serving__transitions__SendResponse":{"properties":{"tracking_id":{"type":"string","title":"Tracking Id"},"transport":{"type":"string","title":"Transport"},"destination":{"type":"string","title":"Destination"},"status":{"type":"string","title":"Status"}},"type":"object","required":["tracking_id","transport","destination","status"],"title":"SendResponse"},"app__serving__vector_svc__SearchHit":{"properties":{"point_id":{"type":"string","title":"Point Id"},"score":{"type":"number","title":"Score"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["point_id","score","payload"],"title":"SearchHit"},"eCQMRunRequest":{"properties":{"measure_ids":{"items":{"type":"string"},"type":"array","title":"Measure Ids","description":"CMS eCQM IDs e.g. CMS122v14, CMS125v12"},"reporting_period_start":{"type":"string","format":"date","title":"Reporting Period Start"},"reporting_period_end":{"type":"string","format":"date","title":"Reporting Period End"},"patient_population":{"type":"string","title":"Patient Population","description":"all | attributed | eligible","default":"all"},"include_individual":{"type":"boolean","title":"Include Individual","description":"Include QRDA Cat I per-patient","default":true}},"type":"object","required":["measure_ids","reporting_period_start","reporting_period_end"],"title":"eCQMRunRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}