Epi-Management API


GetEncounterMedications


  • This api is used to get data for the encounter medication.
    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/GetEncounterMedications

  • 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/GetEncounterMedications' \
    --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


                                                            {
                                                                "MedicationsResponse": {
                                                                    "Medications": [
                                                                        {
                                                                            "EncounterData": {
                                                                                "EffectiveDateTime": "2015-06-22T11:00:00",
                                                                                "ID": "979"
                                                                            },
                                                                            "medicationListObj": [
                                                                                {
                                                                                    "administrationUnitCode": "",
                                                                                    "administrationUnitDisplayName": "",
                                                                                    "author": {
                                                                                        "familyName": "MD-FamilyName",
                                                                                        "givenName": "MD-GivenName",
                                                                                        "prefix": "M.D.",
                                                                                        "providerid": "475",
                                                                                        "visitDate": "201506220000-0500"
                                                                                    },
                                                                                    "doseQuantityUnit": "unit",
                                                                                    "doseQuantityValue": "1",
                                                                                    "effectiveTimeHigh": "20150630",
                                                                                    "effectiveTimeLow": "20150622",
                                                                                    "effectiveTimePeriodUnit": "",
                                                                                    "effectiveTimePeriodValue": "",
                                                                                    "findingCode": "",
                                                                                    "findingDisplayName": "",
                                                                                    "findingEffectiveTimeHigh": "",
                                                                                    "findingEffectiveTimeLow": "",
                                                                                    "findingStatus": "",
                                                                                    "id": "60123",
                                                                                    "instructions": "Two times  daily",
                                                                                    "manufacturedMaterialObj": {
                                                                                        "codeSystem": "",
                                                                                        "manufacturedMaterialCode": "309090",
                                                                                        "manufacturedMaterialDisplayName": "Ceftriaxone 100MG/ML",
                                                                                        "manufacturedMaterialOriginalText": "",
                                                                                        "manufacturedMaterialTranslationCode": "",
                                                                                        "manufacturedMaterialTranslationDisplayName": ""
                                                                                    },
                                                                                    "manufacturerOrganization": "",
                                                                                    "participantPlayingEntityCode": "",
                                                                                    "participantPlayingEntityDisplayName": "",
                                                                                    "preconditionValueCode": "",
                                                                                    "preconditionValueDisplayName": "",
                                                                                    "rateQuantityUnit": "",
                                                                                    "rateQuantityValue": "",
                                                                                    "routeCodeCode": "",
                                                                                    "routeCodeDisplayName": "Injectable",
                                                                                    "status": ""
                                                                                },
                                                                                {
                                                                                    "administrationUnitCode": "",
                                                                                    "administrationUnitDisplayName": "",
                                                                                    "author": {
                                                                                        "familyName": "MD-FamilyName",
                                                                                        "givenName": "MD-GivenName",
                                                                                        "prefix": "M.D.",
                                                                                        "providerid": "475",
                                                                                        "visitDate": "201506220000-0500"
                                                                                    },
                                                                                    "doseQuantityUnit": "unit",
                                                                                    "doseQuantityValue": "1",
                                                                                    "effectiveTimeHigh": "20150702",
                                                                                    "effectiveTimeLow": "20150622",
                                                                                    "effectiveTimePeriodUnit": "",
                                                                                    "effectiveTimePeriodValue": "",
                                                                                    "findingCode": "",
                                                                                    "findingDisplayName": "",
                                                                                    "findingEffectiveTimeHigh": "",
                                                                                    "findingEffectiveTimeLow": "",
                                                                                    "findingStatus": "",
                                                                                    "id": "60124",
                                                                                    "instructions": "As needed for 10 days",
                                                                                    "manufacturedMaterialObj": {
                                                                                        "codeSystem": "",
                                                                                        "manufacturedMaterialCode": "209459",
                                                                                        "manufacturedMaterialDisplayName": "Tylenol 500mg",
                                                                                        "manufacturedMaterialOriginalText": "",
                                                                                        "manufacturedMaterialTranslationCode": "",
                                                                                        "manufacturedMaterialTranslationDisplayName": ""
                                                                                    },
                                                                                    "manufacturerOrganization": "",
                                                                                    "participantPlayingEntityCode": "",
                                                                                    "participantPlayingEntityDisplayName": "",
                                                                                    "preconditionValueCode": "",
                                                                                    "preconditionValueDisplayName": "",
                                                                                    "rateQuantityUnit": "",
                                                                                    "rateQuantityValue": "",
                                                                                    "routeCodeCode": "",
                                                                                    "routeCodeDisplayName": "Oral",
                                                                                    "status": ""
                                                                                },
                                                                                {
                                                                                    "administrationUnitCode": "",
                                                                                    "administrationUnitDisplayName": "",
                                                                                    "author": {
                                                                                        "familyName": "MD-FamilyName",
                                                                                        "givenName": "MD-GivenName",
                                                                                        "prefix": "M.D.",
                                                                                        "providerid": "475",
                                                                                        "visitDate": "202112150000-0500"
                                                                                    },
                                                                                    "doseQuantityUnit": "unit",
                                                                                    "doseQuantityValue": "1",
                                                                                    "effectiveTimeHigh": "00000",
                                                                                    "effectiveTimeLow": "20150622",
                                                                                    "effectiveTimePeriodUnit": "",
                                                                                    "effectiveTimePeriodValue": "",
                                                                                    "findingCode": "",
                                                                                    "findingDisplayName": "",
                                                                                    "findingEffectiveTimeHigh": "",
                                                                                    "findingEffectiveTimeLow": "",
                                                                                    "findingStatus": "",
                                                                                    "id": "60125",
                                                                                    "instructions": "Once a  week",
                                                                                    "manufacturedMaterialObj": {
                                                                                        "codeSystem": "",
                                                                                        "manufacturedMaterialCode": "731241",
                                                                                        "manufacturedMaterialDisplayName": "Aranesp 0.5MG / ML",
                                                                                        "manufacturedMaterialOriginalText": "",
                                                                                        "manufacturedMaterialTranslationCode": "",
                                                                                        "manufacturedMaterialTranslationDisplayName": ""
                                                                                    },
                                                                                    "manufacturerOrganization": "",
                                                                                    "participantPlayingEntityCode": "",
                                                                                    "participantPlayingEntityDisplayName": "",
                                                                                    "preconditionValueCode": "",
                                                                                    "preconditionValueDisplayName": "",
                                                                                    "rateQuantityUnit": "",
                                                                                    "rateQuantityValue": "",
                                                                                    "routeCodeCode": "",
                                                                                    "routeCodeDisplayName": "Injectable",
                                                                                    "status": ""
                                                                                }
                                                                            ]
                                                                        }
                                                                    ],
                                                                    "Response": {
                                                                        "error": "",
                                                                        "status": "OK"
                                                                    }
                                                                }
                                                            }