### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Media.json
### ----------------------------------------------------
### -- Chunk 7 of 7
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]"
      }]
    }]
  }
}


