Epi-Management API


GetEncounterAllergy


  • This api is used to get data for the encounter allergies.
    The access token needs to be sent in this api call. Other parameters that can be seen in the headers section here are optional.


    POST

    https://neregaws.epilepsygroup.com/nereg.prod/rest/GetEncounterAllergy

  • HEADERS


    Content-Type
    application/json

    Accept-Encoding
    application/gzip

    Content-Type
    application/x-www-form-urlencoded


  • BODY Raw


    {
    "token": "xxxxxx-xxxx-xxxx-xxxx-xxxxx",
    "encounterid": "",
    "fromdate": "",
    "todate": ""
    }
  • Example Request


    curl --location --request POST 'https://neregaws.epilepsygroup.com/nereg.prod/rest/GetEncounterAllergy' \
    --header 'Content-Type: application/json' \
    --header 'Accept-Encoding: application/gzip' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --header 'Cookie: AWSALB=YHDNYRKt7lIb3JtCKytbrGQhffjcsblPVeiVNK56ItxCZvNWrMvbWu4gPCjrYDJVGF1V74Rgx/u7fBSGozIsqP/m/oqGCNSNQ50MU8RI9+NfiOoNkTlDtgeFFSGC; AWSALBCORS=YHDNYRKt7lIb3JtCKytbrGQhffjcsblPVeiVNK56ItxCZvNWrMvbWu4gPCjrYDJVGF1V74Rgx/u7fBSGozIsqP/m/oqGCNSNQ50MU8RI9+NfiOoNkTlDtgeFFSGC' \
    --data-raw '{
    "token":"xxxxxx-xxxx-xxxx-xxxx-xxxxx",
    "encounterid":"",
    "fromdate":"",
    "todate":""
    }
    '
  • Response


    200


    Body


                                                            {
                                                                "AllergyResponse": {
                                                                    "Allergy": [
                                                                        {
                                                                            "EncounterData": {
                                                                                "EffectiveDateTime": "2015-06-22T11:00:00",
                                                                                "ID": "979"
                                                                            },
                                                                            "allergyListObj": [
                                                                                {
                                                                                    "author": {
                                                                                        "familyName": "MD-FamilyName",
                                                                                        "givenName": "MD-GivenName",
                                                                                        "prefix": "M.D.",
                                                                                        "providerid": "475",
                                                                                        "visitDate": "198005100000-0500"
                                                                                    },
                                                                                    "codeSystem": "2.16.840.1.113883.6.88",
                                                                                    "effectiveTimeHigh": "",
                                                                                    "effectiveTimeLow": "19800510",
                                                                                    "id": "2248",
                                                                                    "negationInd": "",
                                                                                    "participantCode": "7980",
                                                                                    "participantDisplayName": "Penicillin G",
                                                                                    "reactionValueCode": "247472004",
                                                                                    "reactionValueDisplayName": "Hives",
                                                                                    "severityCode": "6736007",
                                                                                    "severityDisplayName": "Moderate",
                                                                                    "status": "Active"
                                                                                },
                                                                                {
                                                                                    "author": {
                                                                                        "familyName": "MD-FamilyName",
                                                                                        "givenName": "MD-GivenName",
                                                                                        "prefix": "M.D.",
                                                                                        "providerid": "475",
                                                                                        "visitDate": "198005100000-0500"
                                                                                    },
                                                                                    "codeSystem": "2.16.840.1.113883.6.88",
                                                                                    "effectiveTimeHigh": "",
                                                                                    "effectiveTimeLow": "19800510",
                                                                                    "id": "2249",
                                                                                    "negationInd": "",
                                                                                    "participantCode": "733",
                                                                                    "participantDisplayName": "Ampicillin",
                                                                                    "reactionValueCode": "247472004",
                                                                                    "reactionValueDisplayName": "Hives",
                                                                                    "severityCode": "6736007",
                                                                                    "severityDisplayName": "Moderate",
                                                                                    "status": "Active"
                                                                                }
                                                                            ]
                                                                        }
                                                                    ],
                                                                    "Response": {
                                                                        "error": "",
                                                                        "status": "OK"
                                                                    }
                                                                }
                                                            }