API DiscountPlanSubs
Version Added: 21.3
Gets the DiscountPlan that is attached to the patient.
PatNum: Required.
Example Request:
GET /discountplansubs?PatNum=56
Example Response:
{
"DiscountSubNum": 32,
"DiscountPlanNum": 8,
"PatNum": 56,
"DateEffective": "2021-01-01",
"DateTerm": "2022-01-01",
"SubNote": ""
}
200 OK
400 BadRequest "PatNum is Required"
404 NotFound "Patient not found"
Version Added: 21.3
Subscribes a patient to an existing DiscountPlan.
DiscountPlanNum: Required.
PatNum: Required.
DateEffective: Optional. String in "yyyy-MM-dd" format. The date the plan starts impacting procedure fees. Default "0001-01-01" to indicate the beginning of the current calendar year.
DateTerm: Optional. String in "yyyy-MM-dd" format. The date the plan no longer impacts procedure fees.
Default "0001-01-01" to indicate the end of the current calendar year.
SubNote: Optional.
Example Request:
POST /discountplansubs
{
"DiscountPlanNum": 6,
"PatNum": 67,
"DateEffective": "2021-01-01",
"DateTerm": "2022-01-01"
}
Example Response:
201 Created
400 BadRequest (Missing or invalid fields)
404 NotFound "Patient not found" or "DiscountPlan not found"