Update Sale
Updating Sales (Visits)
General rules in updating the Sale
Even some fields are mandatory when creating a Sale, they are optional when updating. Basically, you will put only fields you are going to change. Anyway, if you put the given field, but it equals to existing value, an update ain't be done. For instance, if you do not provide a Note to the Sale, the existing Note will not be deleted, it will just leave as is. Objects or their attributes you can update through PUT are:
Patient
Doctor
Doctor's speciality
Note
The only attributes on Sale you can change are Sale Schema and optional fields (Field1, Field2, and Field3). The Note to the Sale is considered as a child object and to delete it you have to pass an empty Note. You can miss items collection to leave all them as they are. If you have items collection, then all the collection will be copmared (through Loinc codes) to the existing set and missing items will be deleted, extra items will be added.
Only Sale Items with status Pending (!isReady) can be removed.
Last updated
Was this helpful?