Plan Mutations

These mutations allow you to interact with plan data.

addPatientPlanItem

Arguments

ArgumentTypeDescription
inputrequiredPatientPlanItemInput!Input
patientPlanIdrequiredID!ID of the patientplan
Example Query
mutation(
$input: PatientPlanItemInput!,
$patientPlanId: ID!
) {
addPatientPlanItem(
input: $input,
patientPlanId: $patientPlanId
) {
id
# Add other fields you need
}
}
Variables
{
"input": {},
"patientPlanId": "1"
}

cancelPlan

Returns: PatientPlan

Arguments

ArgumentTypeDescription
discountBooleanInvoice unpaid products and services at plan discount prices, defaults to false.
idrequiredID!Unique identifier
Example Query
mutation(
$discount: Boolean,
$id: ID!
) {
cancelPlan(
discount: $discount,
id: $id
) {
id
# Add other fields you need
}
}
Variables
{
"discount": true,
"id": "1"
}

createPreventionPlan

Arguments

ArgumentTypeDescription
inputPreventionPlanInputInput data for prevention plan operation
Example Query
mutation($input: PreventionPlanInput) {
createPreventionPlan(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

enrollPlan

Returns: PatientPlan

Arguments

ArgumentTypeDescription
autoRenewBooleanAutomatically renew on expiration
endDateDateEnd of date range
hsnrequiredString!Hsn
locationIdrequiredID!ID of the location
options[PlanOptionInput]Options
patientIdrequiredID!ID of the patient
planIdrequiredID!ID of the plan
planIntervalrequiredPlanInterval!Plan interval
renewPlanIdIDID of the renewplan
startDateDateStart of date range
Example Query
mutation(
$autoRenew: Boolean,
$endDate: Date,
$hsn: String!,
$locationId: ID!,
$options: [PlanOptionInput],
$patientId: ID!,
$planId: ID!,
$planInterval: PlanInterval!,
$renewPlanId: ID,
$startDate: Date
) {
enrollPlan(
autoRenew: $autoRenew,
endDate: $endDate,
hsn: $hsn,
locationId: $locationId,
options: $options,
patientId: $patientId,
planId: $planId,
planInterval: $planInterval,
renewPlanId: $renewPlanId,
startDate: $startDate
) {
id
# Add other fields you need
}
}
Variables
{
"autoRenew": true,
"endDate": {},
"hsn": "example",
"locationId": "1",
"options": {},
"patientId": "1",
"planId": "1",
"planInterval": {},
"renewPlanId": "1",
"startDate": {}
}

linkPatientPlanChargeToOrderItem

Arguments

ArgumentTypeDescription
orderItemIdrequiredID!ID of the orderitem
patientPlanChargeIdrequiredID!ID of the patientplancharge
Example Query
mutation(
$orderItemId: ID!,
$patientPlanChargeId: ID!
) {
linkPatientPlanChargeToOrderItem(
orderItemId: $orderItemId,
patientPlanChargeId: $patientPlanChargeId
) {
id
# Add other fields you need
}
}
Variables
{
"orderItemId": "1",
"patientPlanChargeId": "1"
}

refreshPreventionPlan

Returns: [PatientPlan]

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
mutation($id: ID!) {
refreshPreventionPlan(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

removePatientPlanItem

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
mutation($id: ID!) {
removePatientPlanItem(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

updatePatientPlan

Returns: PatientPlan!

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredPatientPlanInput!Input
Example Query
mutation(
$id: ID!,
$input: PatientPlanInput!
) {
updatePatientPlan(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updatePatientPlanItem

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredPatientPlanItemInput!Input
Example Query
mutation(
$id: ID!,
$input: PatientPlanItemInput!
) {
updatePatientPlanItem(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updatePreventionPlan

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredPreventionPlanInput!Input
Example Query
mutation(
$id: ID!,
$input: PreventionPlanInput!
) {
updatePreventionPlan(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}