API PatFields

See API Specification

PatFields GET

PatNum and FieldName are required parameters. If a PatField exists for the patient, it gets the value. If a PatField does not exist, it returns an empty string.

Example Request:
GET /patfields?PatNum=101&FieldName=Ins%20Verified

Example Response:
{
"FieldName": "Ins Verified",
"PatNum":101,
"FieldValue":"Yes"
}

PatFields PUT

If a PatField already exists for the patient, it gets set to the new value, overwriting the old value. If a PatField does not yet exist for the patient, then an PatField gets inserted into the database. To delete a PatField, set the FieldValue to an empty string.

Example Request:
PUT /patfields

{
"FieldName": "Ins Verified",
"PatNum":101,
"FieldValue":"Yes"
}

Example Response:
200 OK
400 Bad Request (with explanation)