### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/OperationOutcome.json
### ----------------------------------------------------
### -- Chunk 3 of 3
      }]
    },
    {
      "id" : "OperationOutcome.issue.extension",
      "path" : "OperationOutcome.issue.extension",
      "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" : "OperationOutcome.issue.modifierExtension",
      "path" : "OperationOutcome.issue.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "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.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "OperationOutcome.issue.severity",
      "path" : "OperationOutcome.issue.severity",
      "short" : "fatal | error | warning | information",
      "definition" : "Indicates whether the issue indicates a variation from successful processing.",
      "comment" : "This is labeled as \"Is Modifier\" because applications should not confuse hints and warnings with errors.",
      "requirements" : "Indicates how relevant the issue is to the overall success of the action.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "OperationOutcome.issue.severity",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "IssueSeverity"
        }],
        "strength" : "required",
        "description" : "How the issue affects the success of the action.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/issue-severity|4.0.0"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-4"
      },
      {
        "identity" : "rim",
        "map" : "./typeCode[parent::AcknowledgmentDetail] or unique(./inboundRelationship[parent::Observation and typeCode='SUBJ' and isNormalActRelationship()]/source[classCode=\"OBS\" and moodCode=\"EVN\" and implies(code, ActCode#SEV and isNormalAct())/value[xsi:type=\"CD\"]"
      }]
    },
    {
      "id" : "OperationOutcome.issue.code",
      "path" : "OperationOutcome.issue.code",
      "short" : "Error or warning code",
      "definition" : "Describes the type of the issue. The system that creates an OperationOutcome SHALL choose the most applicable code from the IssueType value set, and may additional provide its own code for the error in the details element.",
      "requirements" : "Expresses the issue in a human and computer-friendly way, allowing the requesting system to behave differently based on the type of issue.\n\nThe required element provides a base level of computable interoperability across all systems for processing an outcome, allowing systems to respond appropriately regardless of the internal system error codes returned.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "OperationOutcome.issue.code",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "IssueType"
        }],
        "strength" : "required",
        "description" : "A code that describes the type of issue.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/issue-type|4.0.0"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-3"
      },
      {
        "identity" : "rim",
        "map" : "./code"
      }]
    },
    {
      "id" : "OperationOutcome.issue.details",
      "path" : "OperationOutcome.issue.details",
      "short" : "Additional details about the error",
      "definition" : "Additional details about the error. This may be a text description of the error or a system code that identifies the error.",
      "comment" : "A human readable description of the error issue SHOULD be placed in details.text.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "OperationOutcome.issue.details",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "IssueDetails"
        }],
        "strength" : "example",
        "description" : "A code that provides details as the exact issue.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/operation-outcome"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-5"
      },
      {
        "identity" : "rim",
        "map" : "./code"
      }]
    },
    {
      "id" : "OperationOutcome.issue.diagnostics",
      "path" : "OperationOutcome.issue.diagnostics",
      "short" : "Additional diagnostic information about the issue",
      "definition" : "Additional diagnostic information about the issue.",
      "comment" : "This may be a description of how a value is erroneous, a stack dump to help trace the issue or other troubleshooting information.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "OperationOutcome.issue.diagnostics",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-8"
      },
      {
        "identity" : "rim",
        "map" : "./text[parent::AcknowledgmentDetail]"
      }]
    },
    {
      "id" : "OperationOutcome.issue.location",
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "deprecated"
      }],
      "path" : "OperationOutcome.issue.location",
      "short" : "Deprecated: Path of element(s) related to issue",
      "definition" : "This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse. \n\nFor resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised.  For HTTP errors, will be \"http.\" + the parameter name.",
      "comment" : "The root of the XPath is the resource or bundle that generated OperationOutcome.  Each XPath SHALL resolve to a single node.  This element is deprecated, and is being replaced by expression.",
      "requirements" : "Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "OperationOutcome.issue.location",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-2"
      },
      {
        "identity" : "rim",
        "map" : "./location[parent::AcknowledgmentDetail]"
      }]
    },
    {
      "id" : "OperationOutcome.issue.expression",
      "path" : "OperationOutcome.issue.expression",
      "short" : "FHIRPath of element(s) related to issue",
      "definition" : "A [simple subset of FHIRPath](fhirpath.html#simple) limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised.",
      "comment" : "The root of the FHIRPath is the resource or bundle that generated OperationOutcome.  Each FHIRPath SHALL resolve to a single node.",
      "requirements" : "Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "OperationOutcome.issue.expression",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-2"
      },
      {
        "identity" : "rim",
        "map" : "./location[parent::AcknowledgmentDetail]"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "OperationOutcome",
      "path" : "OperationOutcome",
      "short" : "Information about the success/failure of an action",
      "definition" : "A collection of error, warning, or information messages that result from a system action.",
      "comment" : "Can result from the failure of a REST call or be part of the response message returned from a request message.",
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "rim",
        "map" : "Grouping is handled through multiple repetitions from whatever context references the outcomes (no specific grouper required)"
      }]
    },
    {
      "id" : "OperationOutcome.issue",
      "path" : "OperationOutcome.issue",
      "short" : "A single issue associated with the action",
      "definition" : "An error, warning, or information message that results from a system action.",
      "min" : 1,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR"
      },
      {
        "identity" : "rim",
        "map" : "AcknowledgementDetail or Observation[classCode=\"ALRT\" and moodCode=\"EVN\"]"
      }]
    },
    {
      "id" : "OperationOutcome.issue.severity",
      "path" : "OperationOutcome.issue.severity",
      "short" : "fatal | error | warning | information",
      "definition" : "Indicates whether the issue indicates a variation from successful processing.",
      "comment" : "This is labeled as \"Is Modifier\" because applications should not confuse hints and warnings with errors.",
      "requirements" : "Indicates how relevant the issue is to the overall success of the action.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "IssueSeverity"
        }],
        "strength" : "required",
        "description" : "How the issue affects the success of the action.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/issue-severity|4.0.0"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-4"
      },
      {
        "identity" : "rim",
        "map" : "./typeCode[parent::AcknowledgmentDetail] or unique(./inboundRelationship[parent::Observation and typeCode='SUBJ' and isNormalActRelationship()]/source[classCode=\"OBS\" and moodCode=\"EVN\" and implies(code, ActCode#SEV and isNormalAct())/value[xsi:type=\"CD\"]"
      }]
    },
    {
      "id" : "OperationOutcome.issue.code",
      "path" : "OperationOutcome.issue.code",
      "short" : "Error or warning code",
      "definition" : "Describes the type of the issue. The system that creates an OperationOutcome SHALL choose the most applicable code from the IssueType value set, and may additional provide its own code for the error in the details element.",
      "requirements" : "Expresses the issue in a human and computer-friendly way, allowing the requesting system to behave differently based on the type of issue.\n\nThe required element provides a base level of computable interoperability across all systems for processing an outcome, allowing systems to respond appropriately regardless of the internal system error codes returned.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "IssueType"
        }],
        "strength" : "required",
        "description" : "A code that describes the type of issue.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/issue-type|4.0.0"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-3"
      },
      {
        "identity" : "rim",
        "map" : "./code"
      }]
    },
    {
      "id" : "OperationOutcome.issue.details",
      "path" : "OperationOutcome.issue.details",
      "short" : "Additional details about the error",
      "definition" : "Additional details about the error. This may be a text description of the error or a system code that identifies the error.",
      "comment" : "A human readable description of the error issue SHOULD be placed in details.text.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "IssueDetails"
        }],
        "strength" : "example",
        "description" : "A code that provides details as the exact issue.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/operation-outcome"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-5"
      },
      {
        "identity" : "rim",
        "map" : "./code"
      }]
    },
    {
      "id" : "OperationOutcome.issue.diagnostics",
      "path" : "OperationOutcome.issue.diagnostics",
      "short" : "Additional diagnostic information about the issue",
      "definition" : "Additional diagnostic information about the issue.",
      "comment" : "This may be a description of how a value is erroneous, a stack dump to help trace the issue or other troubleshooting information.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-8"
      },
      {
        "identity" : "rim",
        "map" : "./text[parent::AcknowledgmentDetail]"
      }]
    },
    {
      "id" : "OperationOutcome.issue.location",
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "deprecated"
      }],
      "path" : "OperationOutcome.issue.location",
      "short" : "Deprecated: Path of element(s) related to issue",
      "definition" : "This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse. \n\nFor resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised.  For HTTP errors, will be \"http.\" + the parameter name.",
      "comment" : "The root of the XPath is the resource or bundle that generated OperationOutcome.  Each XPath SHALL resolve to a single node.  This element is deprecated, and is being replaced by expression.",
      "requirements" : "Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-2"
      },
      {
        "identity" : "rim",
        "map" : "./location[parent::AcknowledgmentDetail]"
      }]
    },
    {
      "id" : "OperationOutcome.issue.expression",
      "path" : "OperationOutcome.issue.expression",
      "short" : "FHIRPath of element(s) related to issue",
      "definition" : "A [simple subset of FHIRPath](fhirpath.html#simple) limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised.",
      "comment" : "The root of the FHIRPath is the resource or bundle that generated OperationOutcome.  Each FHIRPath SHALL resolve to a single node.",
      "requirements" : "Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "ERR-2"
      },
      {
        "identity" : "rim",
        "map" : "./location[parent::AcknowledgmentDetail]"
      }]
    }]
  }
}


