### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Communication.json
### ----------------------------------------------------
### -- Chunk 7 of 7
identity" : "workflow",
        "map" : "Event.instantiatesUri"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DEFN].target"
      }]
    },
    {
      "id" : "Communication.basedOn",
      "path" : "Communication.basedOn",
      "short" : "Request fulfilled by this communication",
      "definition" : "An order, proposal or plan fulfilled in whole or in part by this Communication.",
      "comment" : "This must point to some sort of a 'Request' resource, such as CarePlan, CommunicationRequest, ServiceRequest, MedicationRequest, etc.",
      "alias" : ["fulfills"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.basedOn"
      }]
    },
    {
      "id" : "Communication.partOf",
      "path" : "Communication.partOf",
      "short" : "Part of this action",
      "definition" : "Part of this action.",
      "alias" : ["container"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.partOf"
      }]
    },
    {
      "id" : "Communication.inResponseTo",
      "path" : "Communication.inResponseTo",
      "short" : "Reply to",
      "definition" : "Prior communication that this communication is in response to.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Communication"]
      }]
    },
    {
      "id" : "Communication.status",
      "path" : "Communication.status",
      "short" : "preparation | in-progress | not-done | suspended | aborted | completed | entered-in-error",
      "definition" : "The status of the transmission.",
      "comment" : "This element is labeled as a modifier because the status contains the codes aborted and entered-in-error that mark the communication as not currently valid.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : true,
      "isModifierReason" : "This element is labelled 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" : "CommunicationStatus"
        }],
        "strength" : "required",
        "description" : "The status of the communication.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/event-status|4.0.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.status"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.status"
      }]
    },
    {
      "id" : "Communication.statusReason",
      "path" : "Communication.statusReason",
      "short" : "Reason for current status",
      "definition" : "Captures the reason for the current state of the Communication.",
      "comment" : "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"aborted\". The reason for performing the event at all is captured in reasonCode, not here.",
      "alias" : ["Suspended Reason",
      "Cancelled Reason"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CommunicationNotDoneReason"
        }],
        "strength" : "example",
        "description" : "Codes for the reason why a communication did not happen.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/communication-not-done-reason"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.statusReason"
      }]
    },
    {
      "id" : "Communication.category",
      "path" : "Communication.category",
      "short" : "Message category",
      "definition" : "The type of message conveyed such as alert, notification, reminder, instruction, etc.",
      "comment" : "There may be multiple axes of categorization and one communication may serve multiple purposes.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CommunicationCategory"
        }],
        "strength" : "example",
        "description" : "Codes for general categories of communications such as alerts, instructions, etc.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/communication-category"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.class"
      }]
    },
    {
      "id" : "Communication.priority",
      "path" : "Communication.priority",
      "short" : "Message urgency",
      "definition" : "Characterizes how quickly the planned or in progress communication must be addressed. Includes concepts such as stat, urgent, routine.",
      "comment" : "Used to prioritize workflow (such as which communication to read first) when the communication is planned or in progress.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "meaningWhenMissing" : "If missing, this communication should be treated with normal priority",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CommunicationPriority"
        }],
        "strength" : "required",
        "description" : "Codes indicating the relative importance of a communication.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/request-priority|4.0.0"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.grade"
      }]
    },
    {
      "id" : "Communication.medium",
      "path" : "Communication.medium",
      "short" : "A channel of communication",
      "definition" : "A channel that was used for this communication (e.g. email, fax).",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CommunicationMedium"
        }],
        "strength" : "example",
        "description" : "Codes for communication mediums such as phone, fax, email, in person, etc.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ParticipationMode"
      }
    },
    {
      "id" : "Communication.subject",
      "path" : "Communication.subject",
      "short" : "Focus of message",
      "definition" : "The patient or group that was the focus of this communication.",
      "alias" : ["patient"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Group"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "Communication.topic",
      "path" : "Communication.topic",
      "short" : "Description of the purpose/content",
      "definition" : "Description of the purpose/content, similar to a subject line in an email.",
      "comment" : "Communication.topic.text can be used without any codings.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CommunicationTopic"
        }],
        "strength" : "example",
        "description" : "Codes describing the purpose or content of the communication.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/communication-topic"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.context"
      }]
    },
    {
      "id" : "Communication.about",
      "path" : "Communication.about",
      "short" : "Resources that pertain to this communication",
      "definition" : "Other resources that pertain to this communication and to which this communication should be associated.",
      "comment" : "Don't use Communication.about element when a more specific element exists, such as basedOn or reasonReference.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.context"
      }]
    },
    {
      "id" : "Communication.encounter",
      "path" : "Communication.encounter",
      "short" : "Encounter created as part of",
      "definition" : "The Encounter during which this Communication was created or to which the creation of this record is tightly associated.",
      "comment" : "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.context"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.context"
      }]
    },
    {
      "id" : "Communication.sent",
      "path" : "Communication.sent",
      "short" : "When sent",
      "definition" : "The time when this communication was sent.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x] {Invariant: maps to period.start}"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      }]
    },
    {
      "id" : "Communication.received",
      "path" : "Communication.received",
      "short" : "When received",
      "definition" : "The time when this communication arrived at the destination.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x] {Invariant: maps to period.end}"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      }]
    },
    {
      "id" : "Communication.recipient",
      "path" : "Communication.recipient",
      "short" : "Message recipient",
      "definition" : "The entity (e.g. person, organization, clinical information system, care team or device) which was the target of the communication. If receipts need to be tracked by an individual, a separate resource instance will need to be created for each recipient.  Multiple recipient communications are intended where either receipts are not tracked (e.g. a mass mail-out) or a receipt is captured in aggregate (all emails confirmed received by a particular time).",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Group",
        "http://hl7.org/fhir/StructureDefinition/CareTeam",
        "http://hl7.org/fhir/StructureDefinition/HealthcareService"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.actor"
      }]
    },
    {
      "id" : "Communication.sender",
      "path" : "Communication.sender",
      "short" : "Message sender",
      "definition" : "The entity (e.g. person, organization, clinical information system, or device) which was the source of the communication.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/HealthcareService"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.actor"
      }]
    },
    {
      "id" : "Communication.reasonCode",
      "path" : "Communication.reasonCode",
      "short" : "Indication for message",
      "definition" : "The reason or justification for the communication.",
      "comment" : "Textual reasons can be captured using reasonCode.text.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "CommunicationReason"
        }],
        "strength" : "example",
        "description" : "Codes for describing reasons for the occurrence of a communication.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "rim",
        "map" : ".reasonCode"
      }]
    },
    {
      "id" : "Communication.reasonReference",
      "path" : "Communication.reasonReference",
      "short" : "Why was communication done?",
      "definition" : "Indicates another resource whose existence justifies this communication.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
        "http://hl7.org/fhir/StructureDefinition/Observation",
        "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
        "http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonReference"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=RSON].target"
      }]
    },
    {
      "id" : "Communication.payload",
      "path" : "Communication.payload",
      "short" : "Message payload",
      "definition" : "Text, attachment(s), or resource(s) that was communicated to the recipient.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Communication.payload.content[x]",
      "path" : "Communication.payload.content[x]",
      "short" : "Message part content",
      "definition" : "A communicated content (or for multi-part communications, one portion of the communication).",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      },
      {
        "code" : "Attachment"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }]
    },
    {
      "id" : "Communication.note",
      "path" : "Communication.note",
      "short" : "Comments made about the communication",
      "definition" : "Additional notes or commentary about the communication by the sender, receiver or other interested parties.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Annotation"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.note"
      }]
    }]
  }
}


