### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Expression.json
### ----------------------------------------------------
### -- Chunk 2 of 2
 {
      "id" : "Expression.extension",
      "path" : "Expression.extension",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "url"
        }],
        "description" : "Extensions are always sliced by (at least) url",
        "rules" : "open"
      },
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Expression.description",
      "path" : "Expression.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",
      "base" : {
        "path" : "Expression.description",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "Expression.name",
      "path" : "Expression.name",
      "short" : "Short name assigned to expression for reuse",
      "definition" : "A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Expression.name",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "id"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "Expression.language",
      "path" : "Expression.language",
      "short" : "text/cql | text/fhirpath | application/x-fhir-query | etc.",
      "definition" : "The media type of the language for the expression.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Expression.language",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical" : "http://www.rfc-editor.org/bcp/bcp13.txt"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ExpressionLanguage"
        }],
        "strength" : "extensible",
        "description" : "The media type of the expression language.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/expression-language"
      }
    },
    {
      "id" : "Expression.expression",
      "path" : "Expression.expression",
      "short" : "Expression in specified language",
      "definition" : "An expression in the specified language that returns a value.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Expression.expression",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "Expression.reference",
      "path" : "Expression.reference",
      "short" : "Where the expression is found",
      "definition" : "A URI that defines where the expression is found.",
      "comment" : "If both a reference and an expression is found, the reference SHALL point to the same expression.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Expression.reference",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "uri"
      }],
      "isModifier" : false,
      "isSummary" : true
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "Expression",
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "path" : "Expression",
      "short" : "An expression that can be used to generate a value",
      "definition" : "A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used.",
      "min" : 0,
      "max" : "*",
      "constraint" : [{
        "key" : "exp-1",
        "severity" : "error",
        "human" : "An expression or a reference must be provided",
        "expression" : "expression.exists() or reference.exists()",
        "xpath" : "exists(f:expression) or exists(f:reference)"
      }]
    },
    {
      "id" : "Expression.description",
      "path" : "Expression.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"
      }],
      "isSummary" : true
    },
    {
      "id" : "Expression.name",
      "path" : "Expression.name",
      "short" : "Short name assigned to expression for reuse",
      "definition" : "A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "id"
      }],
      "isSummary" : true
    },
    {
      "id" : "Expression.language",
      "path" : "Expression.language",
      "short" : "text/cql | text/fhirpath | application/x-fhir-query | etc.",
      "definition" : "The media type of the language for the expression.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical" : "http://www.rfc-editor.org/bcp/bcp13.txt"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ExpressionLanguage"
        }],
        "strength" : "extensible",
        "description" : "The media type of the expression language.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/expression-language"
      }
    },
    {
      "id" : "Expression.expression",
      "path" : "Expression.expression",
      "short" : "Expression in specified language",
      "definition" : "An expression in the specified language that returns a value.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true
    },
    {
      "id" : "Expression.reference",
      "path" : "Expression.reference",
      "short" : "Where the expression is found",
      "definition" : "A URI that defines where the expression is found.",
      "comment" : "If both a reference and an expression is found, the reference SHALL point to the same expression.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "uri"
      }],
      "isSummary" : true
    }]
  }
}


