{
 "openapi": "3.1.0",
 "info": {
  "title": "Ed (EHR)",
  "version": "20261030b",
  "description": "The ed service of EHR: 4 operation(s)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/ehr/ed/arrive": {
   "post": {
    "summary": "Arrive",
    "operationId": "action_ed_0_5",
    "description": "Body keys: patientId*, arrivalMode, chiefComplaint; arrivalMode one of walk_in|ambulance|helicopter|police|transfer|referral",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ehr/ed/{id}/triage": {
   "post": {
    "summary": "Triage",
    "operationId": "action_ed_0_6",
    "description": "Body keys: acuity*, triagedBy, notes, bp, pulse, temp, resp, spo2, pain",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ehr/ed/{id}/disposition": {
   "post": {
    "summary": "Disposition",
    "operationId": "action_ed_0_6",
    "description": "Body keys: disposition, instructions, followUpWith, followUpDays; disposition one of discharged|admitted|transferred|ama|eloped|deceased|observation|psych_hold",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ehr/ed/board": {
   "get": {
    "summary": "Board",
    "operationId": "action_ed_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}