MedicationAdministration Profile

This MedicationAdministration profile is part of the set of resource profiles supported by the API Server used with the athenaPractice 12.3 and athenaFlow 9.12 products. It further describes read and search capabilities of these products. Note: The create and update operations are NOT supported for this resource.

Overview

This resource captures the event of a patient being administered a medication. This can range from a patient swallowing a tablet, getting a vaccine, or receiving an infusion.

Scope and Usage

This profile is used to define the content that will be returned by the API Server in response to requests to access MedicationAdministration resources. All elements listed in the differential profile view are Supported, which means that the API Server is capable of supplying these fields from the product database when they have been populated via the product or its APIs.

Source

The MedicationAdministration resource is derived from the MedInfo tables in athenaPractice and athenaFlow. Specific detail can be found in the Mappings section below.

Read Operation

Supported Operations

The operations supported by this resource are listed below.

Read operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To read a MedicationAdministration, an application shall perform an HTTP GET, specifying the identifier of the resources being retrieved.

GET [base]/fhir/MedicationAdministration/[id]{?_format=[json|xml]&_summary=[true|data]}

Read Operation Parameters

ParameterDescription
[base]Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer
[id]Specifies the identifier of the MedicationAdministration resource to retrieve
[_format]Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request.
[_summary]Filters the output to include only summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides slightly improved API response times.

Read Operation HTTP Response Codes

Response CodeDescription
200 OKThe requested resource was found and is contained within the body of the HTTP response.
401 UnauthorizedAuthorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required.
404 Not FoundThe requested resource does not exist. The body of the HTTP response will contain an OperationOutcome resource that indicates that the resource could not be found.
500 Server ErrorThe server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error.

Search Operation

Search operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To search for MedicationAdministration resources, an application shall perform an HTTP GET, specifying the query parameters associated with the resource.

GET [base]/fhir/MedicationAdministration?{search-parameters}{&_count=[max-results]&_format=[json|xml]&_summary=[true|text|data]}

Search Operation Parameters

ParameterDescription
[base]Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer
[_count]Specifies the maximum number of search results to return in a single query. Note: The count of results does not limit the number of additional resources returned via the _include parameter. No more than max-results MedicationAdministration resources which match the search criteria will be returned. The API Server has default and maximum limits for the value that can be specified for this parameter. These limits may vary depending upon the client application vendors participation level in the AthenaHealth Partner program. Note: The API Server support the HL7 FHIR Paging capability.
[_format]Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request.
[_summary]Filters the output to include only narrative elements (_summary=text), summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides improved API response times, especially when returning larger result sets.
_id (token )The ID of the resource
_lastUpdated (date )
_lastUpdated-fromnow (quantity )Like _lastUpdated except expressed as a positive or negative offset from the current time in units of time , e.g. _lastUpdated-fromnow=ge7||d for more than seven days in the future or =le-2||mo for less than two months in the past. The unit must be specified.
_security (token )
ddid (token )
effectivetime (date )Date administration happened (or did not happen)
effectivetime-fromnow (quantity )Like effectivetime except expressed as a positive or negative offset from the current time in units of time , e.g. effectivetime-fromnow=ge7||d for more than seven days in the future or =le-2||mo for less than two months in the past. The unit must be specified.
encounter (reference )Return administrations that share this encounter
encounter-or-historical (reference )
identifier (token )Return administrations with this external identifier
medication (reference )Return administrations of this medication resource
ndc (token )
patient (reference )The identity of a patient to list administrations for
practitioner (reference )Who administered substance
rxnorm (token )
status (token )MedicationAdministration event status (for example one of active/paused/completed/nullified)

Search Operation HTTP Response Codes

Response CodeDescription
200 OKThe query was performed and any results found are contained within the body of the HTTP response. Note: The search API will return 200 OK when the query itself is successful, regardless of whether or not any matching results were found.
401 UnauthorizedAuthorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required.
500 Server ErrorThe server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error.

athenaPractice Mapping

The mappings in this section represent the how data stored within athenaPractice is served through the product's APIs. athenaPractice and athenaFlow share a common schema for patient clinical data and only one is shown when these are the same. Use of this information is subject to the API Server Terms and Conditions .

