Hospital Interoperability: FHIR R4 API, HL7 v2 Lab Interface, DICOM Worklist, CSV Migration
by Viyug Infotech https://viyuginfotech.com$ 76.70
Hospital Interoperability: FHIR R4 API, HL7 v2 lab interface, DICOM worklist, CSV migration
Connect the hospital to health information exchanges, patient apps, lab systems and PACS: a FHIR R4 API with OAuth2 and scopes, HL7 v2 results in and lab orders out, DICOM modality worklist files for Orthanc, and CSV import and export for migrations. Every call runs with a user's rights and is logged.
FHIR R4, 10 resources OAuth2 and SMART scopes HL7 ORU in, OML out DICOM worklist CSV migration
10
FHIR R4 resource types, read and search
2
ways to authenticate: OAuth2 client credentials or API key
3
HL7 v2 message types: ORU^R01 in, OML^O21 and ORM^O01 out
0
extra Python libraries for the DICOM worklist
Free setup call with every purchase
After you buy, book a free 30-minute online call: we install the app with you and set it up for your company. Questions are answered within 24 hours, Monday to Saturday, at support@viyuginfotech.com or on WhatsApp (QR code at the end of this page).
Try it live
One demo hospital runs the whole Viyug hospital family with demo data in every department. No sign-up needed.
Opens directly as the hospital manager of a demo hospital on Odoo 20 Enterprise: hospital dashboard, front desk and OPD, emergency, wards and ICU, theatres, lab, radiology, pharmacy, blood bank, billing and every specialty of the family.
Click Live Preview at the top of this page, or open:
hospital-demo.viyuginfotech.com/try-demo
The demo is shared with other visitors, so please do not enter real data.
What it does
FHIR R4 API
Patient, Practitioner, Encounter, Appointment, Observation (vital signs with LOINC), DiagnosticReport (lab), MedicationRequest, AllergyIntolerance, Condition (ICD-10), DocumentReference; read, search by patient, identifier, name and id; create Patient.
Bundle per visit
Encounter/$everything returns the visit with patient, doctor, vitals, allergies, problems, prescriptions, documents and lab reports; also a download button on the visit.
OAuth2 and API keys
Client credentials flow with one-hour tokens, or the secret as API key; secrets are stored hashed and shown once; optional IP allow-list.
Scopes and rights
SMART-style scopes per client (system/Patient.read ...). Every call runs as a chosen user: record rules, branches and hidden clinical notes apply.
Audit
Every call in the interface log with client, resource, status and IP; every patient record read through the API is also in the patient access log.
HL7 v2 results in
ORU^R01 over HTTP from a lab analyzer or middleware: results matched by order number and LOINC or test code, ACK returned, errors kept for a retry.
HL7 v2 orders out
OML^O21 (or ORM^O01) for confirmed lab requests, sent by HTTP or as files, automatically every 5 minutes if you want.
DICOM modality worklist
One .wl file per scheduled imaging exam in the Orthanc worklist folder: patient, accession, modality, AE title, date and time; removed when done.
CSV migration
Import patients and their history (visits, allergies, problems, medication) from another system, with matching on MRN or phone and name; export everything as CSV.
CapabilityStatement
GET /fhir/R4/metadata describes the server for client developers.
Dashboard
Interface errors and API calls on the management dashboard.
Works with the family
Lab results and orders with the lab app, worklist with the radiology app; without them those parts stay quiet.
User guide
A step-by-step PDF guide with real screenshots: one guide for the whole Hospital Management family, with every menu, the setup and each screen in the order you use them.
What is inside
- The apps, what each does and the menus
- Install, hospital apps and roles
- Front desk: patients, booking, queue
- OPD: consultation and prescriptions
- Dashboards, privacy and AI
- Emergency and ambulance
- Wards, nursing, ICU and diet
- Laboratory, radiology, blood bank
- Pharmacy and pharmacy POS
- Operation theatre
- Billing, insurance and claims
- Specialities: 12 clinical apps
- Patient portal and telemedicine
- WhatsApp, FHIR / HL7 and ABDM
Open it in your browser:
viyuginfotech.com/guide/viyug_hms_interop
Scan to open the guide
PDF with screenshots, opens on your phone
Workflow walkthrough
From an API client to results, worklists and migration.
1API clients
Each connected system with its scopes, the user it acts as, last use and number of calls.

2New secret
A client ID and secret, shown once; only a hash is stored.

3OAuth2 token
The client exchanges its credentials for a one-hour bearer token (real API output).

4FHIR search
Patient by MRN: a FHIR searchset bundle (real API output).

5Bundle per visit
Encounter/$everything: patient, practitioner, encounter, vitals with LOINC codes and more (real API output).

6HL7 messages
Inbound results and outbound lab orders with their state.

7HL7 error and retry
A result for an unknown order is kept with the reason and the negative acknowledgement; fix and process again.

