REST API call to create patient insurance has date_end
validation but is not persisting the field. When passing date_end
the information is not persisted.
A call to /patient/{uuid}/insurance
with body:
{
"date": "2024-09-01",
"date_end": "2026-09-01",
"provider": "1",
"patientUUID": "9ccf578d-17df-4e80-a054-52212d9ffae8",
"policy_number": "123",
"subscriber_DOB": "1980-01-01",
"subscriber_sex": "UNK",
"subscriber_city": "Test",
"subscriber_fname": "Foo",
"subscriber_lname": "Bar",
"subscriber_state": "AL",
"accept_assignment": "TRUE",
"subscriber_street": "Test",
"subscriber_postal_code": "1111",
"subscriber_relationship": "self"
}
Returns:
{
"data": {
"id": 4,
"uuid": "9cd1742b-c7e0-4a67-a4e1-c6c01087128d",
"type": "primary",
"provider": "1",
"plan_name": "",
"policy_number": "123",
"group_number": "",
"subscriber_lname": "Bar",
"subscriber_mname": "",
"subscriber_fname": "Foo",
"subscriber_relationship": "self",
"subscriber_ss": "",
"subscriber_DOB": "1980-01-01",
"subscriber_street": "Test",
"subscriber_postal_code": "1111",
"subscriber_city": "Test",
"subscriber_state": "AL",
"subscriber_country": "",
"subscriber_phone": "",
"subscriber_employer": "",
"subscriber_employer_street": "",
"subscriber_employer_postal_code": "",
"subscriber_employer_state": "",
"subscriber_employer_country": "",
"subscriber_employer_city": "",
"copay": "",
"date": "2024-09-01",
"pid": 9,
"subscriber_sex": "UNK",
"accept_assignment": "TRUE",
"policy_type": "",
"subscriber_street_line_2": null,
"subscriber_employer_street_line_2": null,
"date_end": null
}
}
The date_end
should have value "2026-09-01"
. null
is currently returned
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too