Current Build
Patient Administration Work Group Maturity Level: 0Trial Use Compartments: N/A

The apply operation applies a definition in a specific context

The official URL for this operation definition is

Formal Definition (as a OperationDefinition).

URL: [base]/ChargeItemDefinition/[id]/$apply

This is not an idempotent operation

In Parameters:

The ChargeItem on which the definition is to ba applies


The account in context, if any

Out Parameters:

The resource that is the result of applying the definition

The result of invoking this operation is a resource of the type specified by the activity definition, with all the definitions resolved as appropriate for the type of resource. Any dynamicValue elements will be evaluated (in the order in which they appear in the resource) and the results applied to the returned resource. If the ActivityDefinition includes library references, those libraries will be available to the evaluated expressions. If those libraries have parameters, those parameters will be bound by name to the parameters given to the operation. For a more detailed description, refer to the ActivityDefinition resource

Apply a ChargeItemDefinitionDefinition to an account (Request):

GET [base]/ChargeItemDefinition/ebm-1100/$apply?account=1234567

Returned on successful application (Response):

HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8"?>
<OperationOutcome xmlns="">
    <status value="generated"/> 
    <div xmlns="">
      <p> Error applying ChargeItemDefinition: Billing Code SHALL NOT be charged for in-patient encounters</p> 
    <severity value="error"/> 
    <code value="business-rule"/> 
      <text value="Billing Code SHALL NOT be charged for in-patient encounters"/> 


For more information about operations, including how they are invoked, see Operations.