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

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: Created

[{&quot;distribution_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;field_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;values&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},{&quot;distribution_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;field_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;values&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}]