### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/DetectedIssue.json
### ----------------------------------------------------
### -- Chunk 5 of 6
 : "The date or period when the detected issue was initially identified.",
      "requirements" : "No-one can be responsible for mitigation prior to the issue being identified.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DetectedIssue.identified[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "dateTime"
      },
      {
        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.recorded"
      },
      {
        "identity" : "v2",
        "map" : "ALI-6 / IAM-11"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "DetectedIssue.author",
      "path" : "DetectedIssue.author",
      "short" : "The provider or device that identified the issue",
      "definition" : "Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DetectedIssue.author",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.author"
      },
      {
        "identity" : "v2",
        "map" : "IAM-14 / IAM-16"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=AUT].role[classCode=ASSIGNED]"
      }]
    },
    {
      "id" : "DetectedIssue.implicated",
      "path" : "DetectedIssue.implicated",
      "short" : "Problem resource",
      "definition" : "Indicates the resource representing the current activity or proposed activity that is potentially problematic.",
      "comment" : "There's an implicit constraint on the number of implicated resources based on DetectedIssue.type; e.g. For drug-drug, there would be more than one.  For timing, there would typically only be one.",
      "alias" : ["cause"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DetectedIssue.implicated",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonReference"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=SUBJ].target[moodCode=EVN, INT]"
      }]
    },
    {
      "id" : "DetectedIssue.evidence",
      "path" : "DetectedIssue.evidence",
      "short" : "Supporting evidence",
      "definition" : "Supporting evidence or manifestations that provide the basis for identifying the detected issue such as a GuidanceResponse or MeasureReport.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DetectedIssue.evidence",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "id" : "DetectedIssue.evidence.id",
      "path" : "DetectedIssue.evidence.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "DetectedIssue.evidence.extension",
      "path" : "DetectedIssue.evidence.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" : "DetectedIssue.evidence.modifierExtension",
      "path" : "DetectedIssue.evidence.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" : "DetectedIssue.evidence.code",
      "path" : "DetectedIssue.evidence.code",
      "short" : "Manifestation",
      "definition" : "A manifestation that led to the recording of this detected issue.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DetectedIssue.evidence.code",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DetectedIssueEvidenceCode"
        }],
        "strength" : "example",
        "description" : "Codes that describes the types of evidence for a detected issue.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/manifestation-or-symptom"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "id" : "DetectedIssue.evidence.detail",
      "path" : "DetectedIssue.evidence.detail",
      "short" : "Supporting information",
      "definition" : "Links to resources that constitute evidence for the detected issue such as a GuidanceResponse or MeasureReport.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DetectedIssue.evidence.detail",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "id" : "DetectedIssue.detail",
      "path" : "DetectedIssue.detail",
      "short" : "Description and context",
      "definition" : "A textual explanation of the detected issue.",
      "comment" : "Should focus on information not covered elsewhere as discrete data - no need to duplicate the narrative.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DetectedIssue.detail",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.note"
      },
      {
        "identity" : "v2",
        "map" : "AL1-5 / IAM-8"
      },
      {
        "identity" : "rim",
        "map" : ".text"
      }]
    },
    {
      "id" : "DetectedIssue.reference",
      "path" : "DetectedIssue.reference",
      "short" : "Authority for issue",
      "definition" : "The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DetectedIssue.reference",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "uri"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=INST].target[classCode=ALRT, moodCode=DEFN].text.uri"
      }]
    },
    {
      "id" : "DetectedIssue.mitigation",
      "path" : "DetectedIssue.mitigation",
      "short" : "Step taken to address",
      "definition" : "Indicates an action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.  Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DetectedIssue.mitigation",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=MITG].target[classCode=ACT, moodCode=EVN]"
      }]
    },
    {
      "id" : "DetectedIssue.mitigation.id",
      "path" : "DetectedIssue.mitigation.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "DetectedIssue.mitigation.extension",
      "path" : "DetectedIssue.mitigation.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" : "DetectedIssue.mitigation.modifierExtension",
      "path" : "DetectedIssue.mitigation.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" : "DetectedIssue.mitigation.action",
      "path" : "DetectedIssue.mitigation.action",
      "short" : "What mitigation?",
      "definition" : "Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.",
      "comment" : "The \"text\" component can be used for detail or when no appropriate code exists.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "DetectedIssue.mitigation.action",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DetectedIssueMitigationAction"
        }],
        "strength" : "preferred",
        "description" : "Codes describing steps taken to resolve the issue or other circumstances that mitigate the risk associated with the issue; e.g. 'added concurrent therapy', 'prior therapy documented', etc.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/detectedissue-mitigation-action"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "DetectedIssue.mitigation.date",
      "path" : "DetectedIssue.mitigation.date",
      "short" : "Date committed",
      "definition" : "Indicates when the mitigating action was documented.",
      "comment" : "This might not be the same as when the mitigating step was actually taken.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DetectedIssue.mitigation.date",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "dateTime"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "DetectedIssue.mitigation.author",
      "path" : "DetectedIssue.mitigation.author",
      "short" : "Who is committing?",
      "definition" : "Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DetectedIssue.mitigation.author",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=AUT].role[classCode=ASSIGNED]"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "DetectedIssue",
      "path" : "DetectedIssue",
      "short" : "Clinical issue with action",
      "definition" : "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc.",
      "alias" : ["DDI",
      "drug-drug interaction",
      "Contraindication",
      "Alert"],
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event"
      },
      {
        "identity" : "v2",
        "map" : "Partial mapping from messages containing the AL1 or IAM segment, such as the ADT^A01, ADT^A08, and ADT^A60."
      },
      {
        "identity" : "rim",
        "map" : "Observation[classCode=ALRT, moodCode=EVN)"
      }]
    },
    {
      "id" : "DetectedIssue.identifier",
      "path" : "DetectedIssue.identifier",
      "short" : "Unique id for the detected issue",
      "definition" : "Business identifier associated with the detected issue record.",
      "requirements" : "Allows linking instances of the same detected issue found on different servers.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.identifier"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "v2",
        "map" : "IAM-7"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "DetectedIssue.status",
      "path" : "DetectedIssue.status",
      "short" : "registered | preliminary | final | amended +",
      "definition" : "Indicates the status of the detected issue.",
      "comment" : "This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the issue as not currently valid.",
      "alias" : ["status"],
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DetectedIssueStatus"
        }],
        "strength" : "required",
        "description" : "Indicates the status of the identified issue.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.status"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.status"
      }]
    },
    {
      "id" : "DetectedIssue.code",
      "path" : "DetectedIssue.code",
      "short" : "Issue Category, e.g. drug-drug, duplicate therapy, etc.",
      "definition" : "Identifies the general type of issue identified.",
      "alias" : ["type"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DetectedIssueCategory"
        }],
        "strength" : "preferred",
        "description" : "Codes identifying the general type of detected issue; e.g. Drug-drug interaction, Timing issue, Duplicate therapy, etc.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/detectedissue-category"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.class"
      },
      {
        "identity" : "v2",
        "map" : "AL1-2 / IAM-9"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "DetectedIssue.severity",
      "path" : "DetectedIssue.severity",
      "short" : "high | moderate | low",
      "definition" : "Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.",
      "alias" : ["severity"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DetectedIssueSeverity"
        }],
        "strength" : "required",
        "description" : "Indicates the potential degree of impact of the identified issue on the patient.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/detectedissue-severity|4.0.0"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.grade"
      },
      {
        "identity" : "v2",
        "map" : "AL1-4/ IAR-2"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV].value"
      }]
    },
    {
      "id" : "DetectedIssue.patient",
      "path" : "DetectedIssue.patient",
      "short" : "Associated patient",
      "definition" : "Indicates the patient whose record the detected issue is associated with.",
      "requirements" : "While the subject could be inferred by tracing the subject of the implicated resources, it's useful to have a direct link for query purposes.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "v2",
        "map" : "PID-3"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=SBJ].role[classCode=PAT]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "DetectedIssue.identified[x]",
      "path" : "DetectedIssue.identified[x]",
      "short" : "When identified",
      "definition" : "The date or period when the detected issue was initially identified.",
      "requirements" : "No-one can be responsible for mitigation prior to the issue being identified.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      },
      {
        "code" : "Period"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.recorded"
      },
      {
        "identity" : "v2",
        "map" : "ALI-6 / IAM-11"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "DetectedIssue.author",
      "path" : "DetectedIssue.author",
      "short" : "The provider or device that identified the issue",
      "definition" : "Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.author"
      },
      {
        "identity" : "v2",
        "map" : "IAM-14 / IAM-16"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=AUT].role[classCode=ASSIGNED]"
      }]
    },
    {
      "id" : "DetectedIssue.implicated",
      "path" : "DetectedIssue.implicated",
      "short" : "Problem resource",
      "definition" : "Indicates the resource representing the current activity or proposed activity that is potentially problematic.",
      "comment" : "There's an implicit constraint on the number of implicated resources based on DetectedIssue.type; e.g. For drug-drug, there would be more than one.  For timing, there would typically only be one.",
      "alias" : ["cause"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonReference"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=SUBJ].target[moodCode=EVN, INT]"
      }]
    },
    {
      "id" : "DetectedIssue.evidence",
      "path" : "DetectedIssue.evidence",
      "short" : "Supporting evidence",
      "definition" : "Supporting evidence or manifestations that provide the basis for identifying the detected issue such as a GuidanceResponse or MeasureReport.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "id" : "DetectedIssue.evidence.code",
      "path" : "DetectedIssue.evidence.code",
      "short" : "Manifestation",
      "definition" : "A manifestation that led to the recording of this detected issue.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DetectedIssueEvidenceCode"
        }],
        "strength" : "example",
        "description" : "Codes that describes the types of evidence for a detected issue.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/manifestation-or-symptom"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "id" : "DetectedIssue.evidence.detail",
      "path" : "DetectedIssue.evidence.detail",
      "short" : "Supporting information",
      "definition" : "Links to resources that constitute evidence for the detected issue such as a GuidanceResponse or MeasureReport.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "id" : "DetectedIssue.detail",
      "path" : "DetectedIssue.detail",
      "short" : "Description and context",
      "definition" : "A textual explanation of the detected issue.",
      "comment" : "Should focus on information not covered elsewhere as discrete data - no need to duplicate the narrative.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.note"
      },
      {
        "identity" : "v2",
        "map" : "AL1-5 / IAM-8"
      },
      {
        "identity" : "rim",
        "map" : ".text"
      }]
    },
    {
      "id" : "DetectedIssue.reference",