8Interface log
Every call with client, resource, HTTP status and IP address.

9Settings
HL7 outbound URL or folder, automatic order sending, DICOM worklist folder.

10CSV migration
Import patients and history from another system, or export everything.

Compared
| Feature | This app | Typical alternatives |
|---|---|---|
| FHIR R4 read and search API | 10 resource types | Not available |
| OAuth2 client credentials, scopes, audit | Yes | Not available |
| HL7 v2 results in and lab orders out | Yes | Not available |
| DICOM modality worklist for Orthanc | Yes | Not available |
| CSV migration of patients and history | Yes | Not available |
| Light and dark mode | Yes | Light only |
Setup
1. Install the app (hospital base). For lab results and orders install the lab app; for the worklist the radiology app.
2. Interoperability > API clients: create a client, choose the user and scopes, click New secret and give the client ID and secret to the other system.
3. HL7: give the lab middleware the URL https://your-odoo/hl7/v2 and a client with the scope hl7/oru.write; set the outbound URL or folder in Settings > Hospital > Interoperability.
4. DICOM: point the Orthanc worklist plugin and this setting to the same folder.
5. Serve Odoo over HTTPS: tokens and patient data travel in the requests.
Interfaces and patient data
The API returns patient data to the systems you authorise. Give each client the narrowest scopes and a user with only the rights it needs; review the interface log. HL7 is accepted over HTTPS (no MLLP listener).
What you need
This app installs on top of the apps below. They are added automatically when you install it.
Hospital Management (base) (viyug_hms_base)
- Patient registration with MRN, duplicate check, allergies, problems and medication history
- Appointments and OPD queue with tokens, QR self check-in and waiting-room TV screen
- Consultation with vitals, NEWS2, ICD-10 diagnoses, prescriptions with allergy checks
- Procedures, certificates, consents with signature and body charts
- Running bill per visit and invoices in Odoo Accounting
- Role dashboards for reception, nurses, doctors and management
- Sensitive records with break-the-glass and a patient access log




Questions
Is this a medical device?
No. It is administrative and documentation software. Clinical features such as interaction checks, critical-value alerts and reference-range flags are decision support for qualified professionals. It is not intended to diagnose, treat or prevent disease, and the clinician stays responsible for every clinical decision. Every alert shows its basis (rule, table row and source). Clinical-support features are off by default and switched on by an administrator.
How is patient health data protected?
Health data is special-category personal data (GDPR Art. 9) and protected health information under HIPAA. You, the hospital or clinic, are the data controller; patient data stays in your own Odoo database. The app uses the hospital roles, branch and department rules, the sensitive-record flag and the access log of the hospital base. No data leaves Odoo except to a service you configure yourself. Use fictional data, never real patients, on test and demo databases.
Which FHIR version?
FHIR R4 (4.0.1), JSON. Read and search on 10 resource types and create Patient.
Does it support MLLP for HL7?
HL7 messages are received and sent over HTTP(S) or files. Most interface engines (Mirth, Rhapsody, Iguana) convert MLLP to HTTP.
Do I need pydicom or Orthanc plugins?
No Python library is needed. Orthanc needs its standard worklist plugin pointing to the folder.
Does it work in Community and Enterprise?
Yes. It needs only Community apps. In Enterprise it follows the dark mode.
Works with the Viyug hospital family
Every module shares one patient and one visit record, so they connect without bridge modules. Search the store for these technical names.
Hospital base
Patients, doctors, appointments, visits, vitals, prescriptions, consents, dashboards.
viyug_hms_base
In-patient (IPD)
Admissions, beds, nursing, ICU, discharge.
viyug_hms_ipd
Laboratory
Test catalogue, samples, results, reference ranges, sign-off, QC.
viyug_hms_lab
Radiology
Imaging orders, scheduling, structured reports, PACS link.
viyug_hms_radiology
Pharmacy
Dispensing, lots and expiry, interaction and allergy checks.
viyug_hms_pharmacy
Pharmacy point of sale
Counter sales of prescriptions, lab and imaging bookings at the POS.
viyug_hms_pos
Billing and insurance
One invoice per visit, insurance claims, cashier.
viyug_hms_billing
Patient portal
Online booking, reports and invoices for patients.
viyug_hms_portal
AI assistant
Drafts for notes, discharge summaries and coding, signed by a doctor.
viyug_hms_ai
Need a hand?
Questions before you buy, help with setup or a feature your hospital needs: write to us.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to open the live demo, chat on WhatsApp or write us an email:

Live demo
hospital-demo.viyuginfotech.com
/try-demo

+91 83207 42187

Send us an email
Release notes
2026-11 First release.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Employees (hr) • Invoicing (account) |
| Community Apps Dependencies | Show |
| Lines of code | 11526 |
| Technical Name |
viyug_hms_interop |
| License | OPL-1 |
| Website | https://viyuginfotech.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module