FHIR Release 3 (STU) Current Build
This page is part of FHIR STU 3 (v3.0.1) in it's permanent home (it will always be available at this URL). It has been superceded by R4 . For a full list of available versions, see the Directory of published versions .

Media.profile.json

FHIR Infrastructure Orders and Observations Work Group Maturity Level : N/A Ballot Standards Status : Informative Compartments : Device , Encounter , Patient , Practitioner

Raw JSON ( canonical form + also see JSON Format Specification )

StructureDefinition for media

{
  "resourceType": "StructureDefinition",
  "id": "Media",
  "meta": {
    "lastUpdated": "2017-04-19T07:44:43.294+10:00"

  "resourceType" : "StructureDefinition",
  "id" : "Media",
  "meta" : {
    "lastUpdated" : "2019-06-26T19:45:20.438+00:00"

  },
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"

  "text" : {
    "status" : "generated",
    "div" : "<div>!-- Snipped for Brevity --></div>"

  },
  "extension": [

  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 1
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
    "valueCode" : "patient"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "oo"
  }],
  "url" : "http://hl7.org/fhir/StructureDefinition/Media",
  "version" : "4.1.0",
  "name" : "Media",
  "status" : "draft",
  "date" : "2019-06-26T19:45:20+00:00",
  "publisher" : "Health Level Seven International (Orders and Observations)",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://hl7.org/fhir"
    }]
  },
  {
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/orders/index.cfm"
    }]
  }],
  "description" : "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.",
  "fhirVersion" : "4.1.0",
  "mapping" : [{
    "identity" : "workflow",
    "uri" : "http://hl7.org/fhir/workflow",
    "name" : "Workflow Pattern"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  },
  {
    "identity" : "dicom",
    "uri" : "http://nema.org/dicom",
    "name" : "DICOM Tag Mapping"
  },
  {
    "identity" : "v2",
    "uri" : "http://hl7.org/v2",
    "name" : "HL7 v2 Mapping"
  },
  {
    "identity" : "sct-concept",
    "uri" : "http://snomed.info/conceptdomain",
    "name" : "SNOMED CT Concept Domain Binding"
  },
  {
    "identity" : "sct-attr",
    "uri" : "http://snomed.org/attributebinding",
    "name" : "SNOMED CT Attribute Binding"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Media",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation" : "specialization",
  "snapshot" : {
    "element" : [{
      "id" : "Media",
      "path" : "Media",
      "short" : "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference",
      "definition" : "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Media",
        "min" : 0,
        "max" : "*"
      },
      "constraint" : [{
        "key" : "dom-2",
        "severity" : "error",
        "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "expression" : "contained.contained.empty()",
        "xpath" : "not(parent::f:contained and f:contained)",
        "source" : "DomainResource"
      },
      {
        "key" : "dom-4",
        "severity" : "error",
        "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
        "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source" : "DomainResource"
      },
      {
        "key" : "dom-3",
        "severity" : "error",
        "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
        "xpath" : "not(exists(for $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source" : "DomainResource"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean" : true
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        }],
        "key" : "dom-6",
        "severity" : "warning",
        "human" : "A resource should have narrative for robust management",
        "expression" : "text.div.exists()",
        "xpath" : "exists(f:text/h:div)",
        "source" : "DomainResource"
      },
      {
        "key" : "dom-5",
        "severity" : "error",
        "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
        "expression" : "contained.meta.security.empty()",
        "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
        "source" : "DomainResource"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Entity. Role, or Act"
      },
      {
        "identity" : "workflow",
        "map" : "Event"
      },
      {
        "identity" : "rim",
        "map" : "Act[classCode=\"DGIMG\", moodCode=\"EVN\"]"
      }]
    },

    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1

      "id" : "Media.id",
      "path" : "Media.id",
      "short" : "Logical id of this artifact",
      "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "id"
      }],
      "isModifier" : false,
      "isSummary" : true

    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/Media",
  "name": "Media",
  "status": "draft",
  "date": "2017-04-19T07:44:43+10:00",
  "publisher": "Health Level Seven International (FHIR Infrastructure)",
  "contact": [

      "id" : "Media.meta",
      "path" : "Media.meta",
      "short" : "Metadata about the resource",
      "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.meta",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Meta"
      }],
      "isModifier" : false,
      "isSummary" : true
    },

    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]

      "id" : "Media.implicitRules",
      "path" : "Media.implicitRules",
      "short" : "A set of rules under which this content was created",
      "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.implicitRules",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "uri"
      }],
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary" : true

    },
    {
      "telecom": [

      "id" : "Media.language",
      "path" : "Media.language",
      "short" : "Language of the resource content",
      "definition" : "The base language in which the resource is written.",
      "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.language",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
        },

        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm"
        }
      ]
    }
  ],
  "description": "Base StructureDefinition for Media Resource",
  "fhirVersion": "3.0.1",
  "mapping": [

          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Language"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "preferred",
        "description" : "A human language.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
      }
    },

    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"

      "id" : "Media.text",
      "path" : "Media.text",
      "short" : "Text summary of the resource, for human interpretation",
      "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "alias" : ["narrative",
      "html",
      "xhtml",
      "display"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DomainResource.text",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Narrative"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Act.text?"
      }]

    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"

      "id" : "Media.contained",
      "path" : "Media.contained",
      "short" : "Contained, inline Resources",
      "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "alias" : ["inline resources",
      "anonymous resources",
      "contained resources"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.contained",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Resource"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]

    },
    {
      "identity": "dicom",
      "uri": "http://nema.org/dicom",
      "name": "DICOM Tag Mapping"

      "id" : "Media.extension",
      "path" : "Media.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 resource. 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" : "DomainResource.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]

    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"

      "id" : "Media.modifierExtension",
      "path" : "Media.modifierExtension",
      "short" : "Extensions that cannot be ignored",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]

    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.info/sct",
      "name": "SNOMED CT Attribute Binding"

      "id" : "Media.identifier",
      "path" : "Media.identifier",
      "short" : "Identifier(s) for the image",
      "definition" : "Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers.",
      "comment" : "The identifier label and use can be used to determine what kind of identifier it is.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Media.identifier",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Identifier"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.identifier"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      },
      {
        "identity" : "dicom",
        "map" : "0008,0018 | ~0008,0050 | 0020,000D | 0020,000E"
      }]

    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Media",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation": "specialization",
  "snapshot": {
    "element": [

      "id" : "Media.basedOn",
      "path" : "Media.basedOn",
      "short" : "Procedure that caused this media to be created",
      "definition" : "A procedure that is fulfilled in whole or in part by the creation of this media.",
      "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
      "alias" : ["fulfills"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Media.basedOn",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ServiceRequest",
        "http://hl7.org/fhir/StructureDefinition/CarePlan"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.basedOn"
      },

      {
        "id": "Media",
        "path": "Media",
        "short": "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference",
        "definition": "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "dom-2",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression": "contained.contained.empty()",
            "xpath": "not(parent::f:contained and f:contained)",
            "source": "DomainResource"
          },
          {
            "key": "dom-1",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
            "expression": "contained.text.empty()",
            "xpath": "not(parent::f:contained and f:text)",
            "source": "DomainResource"
          },
          {
            "key": "dom-4",
            "severity": "error",
            "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source": "DomainResource"
          },
          {
            "key": "dom-3",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
            "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()",
            "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))",
            "source": "DomainResource"
          },
          {
            "key": "mda-1",
            "severity": "error",
            "human": "Height can only be used for a photo or video",
            "expression": "height.empty() or type != 'audio'",
            "xpath": "not(f:type/@value='audio') or not(f:height)"
          },
          {
            "key": "mda-2",
            "severity": "error",
            "human": "Width can only be used for a photo or video",
            "expression": "width.empty() or type != 'audio'",
            "xpath": "not(f:type/@value='audio') or not(f:width)"
          },
          {
            "key": "mda-3",
            "severity": "error",
            "human": "Frames can only be used for a photo",
            "expression": "frames.empty() or type = 'photo'",
            "xpath": "(f:type/@value='photo') or not(f:frames)"
          },
          {
            "key": "mda-4",
            "severity": "error",
            "human": "Duration can only be used for an audio or a video",
            "expression": "duration.empty() or type != 'photo'",
            "xpath": "not(f:type/@value='photo') or not(f:duration)"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Entity. Role, or Act"
          },
          {
            "identity": "rim",
            "map": "Act[classCode=\"DGIMG\", moodCode=\"EVN\"]"
          },
          {
            "identity": "w5",
            "map": "infrastructure.structure"
          }
        ]

        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=FLFS].target"
      }]
    },
    {
      "id" : "Media.partOf",
      "path" : "Media.partOf",
      "short" : "Part of referenced event",
      "definition" : "A larger event of which this particular event is a component or step.",
      "comment" : "Not to be used to link an event to an Encounter - use Media.encounter for that.\r\r[The allowed reference resources may be adjusted as appropriate for the event resource].",
      "requirements" : "E.g. Drug administration as part of a procedure, procedure as part of observation, etc.",
      "alias" : ["container"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Media.partOf",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.partOf"

      },
      {
        "id": "Media.id",
        "path": "Media.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "isSummary": true

        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
      }]
    },
    {
      "id" : "Media.status",
      "path" : "Media.status",
      "short" : "preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown",
      "definition" : "The current state of the {{title}}.",
      "comment" : "A nominal state-transition diagram can be found in the [[event.html#statemachine | Event pattern]] documentation\r\rUnknown does not represent \"other\" - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Media.status",
        "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" : "MediaStatus"
        }],
        "strength" : "required",
        "description" : "Codes identifying the lifecycle stage of an event.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/event-status|4.1.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.status"

      },
      {
        "id": "Media.meta",
        "path": "Media.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.meta",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Meta"
          }
        ],
        "isSummary": true

        "identity" : "w5",
        "map" : "FiveWs.status"

      },
      {
        "id": "Media.implicitRules",
        "path": "Media.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.implicitRules",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true,
        "isSummary": true

        "identity" : "v2",
        "map" : "Varies by domain"

      },
      {
        "id": "Media.language",
        "path": "Media.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.language",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueReference": {
                "reference": "http://hl7.org/fhir/ValueSet/all-languages"
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Language"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "extensible",
          "description": "A human language.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/languages"
          }
        }

        "identity" : "rim",
        "map" : ".status"
      }]
    },
    {
      "id" : "Media.type",
      "path" : "Media.type",
      "short" : "Classification of media as image, video, or audio",
      "definition" : "A code that classifies whether the media is an image, video or audio recording or some other media category.",
      "requirements" : "Used for filtering what observations are retrieved and displayed.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.type",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "MediaType"
        }],
        "strength" : "extensible",
        "description" : "Codes for high level media categories.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/media-type"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.class"

      },
      {
        "id": "Media.text",
        "path": "Media.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
        "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]

        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "Media.modality",
      "path" : "Media.modality",
      "short" : "The type of acquisition equipment/process",
      "definition" : "Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.modality",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "MediaModality"
        }],
        "strength" : "example",
        "description" : "Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/media-modality"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"

      },
      {
        "id": "Media.contained",
        "path": "Media.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.contained",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.what[x]"

      },
      {
        "id": "Media.extension",
        "path": "Media.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 resource. In order 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 is allowed to 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": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]

        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"

      },
      {
        "id": "Media.modifierExtension",
        "path": "Media.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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 is allowed to 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.",
        "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": "DomainResource.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]

        "identity" : "dicom",
        "map" : "0008,0060 | 0008,1032"
      }]
    },
    {
      "id" : "Media.view",
      "path" : "Media.view",
      "short" : "Imaging view, e.g. Lateral or Antero-posterior",
      "definition" : "The name of the imaging view e.g. Lateral or Antero-posterior (AP).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.view",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "MediaView"
        }],
        "strength" : "example",
        "description" : "Imaging view (projection) used when collecting an image.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/media-view"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "DiagnosticImage.subjectOrientationCode"
      }]
    },
    {
      "id" : "Media.subject",
      "path" : "Media.subject",
      "short" : "Who/What this Media is a record of",
      "definition" : "Who/What this Media is a record of.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.subject",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Group",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Specimen",
        "http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.subject"

      },
      {
        "id": "Media.identifier",
        "path": "Media.identifier",
        "short": "Identifier(s) for the image",
        "definition": "Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers.",
        "comment": "The identifier label and use can be used to determine what kind of identifier it is.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          },
          {
            "identity": "dicom",
            "map": "0008,0018 | ~0008,0050 | 0020,000D | 0020,000E"
          },
          {
            "identity": "w5",
            "map": "id"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.subject[x]"

      },
      {
        "id": "Media.basedOn",
        "path": "Media.basedOn",
        "short": "Procedure that caused this media to be created",
        "definition": "A procedure that is fulfilled in whole or in part by the creation of this media.",
        "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
        "alias": [
          "fulfills"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=FLFS].target"
          }
        ]

        "identity" : "rim",
        "map" : ".participation[typeCode=\"SUBJ\"]???"

      },
      {
        "id": "Media.type",
        "path": "Media.type",
        "short": "photo | video | audio",
        "definition": "Whether the media is a photo (still image), an audio recording, or a video recording.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DigitalMediaType"
            }
          ],
          "strength": "required",
          "description": "Whether the media is a photo, video, or audio",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/digital-media-type"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "w5",
            "map": "class"
          }
        ]

        "identity" : "dicom",
        "map" : "~0010,0020"

      },
      {
        "id": "Media.subtype",
        "path": "Media.subtype",
        "short": "The type of acquisition equipment/process",
        "definition": "Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DigitalMediaSubtype"
            }
          ],
          "strength": "example",
          "description": "Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/digital-media-subtype"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          },
          {
            "identity": "dicom",
            "map": "0008,0060 | 0008,1032"
          },
          {
            "identity": "w5",
            "map": "class"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "Media.encounter",
      "path" : "Media.encounter",
      "short" : "Encounter associated with media",
      "definition" : "The encounter that establishes the context for this media.",
      "comment" : "This will typically be the encounter the media occurred within.",
      "requirements" : "Links the Media to the Encounter context.",
      "alias" : ["context"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.encounter",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.encounter"

      },
      {
        "id": "Media.view",
        "path": "Media.view",
        "short": "Imaging view, e.g. Lateral or Antero-posterior",
        "definition": "The name of the imaging view e.g. Lateral or Antero-posterior (AP).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MediaView"
            }
          ],
          "strength": "example",
          "description": "Imaging view (projection) used when collecting an image",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/media-view"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "DiagnosticImage.subjectOrientationCode"
          },
          {
            "identity": "w5",
            "map": "class"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.context"

      },
      {
        "id": "Media.subject",
        "path": "Media.subject",
        "short": "Who/What this Media is a record of",
        "definition": "Who/What this Media is a record of.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"SUBJ\"]???"
          },
          {
            "identity": "dicom",
            "map": "~0010,0020"
          },
          {
            "identity": "w5",
            "map": "who.focus"
          }
        ]

        "identity" : "rim",
        "map" : ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"
      }]
    },
    {
      "id" : "Media.created[x]",
      "path" : "Media.created[x]",
      "short" : "When Media was collected",
      "definition" : "The date and time(s) at which the media was collected.",
      "alias" : ["timing"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.created[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "dateTime"

      },
      {
        "id": "Media.context",
        "path": "Media.context",
        "short": "Encounter / Episode associated with media",
        "definition": "The encounter or episode of care that establishes the context for this media.",
        "comment": "This will typically be the encounter the media occurred within.",
        "requirements": "Links the media to the Encounter context.",
        "alias": [
          "encounter"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]

        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"

      },
      {
        "id": "Media.occurrence[x]",
        "path": "Media.occurrence[x]",
        "short": "When Media was collected",
        "definition": "The date and time(s) at which the media was collected.",
        "alias": [
          "timing"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          },
          {
            "identity": "w5",
            "map": "when.done"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.done[x]"

      },
      {
        "id": "Media.operator",
        "path": "Media.operator",
        "short": "The person who generated the image",
        "definition": "The person who administered the collection of the image.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"PERF\"]???"
          },
          {
            "identity": "dicom",
            "map": "0008,1060?"
          },
          {
            "identity": "w5",
            "map": "who.actor"
          }
        ]

        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "Media.issued",
      "path" : "Media.issued",
      "short" : "Date/Time this version was made available",
      "definition" : "The date and time this version of the media was made available to providers, typically after having been reviewed.",
      "comment" : "It may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that does not require the new version to be reviewed and verified again.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.issued",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "instant"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.recorded"

      },
      {
        "id": "Media.reasonCode",
        "path": "Media.reasonCode",
        "short": "Why was event performed?",
        "definition": "Describes why the event occurred in coded or textual form.",
        "comment": "Textual reasons can be caprued using reasonCode.text.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MediaReason"
            }
          ],
          "strength": "example",
          "description": "The reason for the media",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/procedure-reason"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".reasonCode"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]

        "identity" : "v2",
        "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"

      },
      {
        "id": "Media.bodySite",
        "path": "Media.bodySite",
        "short": "Body part in media",
        "definition": "Indicates the site on the subject's body where the media was collected (i.e. the target site).",
        "comment": "If the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use The standard extension[ body-site-instance](extension-body-site-instance.html).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "BodySite"
            }
          ],
          "strength": "example",
          "description": "Codes describing anatomical locations. May include laterality.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/body-site"
          }
        },
        "mapping": [
          {
            "identity": "sct-concept",
            "map": "< 123037004 |Body structure|"
          },
          {
            "identity": "rim",
            "map": "targetSiteCode"
          },
          {
            "identity": "sct-attr",
            "map": "718497002 |Inherent location|"
          }
        ]

        "identity" : "rim",
        "map" : "participation[typeCode=AUT].time"
      }]
    },
    {
      "id" : "Media.operator",
      "path" : "Media.operator",
      "short" : "The person who generated the image",
      "definition" : "The person who administered the collection of the image.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.operator",
        "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/Organization",
        "http://hl7.org/fhir/StructureDefinition/CareTeam",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"

      },
      {
        "id": "Media.device",
        "path": "Media.device",
        "short": "Observing Device",
        "definition": "The device used to collect the media.",
        "comment": "An extension should be used if further typing of the device is needed.  Scondary devices used to support collecting a media can be represented using either extension or through the Observation.related element.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "sct-concept",
            "map": "< 49062001 |Device|"
          },
          {
            "identity": "rim",
            "map": "participation[typeCode=DEV]"
          },
          {
            "identity": "sct-attr",
            "map": "424226004 |Using device|"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.actor"

      },
      {
        "id": "Media.height",
        "path": "Media.height",
        "short": "Height of the image in pixels (photo/video)",
        "definition": "Height of the image in pixels (photo/video).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          }
        ],
        "condition": [
          "mda-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
          },
          {
            "identity": "dicom",
            "map": "0028,0010"
          }
        ]

        "identity" : "rim",
        "map" : ".participation[typeCode=\"PERF\"]???"

      },
      {
        "id": "Media.width",
        "path": "Media.width",
        "short": "Width of the image in pixels (photo/video)",
        "definition": "Width of the image in pixels (photo/video).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          }
        ],
        "condition": [
          "mda-2"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
          },
          {
            "identity": "dicom",
            "map": "0028,0011"
          }
        ]

        "identity" : "dicom",
        "map" : "0008,1060?"
      }]
    },
    {
      "id" : "Media.reasonCode",
      "path" : "Media.reasonCode",
      "short" : "Why was event performed?",
      "definition" : "Describes why the event occurred in coded or textual form.",
      "comment" : "Textual reasons can be captured using reasonCode.text.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Media.reasonCode",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "MediaReason"
        }],
        "strength" : "example",
        "description" : "The reason for the media.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-reason"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonCode"

      },
      {
        "id": "Media.frames",
        "path": "Media.frames",
        "short": "Number of frames if > 1 (photo)",
        "definition": "The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          }
        ],
        "defaultValuePositiveInt": 1,
        "condition": [
          "mda-3"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.why[x]"

      },
      {
        "id": "Media.duration",
        "path": "Media.duration",
        "short": "Length in seconds (audio / video)",
        "definition": "The duration of the recording in seconds - for audio and video.",
        "comment": "The duration might differ from occurrencePeriod if recording was paused.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "unsignedInt"
          }
        ],
        "condition": [
          "mda-4"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
          },
          {
            "identity": "dicom",
            "map": "~0028,0002"
          }
        ]

        "identity" : "rim",
        "map" : ".reasonCode"
      }]
    },
    {
      "id" : "Media.bodySite",
      "path" : "Media.bodySite",
      "short" : "Observed body part",
      "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
      "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.bodySite",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "BodySite"
        }],
        "strength" : "example",
        "description" : "Codes describing anatomical locations. May include laterality.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
      },
      "mapping" : [{
        "identity" : "sct-concept",
        "map" : "< 123037004 |Body structure|"

      },
      {
        "id": "Media.content",
        "path": "Media.content",
        "short": "Actual Media - reference or data",
        "definition": "The actual content of the media - inline or by direct reference to the media source file.",
        "comment": "Recommended content types: image/jpeg, image/png, image/tiff, video/mpeg, audio/mp4, application/dicom. Application/dicom can contain the transfer syntax as a parameter.  For an media that covers a period of time (video/sound), the content.creationTime is the end time. Creation time is used for tracking, organizing versions and searching.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          }
        ]

        "identity" : "rim",
        "map" : "targetSiteCode"

      },
      {
        "id": "Media.note",
        "path": "Media.note",
        "short": "Comments made about the media",
        "definition": "Comments made about the media by the performer, subject or other participants.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Annotation"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NTE"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]"
          }
        ]
      }
    ]

        "identity" : "sct-attr",
        "map" : "718497002 |Inherent location|"
      }]
    },
    {
      "id" : "Media.deviceName",
      "path" : "Media.deviceName",
      "short" : "Name of the device/manufacturer",
      "definition" : "The name of the device / manufacturer of the device  that was used to make the recording.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.deviceName",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=\"DEV\"].role.player.Entity[classCode=\"DEV\"].name"
      },
      {
        "identity" : "dicom",
        "map" : "0008,0070"
      }]
    },
    {
      "id" : "Media.device",
      "path" : "Media.device",
      "short" : "Observing Device",
      "definition" : "The device used to collect the media.",
      "comment" : "An extension should be used if further typing of the device is needed.  Secondary devices used to support collecting a media can be represented using either extension or through the Observation.related element.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.device",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "sct-concept",
        "map" : "< 49062001 |Device|"
      },
      {
        "identity" : "rim",
        "map" : "participation[typeCode=DEV]"
      },
      {
        "identity" : "sct-attr",
        "map" : "424226004 |Using device|"
      }]
    },
    {
      "id" : "Media.height",
      "path" : "Media.height",
      "short" : "Height of the image in pixels (photo/video)",
      "definition" : "Height of the image in pixels (photo/video).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.height",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "positiveInt"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
      },
      {
        "identity" : "dicom",
        "map" : "0028,0010"
      }]
    },
    {
      "id" : "Media.width",
      "path" : "Media.width",
      "short" : "Width of the image in pixels (photo/video)",
      "definition" : "Width of the image in pixels (photo/video).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.width",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "positiveInt"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
      },
      {
        "identity" : "dicom",
        "map" : "0028,0011"
      }]
    },
    {
      "id" : "Media.frames",
      "path" : "Media.frames",
      "short" : "Number of frames if > 1 (photo)",
      "definition" : "The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.",
      "comment" : "if the number of frames is not supplied, the value may be unknown. Applications should not assume that there is only one frame unless it is explicitly stated.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.frames",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "positiveInt"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
      }]
    },
    {
      "id" : "Media.duration",
      "path" : "Media.duration",
      "short" : "Length in seconds (audio / video)",
      "definition" : "The duration of the recording in seconds - for audio and video.",
      "comment" : "The duration might differ from occurrencePeriod if recording was paused.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Media.duration",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "decimal"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
      },
      {
        "identity" : "dicom",
        "map" : "~0028,0002"
      }]
    },
    {
      "id" : "Media.content",
      "path" : "Media.content",
      "short" : "Actual Media - reference or data",
      "definition" : "The actual content of the media - inline or by direct reference to the media source file.",
      "comment" : "Recommended content types: image/jpeg, image/png, image/tiff, video/mpeg, audio/mp4, application/dicom. Application/dicom can contain the transfer syntax as a parameter.  For media that covers a period of time (video/sound), the content.creationTime is the end time. Creation time is used for tracking, organizing versions and searching.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Media.content",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Attachment"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".text"
      }]
    },
    {
      "id" : "Media.note",
      "path" : "Media.note",
      "short" : "Comments made about the media",
      "definition" : "Comments made about the media by the performer, subject or other participants.",
      "comment" : "Not to be used for observations, conclusions, etc. Instead use an [Observation](observation.html) based on the Media/ImagingStudy resource.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Media.note",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Annotation"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.note"
      },
      {
        "identity" : "v2",
        "map" : "NTE"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]"
      }]
    }]

  },
  "differential": {
    "element": [

  "differential" : {
    "element" : [{
      "id" : "Media",
      "path" : "Media",
      "short" : "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference",
      "definition" : "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.",
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event"
      },

      {
        "id": "Media",
        "path": "Media",
        "short": "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference",
        "definition": "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "mda-1",
            "severity": "error",
            "human": "Height can only be used for a photo or video",
            "expression": "height.empty() or type != 'audio'",
            "xpath": "not(f:type/@value='audio') or not(f:height)"
          },
          {
            "key": "mda-2",
            "severity": "error",
            "human": "Width can only be used for a photo or video",
            "expression": "width.empty() or type != 'audio'",
            "xpath": "not(f:type/@value='audio') or not(f:width)"
          },
          {
            "key": "mda-3",
            "severity": "error",
            "human": "Frames can only be used for a photo",
            "expression": "frames.empty() or type = 'photo'",
            "xpath": "(f:type/@value='photo') or not(f:frames)"
          },
          {
            "key": "mda-4",
            "severity": "error",
            "human": "Duration can only be used for an audio or a video",
            "expression": "duration.empty() or type != 'photo'",
            "xpath": "not(f:type/@value='photo') or not(f:duration)"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act[classCode=\"DGIMG\", moodCode=\"EVN\"]"
          },
          {
            "identity": "w5",
            "map": "infrastructure.structure"
          }
        ]

        "identity" : "rim",
        "map" : "Act[classCode=\"DGIMG\", moodCode=\"EVN\"]"
      }]
    },
    {
      "id" : "Media.identifier",
      "path" : "Media.identifier",
      "short" : "Identifier(s) for the image",
      "definition" : "Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers.",
      "comment" : "The identifier label and use can be used to determine what kind of identifier it is.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.identifier"

      },
      {
        "id": "Media.identifier",
        "path": "Media.identifier",
        "short": "Identifier(s) for the image",
        "definition": "Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers.",
        "comment": "The identifier label and use can be used to determine what kind of identifier it is.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          },
          {
            "identity": "dicom",
            "map": "0008,0018 | ~0008,0050 | 0020,000D | 0020,000E"
          },
          {
            "identity": "w5",
            "map": "id"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.identifier"

      },
      {
        "id": "Media.basedOn",
        "path": "Media.basedOn",
        "short": "Procedure that caused this media to be created",
        "definition": "A procedure that is fulfilled in whole or in part by the creation of this media.",
        "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
        "alias": [
          "fulfills"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=FLFS].target"
          }
        ]

        "identity" : "rim",
        "map" : ".id"

      },
      {
        "id": "Media.type",
        "path": "Media.type",
        "short": "photo | video | audio",
        "definition": "Whether the media is a photo (still image), an audio recording, or a video recording.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DigitalMediaType"
            }
          ],
          "strength": "required",
          "description": "Whether the media is a photo, video, or audio",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/digital-media-type"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "w5",
            "map": "class"
          }
        ]

        "identity" : "dicom",
        "map" : "0008,0018 | ~0008,0050 | 0020,000D | 0020,000E"
      }]
    },
    {
      "id" : "Media.basedOn",
      "path" : "Media.basedOn",
      "short" : "Procedure that caused this media to be created",
      "definition" : "A procedure that is fulfilled in whole or in part by the creation of this media.",
      "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
      "alias" : ["fulfills"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ServiceRequest",
        "http://hl7.org/fhir/StructureDefinition/CarePlan"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.basedOn"

      },
      {
        "id": "Media.subtype",
        "path": "Media.subtype",
        "short": "The type of acquisition equipment/process",
        "definition": "Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DigitalMediaSubtype"
            }
          ],
          "strength": "example",
          "description": "Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/digital-media-subtype"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          },
          {
            "identity": "dicom",
            "map": "0008,0060 | 0008,1032"
          },
          {
            "identity": "w5",
            "map": "class"
          }
        ]

        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=FLFS].target"
      }]
    },
    {
      "id" : "Media.partOf",
      "path" : "Media.partOf",
      "short" : "Part of referenced event",
      "definition" : "A larger event of which this particular event is a component or step.",
      "comment" : "Not to be used to link an event to an Encounter - use Media.encounter for that.\r\r[The allowed reference resources may be adjusted as appropriate for the event resource].",
      "requirements" : "E.g. Drug administration as part of a procedure, procedure as part of observation, etc.",
      "alias" : ["container"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.partOf"

      },
      {
        "id": "Media.view",
        "path": "Media.view",
        "short": "Imaging view, e.g. Lateral or Antero-posterior",
        "definition": "The name of the imaging view e.g. Lateral or Antero-posterior (AP).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MediaView"
            }
          ],
          "strength": "example",
          "description": "Imaging view (projection) used when collecting an image",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/media-view"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "DiagnosticImage.subjectOrientationCode"
          },
          {
            "identity": "w5",
            "map": "class"
          }
        ]

        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
      }]
    },
    {
      "id" : "Media.status",
      "path" : "Media.status",
      "short" : "preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown",
      "definition" : "The current state of the {{title}}.",
      "comment" : "A nominal state-transition diagram can be found in the [[event.html#statemachine | Event pattern]] documentation\r\rUnknown does not represent \"other\" - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.",
      "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" : "MediaStatus"
        }],
        "strength" : "required",
        "description" : "Codes identifying the lifecycle stage of an event.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/event-status|4.1.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.status"

      },
      {
        "id": "Media.subject",
        "path": "Media.subject",
        "short": "Who/What this Media is a record of",
        "definition": "Who/What this Media is a record of.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"SUBJ\"]???"
          },
          {
            "identity": "dicom",
            "map": "~0010,0020"
          },
          {
            "identity": "w5",
            "map": "who.focus"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.status"

      },
      {
        "id": "Media.context",
        "path": "Media.context",
        "short": "Encounter / Episode associated with media",
        "definition": "The encounter or episode of care that establishes the context for this media.",
        "comment": "This will typically be the encounter the media occurred within.",
        "requirements": "Links the media to the Encounter context.",
        "alias": [
          "encounter"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"
          },
          {
            "identity": "w5",
            "map": "context"
          }
        ]

        "identity" : "v2",
        "map" : "Varies by domain"

      },
      {
        "id": "Media.occurrence[x]",
        "path": "Media.occurrence[x]",
        "short": "When Media was collected",
        "definition": "The date and time(s) at which the media was collected.",
        "alias": [
          "timing"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          },
          {
            "identity": "w5",
            "map": "when.done"
          }
        ]

        "identity" : "rim",
        "map" : ".status"
      }]
    },
    {
      "id" : "Media.type",
      "path" : "Media.type",
      "short" : "Classification of media as image, video, or audio",
      "definition" : "A code that classifies whether the media is an image, video or audio recording or some other media category.",
      "requirements" : "Used for filtering what observations are retrieved and displayed.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "MediaType"
        }],
        "strength" : "extensible",
        "description" : "Codes for high level media categories.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/media-type"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.class"

      },
      {
        "id": "Media.operator",
        "path": "Media.operator",
        "short": "The person who generated the image",
        "definition": "The person who administered the collection of the image.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"PERF\"]???"
          },
          {
            "identity": "dicom",
            "map": "0008,1060?"
          },
          {
            "identity": "w5",
            "map": "who.actor"
          }
        ]

        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "Media.modality",
      "path" : "Media.modality",
      "short" : "The type of acquisition equipment/process",
      "definition" : "Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "MediaModality"
        }],
        "strength" : "example",
        "description" : "Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/media-modality"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"

      },
      {
        "id": "Media.reasonCode",
        "path": "Media.reasonCode",
        "short": "Why was event performed?",
        "definition": "Describes why the event occurred in coded or textual form.",
        "comment": "Textual reasons can be caprued using reasonCode.text.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MediaReason"
            }
          ],
          "strength": "example",
          "description": "The reason for the media",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/procedure-reason"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".reasonCode"
          },
          {
            "identity": "w5",
            "map": "why"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.what[x]"

      },
      {
        "id": "Media.bodySite",
        "path": "Media.bodySite",
        "short": "Body part in media",
        "definition": "Indicates the site on the subject's body where the media was collected (i.e. the target site).",
        "comment": "If the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use The standard extension[ body-site-instance](extension-body-site-instance.html).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "BodySite"
            }
          ],
          "strength": "example",
          "description": "Codes describing anatomical locations. May include laterality.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/body-site"
          }
        },
        "mapping": [
          {
            "identity": "sct-concept",
            "map": "< 123037004 |Body structure|"
          },
          {
            "identity": "rim",
            "map": "targetSiteCode"
          },
          {
            "identity": "sct-attr",
            "map": "718497002 |Inherent location|"
          }
        ]

        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"

      },
      {
        "id": "Media.device",
        "path": "Media.device",
        "short": "Observing Device",
        "definition": "The device used to collect the media.",
        "comment": "An extension should be used if further typing of the device is needed.  Scondary devices used to support collecting a media can be represented using either extension or through the Observation.related element.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "sct-concept",
            "map": "< 49062001 |Device|"
          },
          {
            "identity": "rim",
            "map": "participation[typeCode=DEV]"
          },
          {
            "identity": "sct-attr",
            "map": "424226004 |Using device|"
          }
        ]

        "identity" : "dicom",
        "map" : "0008,0060 | 0008,1032"
      }]
    },
    {
      "id" : "Media.view",
      "path" : "Media.view",
      "short" : "Imaging view, e.g. Lateral or Antero-posterior",
      "definition" : "The name of the imaging view e.g. Lateral or Antero-posterior (AP).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "MediaView"
        }],
        "strength" : "example",
        "description" : "Imaging view (projection) used when collecting an image.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/media-view"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "DiagnosticImage.subjectOrientationCode"
      }]
    },
    {
      "id" : "Media.subject",
      "path" : "Media.subject",
      "short" : "Who/What this Media is a record of",
      "definition" : "Who/What this Media is a record of.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Group",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Specimen",
        "http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.subject"

      },
      {
        "id": "Media.height",
        "path": "Media.height",
        "short": "Height of the image in pixels (photo/video)",
        "definition": "Height of the image in pixels (photo/video).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          }
        ],
        "condition": [
          "mda-1"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
          },
          {
            "identity": "dicom",
            "map": "0028,0010"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.subject[x]"

      },
      {
        "id": "Media.width",
        "path": "Media.width",
        "short": "Width of the image in pixels (photo/video)",
        "definition": "Width of the image in pixels (photo/video).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          }
        ],
        "condition": [
          "mda-2"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
          },
          {
            "identity": "dicom",
            "map": "0028,0011"
          }
        ]

        "identity" : "rim",
        "map" : ".participation[typeCode=\"SUBJ\"]???"

      },
      {
        "id": "Media.frames",
        "path": "Media.frames",
        "short": "Number of frames if > 1 (photo)",
        "definition": "The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          }
        ],
        "defaultValuePositiveInt": 1,
        "condition": [
          "mda-3"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
          }
        ]

        "identity" : "dicom",
        "map" : "~0010,0020"

      },
      {
        "id": "Media.duration",
        "path": "Media.duration",
        "short": "Length in seconds (audio / video)",
        "definition": "The duration of the recording in seconds - for audio and video.",
        "comment": "The duration might differ from occurrencePeriod if recording was paused.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "unsignedInt"
          }
        ],
        "condition": [
          "mda-4"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
          },
          {
            "identity": "dicom",
            "map": "~0028,0002"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "Media.encounter",
      "path" : "Media.encounter",
      "short" : "Encounter associated with media",
      "definition" : "The encounter that establishes the context for this media.",
      "comment" : "This will typically be the encounter the media occurred within.",
      "requirements" : "Links the Media to the Encounter context.",
      "alias" : ["context"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.encounter"

      },
      {
        "id": "Media.content",
        "path": "Media.content",
        "short": "Actual Media - reference or data",
        "definition": "The actual content of the media - inline or by direct reference to the media source file.",
        "comment": "Recommended content types: image/jpeg, image/png, image/tiff, video/mpeg, audio/mp4, application/dicom. Application/dicom can contain the transfer syntax as a parameter.  For an media that covers a period of time (video/sound), the content.creationTime is the end time. Creation time is used for tracking, organizing versions and searching.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          }
        ]

        "identity" : "w5",
        "map" : "FiveWs.context"

      },
      {
        "id": "Media.note",
        "path": "Media.note",
        "short": "Comments made about the media",
        "definition": "Comments made about the media by the performer, subject or other participants.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Annotation"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NTE"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]"
          }
        ]
      }
    ]

        "identity" : "rim",
        "map" : ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"
      }]
    },
    {
      "id" : "Media.created[x]",
      "path" : "Media.created[x]",
      "short" : "When Media was collected",
      "definition" : "The date and time(s) at which the media was collected.",
      "alias" : ["timing"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      },
      {
        "code" : "Period"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "Media.issued",
      "path" : "Media.issued",
      "short" : "Date/Time this version was made available",
      "definition" : "The date and time this version of the media was made available to providers, typically after having been reviewed.",
      "comment" : "It may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that does not require the new version to be reviewed and verified again.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "instant"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.recorded"
      },
      {
        "identity" : "v2",
        "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
      },
      {
        "identity" : "rim",
        "map" : "participation[typeCode=AUT].time"
      }]
    },
    {
      "id" : "Media.operator",
      "path" : "Media.operator",
      "short" : "The person who generated the image",
      "definition" : "The person who administered the collection of the image.",
      "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/Organization",
        "http://hl7.org/fhir/StructureDefinition/CareTeam",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.actor"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=\"PERF\"]???"
      },
      {
        "identity" : "dicom",
        "map" : "0008,1060?"
      }]
    },
    {
      "id" : "Media.reasonCode",
      "path" : "Media.reasonCode",
      "short" : "Why was event performed?",
      "definition" : "Describes why the event occurred in coded or textual form.",
      "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" : "MediaReason"
        }],
        "strength" : "example",
        "description" : "The reason for the media.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-reason"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "rim",
        "map" : ".reasonCode"
      }]
    },
    {
      "id" : "Media.bodySite",
      "path" : "Media.bodySite",
      "short" : "Observed body part",
      "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
      "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "BodySite"
        }],
        "strength" : "example",
        "description" : "Codes describing anatomical locations. May include laterality.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
      },
      "mapping" : [{
        "identity" : "sct-concept",
        "map" : "< 123037004 |Body structure|"
      },
      {
        "identity" : "rim",
        "map" : "targetSiteCode"
      },
      {
        "identity" : "sct-attr",
        "map" : "718497002 |Inherent location|"
      }]
    },
    {
      "id" : "Media.deviceName",
      "path" : "Media.deviceName",
      "short" : "Name of the device/manufacturer",
      "definition" : "The name of the device / manufacturer of the device  that was used to make the recording.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=\"DEV\"].role.player.Entity[classCode=\"DEV\"].name"
      },
      {
        "identity" : "dicom",
        "map" : "0008,0070"
      }]
    },
    {
      "id" : "Media.device",
      "path" : "Media.device",
      "short" : "Observing Device",
      "definition" : "The device used to collect the media.",
      "comment" : "An extension should be used if further typing of the device is needed.  Secondary devices used to support collecting a media can be represented using either extension or through the Observation.related element.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "sct-concept",
        "map" : "< 49062001 |Device|"
      },
      {
        "identity" : "rim",
        "map" : "participation[typeCode=DEV]"
      },
      {
        "identity" : "sct-attr",
        "map" : "424226004 |Using device|"
      }]
    },
    {
      "id" : "Media.height",
      "path" : "Media.height",
      "short" : "Height of the image in pixels (photo/video)",
      "definition" : "Height of the image in pixels (photo/video).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "positiveInt"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
      },
      {
        "identity" : "dicom",
        "map" : "0028,0010"
      }]
    },
    {
      "id" : "Media.width",
      "path" : "Media.width",
      "short" : "Width of the image in pixels (photo/video)",
      "definition" : "Width of the image in pixels (photo/video).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "positiveInt"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
      },
      {
        "identity" : "dicom",
        "map" : "0028,0011"
      }]
    },
    {
      "id" : "Media.frames",
      "path" : "Media.frames",
      "short" : "Number of frames if > 1 (photo)",
      "definition" : "The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.",
      "comment" : "if the number of frames is not supplied, the value may be unknown. Applications should not assume that there is only one frame unless it is explicitly stated.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "positiveInt"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
      }]
    },
    {
      "id" : "Media.duration",
      "path" : "Media.duration",
      "short" : "Length in seconds (audio / video)",
      "definition" : "The duration of the recording in seconds - for audio and video.",
      "comment" : "The duration might differ from occurrencePeriod if recording was paused.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "decimal"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"OBS\", moodCode=\"EVN\",code=\"<CODE>\"].value"
      },
      {
        "identity" : "dicom",
        "map" : "~0028,0002"
      }]
    },
    {
      "id" : "Media.content",
      "path" : "Media.content",
      "short" : "Actual Media - reference or data",
      "definition" : "The actual content of the media - inline or by direct reference to the media source file.",
      "comment" : "Recommended content types: image/jpeg, image/png, image/tiff, video/mpeg, audio/mp4, application/dicom. Application/dicom can contain the transfer syntax as a parameter.  For media that covers a period of time (video/sound), the content.creationTime is the end time. Creation time is used for tracking, organizing versions and searching.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Attachment"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".text"
      }]
    },
    {
      "id" : "Media.note",
      "path" : "Media.note",
      "short" : "Comments made about the media",
      "definition" : "Comments made about the media by the performer, subject or other participants.",
      "comment" : "Not to be used for observations, conclusions, etc. Instead use an [Observation](observation.html) based on the Media/ImagingStudy resource.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Annotation"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.note"
      },
      {
        "identity" : "v2",
        "map" : "NTE"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]"
      }]
    }]

  }
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.