Halaxy MCP by usefulapi

v1.17.1
io.usefulapi/halaxy Checked 3 days ago Published 1 day ago

Read Halaxy patients, appointments, slots and invoices; create patients, appointments and notes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

halaxy_list_patients List or search patients

List or search patient records (demographics and contact details; HEALTH DATA). Filters combine with AND. Paged: pass next_page as page. GET /main/Patient.

ParameterTypeDescription
birthdatestringDate of birth (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
countintegerResults per page, 1-100 (default 30).
createdstringCreated (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
emailstringAn email address.
familystringStart of the family name.
general_practitionerstringA Practitioner/PractitionerRole the patient has records with.
givenstringStart of the given name.
idstringOne id or several separated by commas, for example 1,2,3.
includearrayAlso return related resources in "included": any of Patient:general-practitioner.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
namestringSearch the family, given or preferred name (matches the start of the name).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
phonestringA phone number, local or E.164 (+61412345678).
sortstringSort order: _lastUpdated, name, created, -_lastUpdated, -name, -created ("-" = descending).
statusstringPatient status, e.g. active.

halaxy_list_practitioners List practitioners

List or search practitioners and administrators of the practice group (ids look like PR-12345). Filters combine with AND. Paged: pass next_page as page. GET /main/Practitioner.

ParameterTypeDescription
activebooleanOnly active (true) or inactive (false) practitioners.
countintegerResults per page, 1-100 (default 30).
emailstringAn email address.
familystringFamily name.
givenstringGiven name.
idstringOne id or several separated by commas, for example 1,2,3.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
namestringFamily, given or preferred name.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
profilestringhx-practitioner = staff, hx-external-practitioner = professional contacts.
sortstringSort order: name, -name ("-" = descending).

halaxy_list_practitioner_roles List practitioner roles (clinic locations)

List or search practitioner roles: a practitioner's association with one clinic location (the id used when booking and for clinical notes). Filters combine with AND. Paged: pass next_page as page. GET /main/PractitionerRole.

ParameterTypeDescription
countintegerResults per page, 1-100 (default 30).
idstringOne id or several separated by commas, for example 1,2,3.
includearrayAlso return related resources in "included": any of PractitionerRole:practitioner, PractitionerRole:organization.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
organizationstringOrganization (clinic) id.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
practitionerstringPractitioner id, e.g. PR-123.
profilestringStaff roles or external professional-contact roles.
provider_numberstringProvider number.

halaxy_list_organizations List organizations and clinics

List or search the practice group, its clinic locations, funders and external practices (practice group ids look like PG-12345). Filters combine with AND. Paged: pass next_page as page. GET /main/Organization.

ParameterTypeDescription
countintegerResults per page, 1-100 (default 30).
idstringOne id or several separated by commas, for example 1,2,3.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
namestringOrganization name.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
profilestringOnly one kind of organization.

halaxy_list_appointments List appointments

List or search appointments (HEALTH DATA: names the patient). Filters combine with AND. Paged: pass next_page as page. GET /main/Appointment.

ParameterTypeDescription
countintegerResults per page, 1-100 (default 30).
createdstringCreated (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
datestringAppointment date/time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
idstringOne id or several separated by commas, for example 1,2,3.
includearrayAlso return related resources in "included": any of Appointment:patient, Appointment:practitioner-role.
include_iteratearrayAlso return resources related to an included one (needs the matching include): any of PractitionerRole:practitioner, PractitionerRole:organization.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
organizationstringThe clinic (Organization) id including its prefix.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
part_statusstringThe patient's participation status, e.g. booked, arrived, cancelled.
patientstringPatient id.
practitionerstringPractitioner id, e.g. PR-123.
practitioner_rolestringPractitionerRole id.
sortstringSort order: date, -date ("-" = descending).

halaxy_list_schedules List practitioner schedules

List or search schedules: containers of bookable time slots per practitioner. Filters combine with AND. Paged: pass next_page as page. GET /main/Schedule.

ParameterTypeDescription
activebooleanOnly active (true) or inactive schedules.
actorstringThe practitioner/role the schedule belongs to.
countintegerResults per page, 1-100 (default 30).
idstringOne id or several separated by commas, for example 1,2,3.
includearrayAlso return related resources in "included": any of Schedule:actor.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.

halaxy_list_slots List time slots

List or search time slots of practitioner schedules (free or busy). Filters combine with AND. Paged: pass next_page as page. GET /main/Slot.

ParameterTypeDescription
countintegerResults per page, 1-100 (default 30).
durationstringSlot duration in minutes.
endstringSlot end (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
idstringOne id or several separated by commas, for example 1,2,3.
includearrayAlso return related resources in "included": any of Slot:practitioner, Slot:organization, Slot:practitioner-role.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
organizationstringOrganization (clinic) id.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
practitionerstringPractitioner id.
practitioner_rolestringPractitionerRole id.
schedulestringSchedule id.
startstringSlot start (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
statusstringfree or busy.

halaxy_list_healthcare_services List appointment types

List or search appointment types used by the practice group, clinics and practitioners. Filters combine with AND. Paged: pass next_page as page. GET /main/HealthcareService.

ParameterTypeDescription
activebooleanOnly active (true) or inactive appointment types.
countintegerResults per page, 1-100 (default 30).
idstringOne id or several separated by commas, for example 1,2,3.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
namestringAppointment type name.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.

halaxy_list_fees List fees

List or search fees (ChargeItemDefinition): the services and products a practice charges for. Filters combine with AND. Paged: pass next_page as page. GET /main/ChargeItemDefinition.

ParameterTypeDescription
codestringFee item number.
context_typestringFee type: 0 = appointment, 1 = item, 2 = pro-rata.
countintegerResults per page, 1-100 (default 30).
createdstringCreated (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
idstringOne id or several separated by commas, for example 1,2,3.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
property_group_statusstringFee pricing status: 1 = current, 2 = archived.
publisherstringFunder name.
titlestringFee name.

halaxy_list_coverage List patient coverage (claim details)

List or search patients' health fund membership and claim details (HEALTH DATA). Filters combine with AND. Paged: pass next_page as page. GET /main/Coverage.

ParameterTypeDescription
beneficiarystringThe primary beneficiary (a Patient id).
countintegerResults per page, 1-100 (default 30).
coverage_organizationstringThe coverage organization.
createdstringCreated (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
idstringOne id or several separated by commas, for example 1,2,3.
includearrayAlso return related resources in "included": any of Coverage:beneficiary, Coverage:subscriber, Coverage:payor.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
payorstringThe funder.
sortstringSort order: _lastUpdated, created, -_lastUpdated, -created ("-" = descending).
subscriberstringThe subscriber to the policy.
subscriber_idstringSubscriber (membership) number.

halaxy_list_invoices List invoices

List or search invoices of the practice group. Filters combine with AND. Paged: pass next_page as page. GET /main/Invoice.

ParameterTypeDescription
countintegerResults per page, 1-100 (default 30).
createdstringCreated (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
idstringOne id or several separated by commas, for example 1,2,3.
includearrayAlso return related resources in "included": any of Invoice:recipient, Invoice:practitioner.
include_iteratearrayAlso return resources related to an included one (needs the matching include): any of PractitionerRole:practitioner, PractitionerRole:organization.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
organizationstringThe clinic the invoice was created at.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
practitionerstringPractitioner id.
practitioner_rolestringPractitionerRole id.
recipientstringThe invoice recipient (a Patient or Organization id).
statusstringInvoice status.
total_balancestringBalance owing, optionally with a prefix such as gt0 (finds unpaid invoices).
total_paidstringTotal paid amount, optionally with a prefix such as gt0.

halaxy_list_invoice_lines List invoice lines

List or search invoice lines: single fees on invoices. Filters combine with AND. Paged: pass next_page as page. GET /main/InvoiceLine.

ParameterTypeDescription
amountstringThe line amount, optionally with a prefix such as gt100.
countintegerResults per page, 1-100 (default 30).
coveragestringThe coverage (claim details).
createdstringCreated (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
funderstringThe funder.
idstringOne id or several separated by commas, for example 1,2,3.
includearrayAlso return related resources in "included": any of InvoiceLine:subject, InvoiceLine:performer, InvoiceLine:invoice.
invoicestringThe invoice the line belongs to.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
performerstringThe performer of the service.
referralstringThe referral.
subjectstringThe patient the line is for.

halaxy_list_payment_transactions List payment transactions

List or search payment transactions recorded on invoices. Filters combine with AND. Paged: pass next_page as page. GET /main/PaymentTransaction.

ParameterTypeDescription
countintegerResults per page, 1-100 (default 30).
createdstringCreated (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
idstringOne id or several separated by commas, for example 1,2,3.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.

halaxy_list_referrals List referrals

List or search referrals from one healthcare provider to another (HEALTH DATA). Filters combine with AND. Paged: pass next_page as page. GET /main/Referral.

ParameterTypeDescription
countintegerResults per page, 1-100 (default 30).
coveragestringThe coverage (claim details) of the referral.
createdstringCreated (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
idstringOne id or several separated by commas, for example 1,2,3.
includearrayAlso return related resources in "included": any of Referral:subject, Referral:coverage.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
sortstringSort order: _lastUpdated, created, -_lastUpdated, -created ("-" = descending).
subjectstringThe patient the referral is for.

halaxy_list_referral_definitions List referral templates

List or search referral templates with preset properties. Filters combine with AND. Paged: pass next_page as page. GET /main/ReferralDefinition.

ParameterTypeDescription
countintegerResults per page, 1-100 (default 30).
funding_organizationstringThe funder.
idstringOne id or several separated by commas, for example 1,2,3.
last_updatedstringOnly records last updated at this time (ISO date or date-time, optional prefix eq/ne/gt/lt/ge/le).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.

halaxy_get_patient Get a patient

Fetch a patient record (HEALTH DATA) by id. GET /main/Patient/{id}.

ParameterTypeDescription
id *stringThe Patient id (from the matching list tool).

halaxy_get_practitioner Get a practitioner

Fetch a practitioner or administrator by id. GET /main/Practitioner/{id}.

ParameterTypeDescription
id *stringThe Practitioner id (from the matching list tool).

halaxy_get_practitioner_role Get a practitioner role

Fetch a practitioner role at a clinic location by id. GET /main/PractitionerRole/{id}.

ParameterTypeDescription
id *stringThe PractitionerRole id (from the matching list tool).

halaxy_get_organization Get an organization

Fetch a practice group, clinic, funder or external practice by id. GET /main/Organization/{id}.

ParameterTypeDescription
id *stringThe Organization id (from the matching list tool).

halaxy_get_appointment Get an appointment

Fetch an appointment with its participants and statuses (HEALTH DATA) by id. GET /main/Appointment/{id}.

ParameterTypeDescription
id *stringThe Appointment id (from the matching list tool).

halaxy_get_schedule Get a schedule

Fetch a practitioner schedule by id. GET /main/Schedule/{id}.

ParameterTypeDescription
id *stringThe Schedule id (from the matching list tool).

halaxy_get_slot Get a time slot

Fetch a time slot by id. GET /main/Slot/{id}.

ParameterTypeDescription
id *stringThe Slot id (from the matching list tool).

halaxy_get_healthcare_service Get an appointment type

Fetch an appointment type by id. GET /main/HealthcareService/{id}.

ParameterTypeDescription
id *stringThe HealthcareService id (from the matching list tool).

halaxy_get_fee Get a fee

Fetch a fee (ChargeItemDefinition) by id. GET /main/ChargeItemDefinition/{id}.

ParameterTypeDescription
id *stringThe ChargeItemDefinition id (from the matching list tool).

halaxy_get_coverage Get patient coverage

Fetch a patient's coverage (claim details) record by id. GET /main/Coverage/{id}.

ParameterTypeDescription
id *stringThe Coverage id (from the matching list tool).

halaxy_get_invoice Get an invoice

Fetch an invoice by id. GET /main/Invoice/{id}.

ParameterTypeDescription
id *stringThe Invoice id (from the matching list tool).

halaxy_get_invoice_line Get an invoice line

Fetch an invoice line by id. GET /main/InvoiceLine/{id}.

ParameterTypeDescription
id *stringThe InvoiceLine id (from the matching list tool).

halaxy_get_payment_transaction Get a payment transaction

Fetch a payment transaction by id. GET /main/PaymentTransaction/{id}.

ParameterTypeDescription
id *stringThe PaymentTransaction id (from the matching list tool).

halaxy_get_referral Get a referral

Fetch a referral (HEALTH DATA) by id. GET /main/Referral/{id}.

ParameterTypeDescription
id *stringThe Referral id (from the matching list tool).

halaxy_get_referral_definition Get a referral template

Fetch a referral template by id. GET /main/ReferralDefinition/{id}.

ParameterTypeDescription
id *stringThe ReferralDefinition id (from the matching list tool).

halaxy_find_available_appointments Find available appointment times

Find free appointment times between start and end for a given duration, respecting each practitioner's online booking preferences (buffer time, lead time, advance booking limit). Narrow it with practitioner, practitioner_role or organization. GET /main/Appointment/$find.

ParameterTypeDescription
duration *integerAppointment length in minutes.
end *stringEnd of the search window, e.g. 2027-01-12T23:59:59.
start *stringStart of the search window, e.g. 2027-01-12T00:00:00.
apply_buffer_timebooleantrue applies buffer time to show all available times.
emergencybooleantrue ignores lead time, to show all times for emergency appointments.
organizationstringOrganization (clinic) id.
practitionerstringPractitioner id.
practitioner_rolestringPractitionerRole id.
showstringfirst-available = only the first available time.
sortstringstart or -start.

halaxy_create_patient Create a patient

Writes to the live Halaxy account. Creates a new patient record (always a new one: search with halaxy_list_patients first to avoid a duplicate). Pass managing_organization (the practice group id, e.g. PG-12345, from halaxy_list_organizations) if Halaxy asks for it. POST /main/Patient.

ParameterTypeDescription
family *stringLegal family name (surname).
given *stringLegal given name.
addressobjectMailing address.
birth_datestringDate of birth, YYYY-MM-DD.
emailstringEmail address.
genderstringGender as registered in government records.
managing_organizationstringThe practice group id, e.g. PG-12345.
mobilestringMobile number as +{country code}{number}, no spaces.
preferred_namestringPreferred (usual) given name.

halaxy_create_appointment Book an appointment

Writes to the live Halaxy account. Books an appointment for a patient with a practitioner at a clinic (the practitioner role). Halaxy also creates the invoice, clinical note and reminder. Use halaxy_find_available_appointments for free times. By default a double booking is refused (HTTP 409, nothing created). POST /main/Appointment/$book.

ParameterTypeDescription
end *stringEnd with the time zone offset, e.g. 2027-06-15T16:00:00+10:00.
patient_id *stringThe patient id.
practitioner_role_id *stringThe PractitionerRole id (practitioner at a clinic), e.g. PR-1234567.
start *stringStart with the time zone offset, e.g. 2027-06-15T15:00:00+10:00.
charge_item_definition_idstringThe fee id (halaxy_list_fees) booked for the appointment.
fail_on_double_bookingbooleanRefuse if the practitioner already has an appointment then (default true).
healthcare_service_idstringThe appointment type id (halaxy_list_healthcare_services).
statusstringInitial status (default booked).

halaxy_update_appointment_status Update an appointment status

Writes to the live Halaxy account. Sets the patient's status on an appointment (shown in the Halaxy calendar), for example arrived, attended, confirmed or cancelled. "cancelled (no charge)" also sets the invoice to $0. For a group appointment pass patient_id to say whose status changes. PATCH /main/Appointment/{id}.

ParameterTypeDescription
appointment_id *stringThe appointment id.
status *stringThe new status.
patient_idstringThe patient whose status changes (needed only when the appointment has several patients).

halaxy_create_clinical_note Create a draft clinical note

Writes to the live Halaxy account. Adds a clinical note to a patient's record as a DRAFT (preliminary); the practitioner reviews and publishes it in Halaxy. The author is a PractitionerRole (practitioner at a clinic). Only HTML text is supported. POST /main/DocumentReference.

ParameterTypeDescription
html *stringThe note body as HTML.
patient_id *stringThe patient the note is for.
practitioner_role_id *stringThe PractitionerRole id of the author, e.g. PR-1234567.
title *stringThe note title.