client.eligibility.get({ ...params }) -> ReferralExchange.EligibilityRes
-
-
-
await client.eligibility.get({ uin: "uin", offeringId: "offeringId", });
-
-
-
request:
ReferralExchange.EligibilityGetRequest
-
requestOptions:
Eligibility.RequestOptions
-
-
client.referrals.list({ ...params }) -> ReferralExchange.PaginatedReferralsDto
-
-
-
await client.referrals.list({ hciCode: "hciCode", });
-
-
-
request:
ReferralExchange.ReferralsListRequest
-
requestOptions:
Referrals.RequestOptions
-
-
client.referrals.upsert({ ...params }) -> ReferralExchange.ReferralDto
-
-
-
await client.referrals.upsert({ patient: { uin: "uin", name: "name", phoneNumber: "91234567", dob: "1990-01-01", gender: "Male", }, offeringId: "offeringId", senderHciCode: "senderHciCode", senderInstitutionName: "senderInstitutionName", doctorMcr: "doctorMcr", doctorName: "doctorName", doctorEmail: "doctorEmail", doctorContactNumber: "doctorContactNumber", isSubsidised: true, isUrgent: true, isDraft: true, formResponses: [ { question: "question", id: "id", answer: "answer", }, ], });
-
-
-
request:
ReferralExchange.CreateReferralReq
-
requestOptions:
Referrals.RequestOptions
-
-
client.referrals.get(referralId, { ...params }) -> ReferralExchange.FullReferralDto
-
-
-
await client.referrals.get("referralId");
-
-
-
referralId:
string
— Referral ID
-
request:
ReferralExchange.ReferralsGetRequest
-
requestOptions:
Referrals.RequestOptions
-
-
client.referrals.delete(referralId) -> ReferralExchange.ReferralDto
-
-
-
await client.referrals.delete("referralId");
-
-
-
referralId:
string
— Referral ID
-
requestOptions:
Referrals.RequestOptions
-
-
client.referrals.cancel(referralId, { ...params }) -> ReferralExchange.ReferralDto
-
-
-
await client.referrals.cancel("referralId");
-
-
-
referralId:
string
— Referral ID
-
request:
ReferralExchange.CancelReferralReq
-
requestOptions:
Referrals.RequestOptions
-
-
client.referrals.amend(referralId, { ...params }) -> ReferralExchange.ReferralDto
-
-
-
await client.referrals.amend("referralId", { timeslotStartAt: 1714857600000, });
-
-
-
referralId:
string
— Referral ID
-
request:
ReferralExchange.AmendReferralReq
-
requestOptions:
Referrals.RequestOptions
-
-
client.referrals.accept(referralId, { ...params }) -> void
-
-
-
await client.referrals.accept("referralId", { appointmentTime: 1714857600000, });
-
-
-
referralId:
string
— Referral ID
-
request:
ReferralExchange.EaConfirmReferralBody
-
requestOptions:
Referrals.RequestOptions
-
-
client.referrals.reject(referralId, { ...params }) -> void
-
-
-
await client.referrals.reject("referralId", { rejectionMessage: "rejectionMessage", });
-
-
-
referralId:
string
— Referral ID
-
request:
ReferralExchange.EaRejectReferralBody
-
requestOptions:
Referrals.RequestOptions
-
-
client.referrals.backToDraft(referralId) -> ReferralExchange.ReferralDto
-
-
-
await client.referrals.backToDraft("referralId");
-
-
-
referralId:
string
— Referral ID
-
requestOptions:
Referrals.RequestOptions
-
-
client.notes.create(referralId, { ...params }) -> ReferralExchange.NoteDto
-
-
-
await client.notes.create("referralId", { authorHciCode: "authorHciCode", });
-
-
-
referralId:
string
— Referral ID
-
request:
ReferralExchange.CreateNoteReq
-
requestOptions:
Notes.RequestOptions
-
-
client.offerings.list() -> ReferralExchange.OfferingDto[]
-
-
-
await client.offerings.list();
-
-
-
requestOptions:
Offerings.RequestOptions
-
-
client.offerings.listTimeslots(offeringId, { ...params }) -> ReferralExchange.Timeslot[]
-
-
-
await client.offerings.listTimeslots("offeringId", { from: 1.1, isSubsidised: true, });
-
-
-
offeringId:
string
-
request:
ReferralExchange.OfferingsListTimeslotsRequest
-
requestOptions:
Offerings.RequestOptions
-
-
client.public.getReferral(referralId, { ...params }) -> ReferralExchange.PublicReferralDto
-
-
-
await client.public.getReferral("referralId");
-
-
-
referralId:
string
— Referral ID
-
request:
ReferralExchange.PublicGetReferralRequest
-
requestOptions:
Public.RequestOptions
-
-
client.webhooks.submitSingHealthFormsg() -> void
-
-
-
await client.webhooks.submitSingHealthFormsg();
-
-
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.submitFormsg(formId) -> void
-
-
-
await client.webhooks.submitFormsg("formId");
-
-
-
formId:
string
-
requestOptions:
Webhooks.RequestOptions
-
-
client.health.check() -> ReferralExchange.OkResponse
-
-
-
await client.health.check();
-
-
-
requestOptions:
Health.RequestOptions
-
-