### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/ChargeItemDefinition.json
### ----------------------------------------------------
### -- Chunk 9 of 9
      "id" : "ChargeItemDefinition.applicability",
      "path" : "ChargeItemDefinition.applicability",
      "short" : "Whether or not the billing code is applicable",
      "definition" : "Expressions that describe applicability criteria for the billing code.",
      "comment" : "The applicability conditions can be used to ascertain whether a billing item is allowed in a specific context. E.g. some billing codes may only be applicable in out-patient settings, only to male/female patients or only to children.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.applicability.description",
      "path" : "ChargeItemDefinition.applicability.description",
      "short" : "Natural language description of the condition",
      "definition" : "A brief, natural language description of the condition that effectively communicates the intended semantics.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.applicability.language",
      "path" : "ChargeItemDefinition.applicability.language",
      "short" : "Language of the expression",
      "definition" : "The media type of the language for the expression, e.g. \"text/cql\" for Clinical Query Language expressions or \"text/fhirpath\" for FHIRPath expressions.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.applicability.expression",
      "path" : "ChargeItemDefinition.applicability.expression",
      "short" : "Boolean-valued expression",
      "definition" : "An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied.",
      "comment" : "Please note that FHIRPath Expressions can only be evaluated in the scope of the current ChargeItem resource to which this definition is being applied.\nFHIRPath expressions can traverse into other resources linked from the ChargeItem resource, however, testing rules such as that a billing code may be billed only once per encounter need a wider scope. In such scenarios, CQL may be the appropriate choice.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.propertyGroup",
      "path" : "ChargeItemDefinition.propertyGroup",
      "short" : "Group of properties which are applicable under the same conditions",
      "definition" : "Group of properties which are applicable under the same conditions. If no applicability rules are established for the group, then all properties always apply.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.propertyGroup.applicability",
      "path" : "ChargeItemDefinition.propertyGroup.applicability",
      "short" : "Conditions under which the priceComponent is applicable",
      "definition" : "Expressions that describe applicability criteria for the priceComponent.",
      "comment" : "The applicability conditions can be used to ascertain whether a billing item is allowed in a specific context. E.g. some billing codes may only be applicable in out-patient settings, only to male/female patients or only to children.",
      "min" : 0,
      "max" : "*",
      "contentReference" : "#ChargeItemDefinition.applicability",
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.propertyGroup.priceComponent",
      "path" : "ChargeItemDefinition.propertyGroup.priceComponent",
      "short" : "Components of total line item price",
      "definition" : "The price for a ChargeItem may be calculated as a base price with surcharges/deductions that apply in certain conditions. A ChargeItemDefinition resource that defines the prices, factors and conditions that apply to a billing code is currently under development. The priceComponent element can be used to offer transparency to the recipient of the Invoice of how the prices have been calculated.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.propertyGroup.priceComponent.type",
      "path" : "ChargeItemDefinition.propertyGroup.priceComponent.type",
      "short" : "base | surcharge | deduction | discount | tax | informational",
      "definition" : "This code identifies the type of the component.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ChargeItemDefinitionPriceComponentType"
        }],
        "strength" : "required",
        "description" : "Codes indicating the kind of the price component.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.propertyGroup.priceComponent.code",
      "path" : "ChargeItemDefinition.propertyGroup.priceComponent.code",
      "short" : "Code identifying the specific component",
      "definition" : "A code that identifies the component. Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.propertyGroup.priceComponent.factor",
      "path" : "ChargeItemDefinition.propertyGroup.priceComponent.factor",
      "short" : "Factor used for calculating this component",
      "definition" : "The factor that has been applied on the base price for calculating this component.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "decimal"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ChargeItemDefinition.propertyGroup.priceComponent.amount",
      "path" : "ChargeItemDefinition.propertyGroup.priceComponent.amount",
      "short" : "Monetary amount associated with this component",
      "definition" : "The amount calculated for this component.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Money"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    }]
  }
}


