Encounter Distribution
POST {{baseUrl}}/get_encounter_distribution/execute
This function will provide the distribution of a specific field in the context of an encounter. These are the distribution types to be supported 1: EOD - value of the field at the end of the day 2: NORMAL - distribution of every value in terms of start and end for the field during the duration of encounter 3: DISTINCT - All the distinct values for the field as part of encounter
Request Body
{"alternate_visit_id"=>"<string>", "distributions"=>[{"distribution_type"=>"<string>", "field_name"=>"<string>"}, {"distribution_type"=>"<string>", "field_name"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: Created
[{"distribution_type":"\u003cstring\u003e","field_name":"\u003cstring\u003e","values":["\u003cstring\u003e","\u003cstring\u003e"]},{"distribution_type":"\u003cstring\u003e","field_name":"\u003cstring\u003e","values":["\u003cstring\u003e","\u003cstring\u003e"]}]