MedicationAdministration Profile
MedicationAdministrationMedicationAdministration-ProFHIR_MEDADMINVIEW
 ├ idMEDADMINGROUPID%MEDADMINGROUPID%
 ├ extensionndc
 ├ extensionddid
 ├ extensionrxnormMakeRxnormExtensionList(%RXNORM%,"http://www.nlm.nih.gov/research/umls/rxnorm",null)
 ├ identifierExternal MedicationAdministration IdentifierMakeIdentifier("U",getSiteSystem("MedicationAdministrationId"),%MEDADMINGROUPID%)
 ├ statusINACTIVE, FILEDINERROR, REASONREMOVEDEMRMapper.MapMedicationAdministrationStatus(%INACTIVE%,%FILEDINERROR%,%REASONREMOVED%)
 ├ patientOIDMakeReference("PATIENT",%PID%,"Patient")
 ├ practitionerADMINISTEREDBYPVIDMakeReference("USR",%ADMINISTEREDBYPVID%,"Practitioner")
 ├ encounterSDIDMakeReference("DOCUMENT",%SDID%,"Encounter")
 ├ reasonNotGivenREASONREMOVEDMakeTextConcept(%REASONREMOVED%)
 ├ reasonGivenPRIMARYDIAGNOSISMakeTextConcept(%PRIMARYDIAGNOSIS%)
 ├ effectiveTimePeriodSTARTDATETIME and STOPDATETIMEMakePeriod(%STARTDATETIME%,%STOPDATETIME%)
 ├ medicationReferenceDDIDMakeReference("MEDINFO",%DDID%,"Medication", %PRODUCTNAME%)
 └ noteADMINCOMMENTS%ADMINCOMMENTS%
   ├ siteCodeableConceptSITECODEMakeConcept(%SITECODE%,"http://hl7.org/fhir/v3/ActSite",%SITE%)
   ├ routeROUTEMakeConcept(%ROUTECODE%,"http://hl7.org/fhir/v3/RouteOfAdministration",%ROUTE%)
   └ quantityADMINDOSE, ADMINUNITSMakeNonZeroQuantity(%ADMINDOSE%,%ADMINUNITS%)

athenaFlow Mapping

The mappings in this section represent the how data stored within athenaFlow is served through the product's APIs. Use of this information is subject to the API Server Terms and Conditions .

MedicationAdministration Profile
MedicationAdministrationMedicationAdministration-ProFHIR_MEDADMINVIEW
 ├ idMEDADMINGROUPID%MEDADMINGROUPID%
 ├ extensionndc
 ├ extensionddid
 ├ extensionrxnormMakeRxnormExtensionList(%RXNORM%,"http://www.nlm.nih.gov/research/umls/rxnorm",null)
 ├ identifierExternal MedicationAdministration IdentifierMakeIdentifier("U",getSiteSystem("MedicationAdministrationId"),%MEDADMINGROUPID%)
 ├ statusINACTIVE, FILEDINERROR, REASONREMOVEDEMRMapper.MapMedicationAdministrationStatus(%INACTIVE%,%FILEDINERROR%,%REASONREMOVED%)
 ├ patientOIDMakeReference("PATIENT",%PID%,"Patient")
 ├ practitionerADMINISTEREDBYPVIDMakeReference("USR",%ADMINISTEREDBYPVID%,"Practitioner")
 ├ encounterSDIDMakeReference("DOCUMENT",%SDID%,"Encounter")
 ├ reasonNotGivenREASONREMOVEDMakeTextConcept(%REASONREMOVED%)
 ├ reasonGivenPRIMARYDIAGNOSISMakeTextConcept(%PRIMARYDIAGNOSIS%)
 ├ effectiveTimePeriodSTARTDATETIME and STOPDATETIMEMakePeriod(%STARTDATETIME%,%STOPDATETIME%)
 ├ medicationReferenceDDIDMakeReference("MEDINFO",%DDID%,"Medication", %PRODUCTNAME%)
 └ noteADMINCOMMENTS%ADMINCOMMENTS%
   ├ siteCodeableConceptSITECODEMakeConcept(%SITECODE%,"http://hl7.org/fhir/v3/ActSite",%SITE%)
   ├ routeROUTEMakeConcept(%ROUTECODE%,"http://hl7.org/fhir/v3/RouteOfAdministration",%ROUTE%)
   └ quantityADMINDOSE, ADMINUNITSMakeNonZeroQuantity(%ADMINDOSE%,%ADMINUNITS%)