# Openfront Hospital

> Appointment requests, intake, patients, care queue, encounters, inpatient beds, claims and communications in source you own.

From the first request to the recorded visit.

## At a glance

- 65 data models for patients, care, billing and records
- 9 signed inbound event types for payments, messages and claims
- 5 integration types for outbound and inbound events

## Links

- [Product overview](https://spec.openship.org/hospital): every area and feature on one page
- [Live demo](https://hospital.openship.org)
- [Documentation](https://docs.openship.org/docs/openfront/hospital)
- [Source code](https://github.com/openshiporg/openfront-hospital)
- [Feature film](https://spec.openship.org/hospital/video): a 27-second walk through every area

## Areas

### Patient access

- **Make care easier to request**: Visitors browse care services, clinicians and locations, then request an appointment. The request creates or matches a patient, an appointment, an intake form and a consent record. (https://docs.openship.org/docs/openfront/hospital/appointments)
- Publish bookable visit types, providers and clinicians.
- Show available appointment slots.
- Pause or keep internal visit types.
- Staff confirm requests through a controlled workflow.

### Intake

- **One-time forms for the first visit**: Patients open an intake link with a one-time access code and submit their form. Staff review submissions through intake review states. (https://docs.openship.org/docs/openfront/hospital/intake)
- Issue intake forms from staff workflows.
- Store only a hash of the access code.
- Review intake before the visit.
- Links from onboarding expire after seven days.

### Patients

- **Registration with a record of how**: Registration creates the patient, identifier, registration record and consent, with duplicate review. Identifiers are masked and consent decisions form a superseding chain. (https://docs.openship.org/docs/openfront/hospital/patients-registration)
- Register walk-in patients.
- Record consent decisions.
- Resolve duplicate patients deliberately.
- Link external identities.

### Scheduling

- **Schedules with visible conflicts**: Provider schedule blocks and visit-type duration and buffers feed available slots. Staff can inspect schedule conflicts before confirming. (https://docs.openship.org/docs/openfront/hospital/scheduling-providers)
- Manage provider schedule blocks.
- Set duration and buffers per visit type.
- Check conflicts before confirmation.
- Use facility scope to limit visible records.

### Care queue

- **From arrival to encounter**: Arrival creates a care-queue ticket, staff call the patient, and an encounter is opened and transitioned. Encounter closure is checked against the facility's episode policy. (https://docs.openship.org/docs/openfront/hospital/care-queue-encounters)
- Arrive an appointment into the queue.
- Open and transition encounters.
- Review episode closure policy.
- Recover an episode closure.

### Clinical records

- **Controlled workflows for care records**: Vitals, orders, specimens, lab results, prescriptions, procedures, care plans and clinical documents each change through named workflows. Lab results and documents keep correction or amendment history; the app records staff actions and does not decide what is clinically safe. (https://docs.openship.org/docs/openfront/hospital/clinical-fulfillment)
- Correct lab results with a chain.
- Sign or amend clinical documents.
- Use operation keys for idempotency.
- Changes carry the version they expect, so two people never overwrite each other.

### Inpatient

- **Beds with a history**: Wards, rooms and beds support reservations, admissions, transfers, discharges and cleaning status. Bed status changes use workflows and leave occupancy events. (https://docs.openship.org/docs/openfront/hospital/inpatient)
- Reserve or release a bed.
- Admit and transition admissions.
- Move beds through readiness states.
- Keep bed occupancy events.

### Billing

- **Claims and manual payments**: Coverage, claims, immutable claim versions, payments and refunds stay with the patient record. Payments are recorded as cash, check, external card or external bank; there is no card processor. (https://docs.openship.org/docs/openfront/hospital/billing-claims)
- Record patient coverage.
- Prepare and transition insurance claims.
- Record patient payments and refunds.
- Receive signed payment and claim events.

### Communications

- **Messages that show where they stand**: Secure patient messages cover SMS, email and phone. Phone messages become tasks for staff, and email and SMS are queued for delivery through your communications provider. (https://docs.openship.org/docs/openfront/hospital/communications)
- Register communication templates.
- Record contact preferences.
- Track queued, sent, delivered or failed states.
- SMTP is used only for staff password reset.

### Operations

- **Supplies, exports and retention**: Inventory, import batches, exports, retention policies, record holds and audit logs support the operating side. Exports are encrypted and downloaded with one-time tokens. (https://docs.openship.org/docs/openfront/hospital/data-portability-retention)
- Preview, apply and roll back inventory imports.
- Request patient, appointment, audit or inventory exports.
- Place and release record holds.
- Search workflow and clinical audit trails.

### Developer

- **Patient workflows you can audit end to end**: Next.js, Keystone, Prisma and Postgres, deployed where you choose. Clinical records change through controlled commands, and outbound and inbound integrations use a signed webhook layer. (https://docs.openship.org/docs/openfront/hospital/integrations)
- 65 models cover patients, appointments, encounters, beds, claims and communications.
- Outbound events use HTTPS and signed delivery.
- Adapt the patient portal and the care queue together.
- Reads of protected health fields are written to an audit log.
