FHIR IG analytics| Package | hl7.fhir.uv.xver-r4.r3 |
| Resource Type | StructureDefinition |
| Id | StructureDefinition-profile-Media.json |
| FHIR Version | R3 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: StructureDefinition profile-Media
| Name | Flags | Card. | Type | Description & Constraints |
|---|---|---|---|---|
![]() | 0..* | Media | A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference | |
![]() ![]() | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() | 0..* | Reference(Cross-version Profile for R4.Resource for use in FHIR STU3(0.1.0) | Resource) | R4: Part of referenced event (new) URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.partOf | |
![]() ![]() ![]() | 0..1 | instant | R4: Date/Time this version was made available (new) URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.issued | |
![]() ![]() ![]() | 0..1 | string | R4: Name of the device/manufacturer (new) URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.deviceName | |
![]() ![]() | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() | 1..1 | code | R4: preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown (new) URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.status Binding: R4EventStatusForR3 (0.1.0) (required): Codes identifying the lifecycle stage of an event. | |
![]() ![]() | ||||
![]() ![]() ![]() | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() | 0..* | ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] | R4: basedOn additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference | |
![]() ![]() | ||||
![]() ![]() ![]() | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() | 0..1 | CodeableConcept | R4: Classification of media as image, video, or audio additional types URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.type Binding: DigitalMediaType (extensible): Codes for high level media categories. | |
![]() ![]() | ||||
![]() ![]() ![]() | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() | 0..1 | ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] | R4: subject URL: http://hl7.org/fhir/StructureDefinition/alternate-reference | |
![]() ![]() | ||||
![]() ![]() ![]() | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() | 0..1 | ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] | R4: operator URL: http://hl7.org/fhir/StructureDefinition/alternate-reference | |
![]() ![]() | ||||
![]() ![]() ![]() | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() | 0..1 | decimal | R4: duration additional types URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.duration | |
{
"resourceType": "StructureDefinition",
"id": "profile-Media",
"text": {
"status": "extensions",
"div": "<!-- snip (see above) -->"
},
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode": "fhir"
},
{
"extension": [
{
"url": "packageId",
"valueId": "hl7.fhir.uv.xver-r4.r3"
},
{
"url": "version",
"valueString": "0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/package-source"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger": 0,
"_valueInteger": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueUri": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3"
}
]
}
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode": "trial-use",
"_valueCode": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueUri": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3"
}
]
}
}
],
"url": "http://hl7.org/fhir/4.0/StructureDefinition/profile-Media",
"version": "0.1.0",
"name": "Profile_R4_Media_R3",
"title": "Cross-version Profile for R4.Media for use in FHIR STU3",
"status": "active",
"experimental": false,
"date": "2026-03-17T16:03:29.7384219-05:00",
"publisher": "FHIR Infrastructure",
"contact": [
{
"name": "FHIR Infrastructure",
"telecom": [
{
"system": "url",
"value": "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description": "This cross-version profile allows R4 Media content to be represented via FHIR STU3 Media resources.",
"jurisdiction": [
{
"coding": [
{
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code": "001",
"display": "World"
}
]
}
],
"fhirVersion": "3.0.2",
"mapping": [
{
"identity": "rim",
"uri": "http://hl7.org/v3",
"name": "RIM Mapping"
},
{
"identity": "w5",
"uri": "http://hl7.org/fhir/w5",
"name": "W5 Mapping"
},
{
"identity": "dicom",
"uri": "http://nema.org/dicom",
"name": "DICOM Tag Mapping"
},
{
"identity": "sct-concept",
"uri": "http://snomed.info/conceptdomain",
"name": "SNOMED CT Concept Domain Binding"
},
{
"identity": "sct-attr",
"uri": "http://snomed.info/sct",
"name": "SNOMED CT Attribute Binding"
},
{
"identity": "v2",
"uri": "http://hl7.org/v2",
"name": "HL7 v2 Mapping"
}
],
"kind": "resource",
"abstract": false,
"type": "Media",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Media",
"derivation": "constraint",
"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": "http://hl7.org/fhir/StructureDefinition/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": "http://hl7.org/fhir/StructureDefinition/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": "http://hl7.org/fhir/StructureDefinition/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": "http://hl7.org/fhir/StructureDefinition/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)",
"source": "http://hl7.org/fhir/StructureDefinition/Media"
},
{
"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)",
"source": "http://hl7.org/fhir/StructureDefinition/Media"
},
{
"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)",
"source": "http://hl7.org/fhir/StructureDefinition/Media"
},
{
"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)",
"source": "http://hl7.org/fhir/StructureDefinition/Media"
}
],
"mapping": [
{
"identity": "rim",
"map": "Entity. Role, or Act"
},
{
"identity": "rim",
"map": "Act[classCode=\"DGIMG\", moodCode=\"EVN\"]"
},
{
"identity": "w5",
"map": "infrastructure.structure"
}
]
},
{
"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
},
{
"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
},
{
"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
},
{
"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|3.0.2"
}
},
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "Language"
}
],
"strength": "extensible",
"description": "A human language.",
"valueSetReference": {
"reference": "http://hl7.org/fhir/ValueSet/languages|3.0.2"
}
}
},
{
"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?"
}
]
},
{
"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"
}
]
},
{
"id": "Media.extension",
"path": "Media.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
]
},
{
"id": "Media.extension:partOf",
"path": "Media.extension",
"sliceName": "partOf",
"short": "R4: Part of referenced event (new)",
"definition": "R4: `Media.partOf` (new:Reference(Resource))",
"comment": "Element `Media.partOf` has a context of Media based on following the parent source element upwards and mapping to `Media`.\nElement `Media.partOf` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nNot 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].",
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.partOf|0.1.0"
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() | (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false
},
{
"id": "Media.extension:issued",
"path": "Media.extension",
"sliceName": "issued",
"short": "R4: Date/Time this version was made available (new)",
"definition": "R4: `Media.issued` (new:instant)",
"comment": "Element `Media.issued` has a context of Media based on following the parent source element upwards and mapping to `Media`.\nElement `Media.issued` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nIt may be the same as the [`lastUpdated` ](https://hl7.org/fhir/resource-definiti.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": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.issued|0.1.0"
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() | (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false
},
{
"id": "Media.extension:deviceName",
"path": "Media.extension",
"sliceName": "deviceName",
"short": "R4: Name of the device/manufacturer (new)",
"definition": "R4: `Media.deviceName` (new:string)",
"comment": "Element `Media.deviceName` has a context of Media based on following the parent source element upwards and mapping to `Media`.\nElement `Media.deviceName` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
"min": 0,
"max": "1",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.deviceName|0.1.0"
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() | (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false
},
{
"id": "Media.modifierExtension",
"path": "Media.modifierExtension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.modifierExtension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"isModifier": true
},
{
"id": "Media.modifierExtension:status",
"path": "Media.modifierExtension",
"sliceName": "status",
"short": "R4: preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown (new)",
"definition": "R4: `Media.status` (new:code)",
"comment": "Element `Media.status` has a context of Media based on following the parent source element upwards and mapping to `Media`.\nElement `Media.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nA 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": "DomainResource.modifierExtension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.status|0.1.0"
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() | (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": true
},
{
"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"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".id"
},
{
"identity": "dicom",
"map": "0008,0018 | ~0008,0050 | 0020,000D | 0020,000E"
},
{
"identity": "w5",
"map": "id"
}
]
},
{
"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/ProcedureRequest"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=FLFS].target"
}
]
},
{
"id": "Media.basedOn.id",
"path": "Media.basedOn.id",
"representation": [
"xmlAttr"
],
"short": "xml:id (or equivalent in JSON)",
"definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "Media.basedOn.extension",
"path": "Media.basedOn.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
]
},
{
"id": "Media.basedOn.extension:basedOn",
"path": "Media.basedOn.extension",
"sliceName": "basedOn",
"short": "R4: basedOn additional types",
"definition": "R4: `Media.basedOn` additional types from child elements (display, identifier, reference, type)",
"comment": "Element `Media.basedOn` is mapped to FHIR STU3 element `Media.basedOn` as `SourceIsBroaderThanTarget`.\nThe mappings for `Media.basedOn` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `Media.basedOn` with unmapped reference targets: CarePlan, ServiceRequest.",
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
}
]
},
{
"id": "Media.basedOn.reference",
"path": "Media.basedOn.reference",
"short": "Literal reference, Relative, internal or absolute URL",
"definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
"comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.reference",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"condition": [
"ref-1"
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "Media.basedOn.identifier",
"path": "Media.basedOn.identifier",
"short": "Logical reference, when literal reference is not known",
"definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
"comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.identifier",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Identifier"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".identifier"
}
]
},
{
"id": "Media.basedOn.display",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
}
],
"path": "Media.basedOn.display",
"short": "Text alternative for the resource",
"definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
"comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.display",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"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",
"base": {
"path": "Media.type",
"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|3.0.2"
}
},
"mapping": [
{
"identity": "rim",
"map": ".code"
},
{
"identity": "w5",
"map": "class"
}
]
},
{
"id": "Media.type.id",
"path": "Media.type.id",
"representation": [
"xmlAttr"
],
"short": "xml:id (or equivalent in JSON)",
"definition": "unique id for the element within a resource (for internal references)",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
]
},
{
"id": "Media.type.extension",
"path": "Media.type.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
]
},
{
"id": "Media.type.extension:type",
"path": "Media.type.extension",
"sliceName": "type",
"short": "R4: Classification of media as image, video, or audio additional types",
"definition": "R4: `Media.type` additional types (CodeableConcept) additional types from child elements (coding)",
"comment": "Element `Media.type` is mapped to FHIR STU3 element `Media.type` as `SourceIsBroaderThanTarget`.\nThe mappings for `Media.type` do not cover the following types: CodeableConcept.\nThe mappings for `Media.type` do not cover the following types based on type expansion: coding.",
"min": 0,
"max": "1",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.type|0.1.0"
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() | (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false
},
{
"id": "Media.type.value",
"path": "Media.type.value",
"representation": [
"xmlAttr"
],
"short": "Primitive value for code",
"definition": "Primitive value for code",
"min": 0,
"max": "1",
"base": {
"path": "string.value",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
"valueString": "[^\\s]+([\\s]?[^\\s]+)*"
}
],
"_code": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
"valueString": "string"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
"valueString": "xsd:token"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type",
"valueString": "xsd:token"
}
]
}
}
]
},
{
"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",
"base": {
"path": "Media.subtype",
"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|3.0.2"
}
},
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
},
{
"identity": "dicom",
"map": "0008,0060 | 0008,1032"
},
{
"identity": "w5",
"map": "class"
}
]
},
{
"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"
}
],
"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|3.0.2"
}
},
"mapping": [
{
"identity": "rim",
"map": "DiagnosticImage.subjectOrientationCode"
},
{
"identity": "w5",
"map": "class"
}
]
},
{
"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"
},
{
"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"
}
]
},
{
"id": "Media.subject.id",
"path": "Media.subject.id",
"representation": [
"xmlAttr"
],
"short": "xml:id (or equivalent in JSON)",
"definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "Media.subject.extension",
"path": "Media.subject.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
]
},
{
"id": "Media.subject.extension:subject",
"path": "Media.subject.extension",
"sliceName": "subject",
"short": "R4: subject",
"definition": "R4: `Media.subject`",
"comment": "Element `Media.subject` is mapped to FHIR STU3 element `Media.subject` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `Media.subject` with unmapped reference targets: Location, PractitionerRole.",
"min": 0,
"max": "1",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
}
]
},
{
"id": "Media.subject.reference",
"path": "Media.subject.reference",
"short": "Literal reference, Relative, internal or absolute URL",
"definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
"comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.reference",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"condition": [
"ref-1"
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "Media.subject.identifier",
"path": "Media.subject.identifier",
"short": "Logical reference, when literal reference is not known",
"definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
"comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.identifier",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Identifier"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".identifier"
}
]
},
{
"id": "Media.subject.display",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
}
],
"path": "Media.subject.display",
"short": "Text alternative for the resource",
"definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
"comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.display",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"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",
"base": {
"path": "Media.context",
"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"
}
]
},
{
"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",
"base": {
"path": "Media.occurrence[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "dateTime"
},
{
"code": "Period"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".effectiveTime"
},
{
"identity": "w5",
"map": "when.done"
}
]
},
{
"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"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".participation[typeCode=\"PERF\"]???"
},
{
"identity": "dicom",
"map": "0008,1060?"
},
{
"identity": "w5",
"map": "who.actor"
}
]
},
{
"id": "Media.operator.id",
"path": "Media.operator.id",
"representation": [
"xmlAttr"
],
"short": "xml:id (or equivalent in JSON)",
"definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "Media.operator.extension",
"path": "Media.operator.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
]
},
{
"id": "Media.operator.extension:operator",
"path": "Media.operator.extension",
"sliceName": "operator",
"short": "R4: operator",
"definition": "R4: `Media.operator`",
"comment": "Element `Media.operator` is mapped to FHIR STU3 element `Media.operator` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `Media.operator` with unmapped reference targets: CareTeam, Device, Organization, Patient, PractitionerRole, RelatedPerson.",
"min": 0,
"max": "1",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
}
]
},
{
"id": "Media.operator.reference",
"path": "Media.operator.reference",
"short": "Literal reference, Relative, internal or absolute URL",
"definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
"comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.reference",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"condition": [
"ref-1"
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "Media.operator.identifier",
"path": "Media.operator.identifier",
"short": "Logical reference, when literal reference is not known",
"definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
"comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.identifier",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Identifier"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".identifier"
}
]
},
{
"id": "Media.operator.display",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
}
],
"path": "Media.operator.display",
"short": "Text alternative for the resource",
"definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
"comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.display",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"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": "*",
"base": {
"path": "Media.reasonCode",
"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|3.0.2"
}
},
"mapping": [
{
"identity": "rim",
"map": ".reasonCode"
},
{
"identity": "w5",
"map": "why"
}
]
},
{
"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](http://hl7.org/fhir/STU3/extension-body-site-instance.html).",
"min": 0,
"max": "1",
"base": {
"path": "Media.bodySite",
"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|3.0.2"
}
},
"mapping": [
{
"identity": "sct-concept",
"map": "< 123037004 |Body structure|"
},
{
"identity": "rim",
"map": "targetSiteCode"
},
{
"identity": "sct-attr",
"map": "718497002 |Inherent location|"
}
]
},
{
"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",
"base": {
"path": "Media.device",
"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|"
}
]
},
{
"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"
}
],
"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"
}
]
},
{
"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"
}
],
"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"
}
]
},
{
"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",
"base": {
"path": "Media.frames",
"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"
}
]
},
{
"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": "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"
}
]
},
{
"id": "Media.duration.id",
"path": "Media.duration.id",
"representation": [
"xmlAttr"
],
"short": "xml:id (or equivalent in JSON)",
"definition": "unique id for the element within a resource (for internal references)",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
]
},
{
"id": "Media.duration.extension",
"path": "Media.duration.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
]
},
{
"id": "Media.duration.extension:duration",
"path": "Media.duration.extension",
"sliceName": "duration",
"short": "R4: duration additional types",
"definition": "R4: `Media.duration` additional types (decimal) additional types from child elements (value)",
"comment": "Element `Media.duration` is mapped to FHIR STU3 element `Media.duration` as `SourceIsBroaderThanTarget`.\nThe mappings for `Media.duration` do not cover the following types: decimal.\nThe mappings for `Media.duration` do not cover the following types based on type expansion: value.\nThe duration might differ from occurrencePeriod if recording was paused.",
"min": 0,
"max": "1",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.duration|0.1.0"
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() | (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false
},
{
"id": "Media.duration.value",
"path": "Media.duration.value",
"representation": [
"xmlAttr"
],
"short": "Primitive value for unsignedInt",
"definition": "Primitive value for unsignedInt",
"min": 0,
"max": "1",
"base": {
"path": "integer.value",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
"valueString": "[0]|([1-9][0-9]*)"
}
],
"_code": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
"valueString": "number"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
"valueString": "xsd:nonNegativeInteger"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type",
"valueString": "xsd:nonNegativeInteger"
}
]
}
}
]
},
{
"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",
"base": {
"path": "Media.content",
"min": 1,
"max": "1"
},
"type": [
{
"code": "Attachment"
}
],
"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.",
"min": 0,
"max": "*",
"base": {
"path": "Media.note",
"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]"
}
]
}
]
},
"differential": {
"element": [
{
"id": "Media",
"path": "Media"
},
{
"id": "Media.extension",
"path": "Media.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"min": 0,
"max": "*"
},
{
"id": "Media.extension:partOf",
"path": "Media.extension",
"sliceName": "partOf",
"short": "R4: Part of referenced event (new)",
"definition": "R4: `Media.partOf` (new:Reference(Resource))",
"comment": "Element `Media.partOf` has a context of Media based on following the parent source element upwards and mapping to `Media`.\nElement `Media.partOf` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nNot 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].",
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.partOf|0.1.0"
}
]
},
{
"id": "Media.extension:issued",
"path": "Media.extension",
"sliceName": "issued",
"short": "R4: Date/Time this version was made available (new)",
"definition": "R4: `Media.issued` (new:instant)",
"comment": "Element `Media.issued` has a context of Media based on following the parent source element upwards and mapping to `Media`.\nElement `Media.issued` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nIt may be the same as the [`lastUpdated` ](https://hl7.org/fhir/resource-definiti.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": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.issued|0.1.0"
}
]
},
{
"id": "Media.extension:deviceName",
"path": "Media.extension",
"sliceName": "deviceName",
"short": "R4: Name of the device/manufacturer (new)",
"definition": "R4: `Media.deviceName` (new:string)",
"comment": "Element `Media.deviceName` has a context of Media based on following the parent source element upwards and mapping to `Media`.\nElement `Media.deviceName` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
"min": 0,
"max": "1",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.deviceName|0.1.0"
}
]
},
{
"id": "Media.modifierExtension",
"path": "Media.modifierExtension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"min": 0,
"max": "*"
},
{
"id": "Media.modifierExtension:status",
"path": "Media.modifierExtension",
"sliceName": "status",
"short": "R4: preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown (new)",
"definition": "R4: `Media.status` (new:code)",
"comment": "Element `Media.status` has a context of Media based on following the parent source element upwards and mapping to `Media`.\nElement `Media.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nA 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": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.status|0.1.0"
}
]
},
{
"id": "Media.basedOn.extension",
"path": "Media.basedOn.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"min": 0,
"max": "*"
},
{
"id": "Media.basedOn.extension:basedOn",
"path": "Media.basedOn.extension",
"sliceName": "basedOn",
"short": "R4: basedOn additional types",
"definition": "R4: `Media.basedOn` additional types from child elements (display, identifier, reference, type)",
"comment": "Element `Media.basedOn` is mapped to FHIR STU3 element `Media.basedOn` as `SourceIsBroaderThanTarget`.\nThe mappings for `Media.basedOn` do not cover the following types based on type expansion: display, identifier, reference, type.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `Media.basedOn` with unmapped reference targets: CarePlan, ServiceRequest.",
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
}
]
},
{
"id": "Media.type.extension",
"path": "Media.type.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"min": 0,
"max": "*"
},
{
"id": "Media.type.extension:type",
"path": "Media.type.extension",
"sliceName": "type",
"short": "R4: Classification of media as image, video, or audio additional types",
"definition": "R4: `Media.type` additional types (CodeableConcept) additional types from child elements (coding)",
"comment": "Element `Media.type` is mapped to FHIR STU3 element `Media.type` as `SourceIsBroaderThanTarget`.\nThe mappings for `Media.type` do not cover the following types: CodeableConcept.\nThe mappings for `Media.type` do not cover the following types based on type expansion: coding.",
"min": 0,
"max": "1",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.type|0.1.0"
}
]
},
{
"id": "Media.subject.extension",
"path": "Media.subject.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"min": 0,
"max": "*"
},
{
"id": "Media.subject.extension:subject",
"path": "Media.subject.extension",
"sliceName": "subject",
"short": "R4: subject",
"definition": "R4: `Media.subject`",
"comment": "Element `Media.subject` is mapped to FHIR STU3 element `Media.subject` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `Media.subject` with unmapped reference targets: Location, PractitionerRole.",
"min": 0,
"max": "1",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
}
]
},
{
"id": "Media.operator.extension",
"path": "Media.operator.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"min": 0,
"max": "*"
},
{
"id": "Media.operator.extension:operator",
"path": "Media.operator.extension",
"sliceName": "operator",
"short": "R4: operator",
"definition": "R4: `Media.operator`",
"comment": "Element `Media.operator` is mapped to FHIR STU3 element `Media.operator` as `SourceIsBroaderThanTarget`.\nThe standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `Media.operator` with unmapped reference targets: CareTeam, Device, Organization, Patient, PractitionerRole, RelatedPerson.",
"min": 0,
"max": "1",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/StructureDefinition/alternate-reference"
}
]
},
{
"id": "Media.duration.extension",
"path": "Media.duration.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"min": 0,
"max": "*"
},
{
"id": "Media.duration.extension:duration",
"path": "Media.duration.extension",
"sliceName": "duration",
"short": "R4: duration additional types",
"definition": "R4: `Media.duration` additional types (decimal) additional types from child elements (value)",
"comment": "Element `Media.duration` is mapped to FHIR STU3 element `Media.duration` as `SourceIsBroaderThanTarget`.\nThe mappings for `Media.duration` do not cover the following types: decimal.\nThe mappings for `Media.duration` do not cover the following types based on type expansion: value.\nThe duration might differ from occurrencePeriod if recording was paused.",
"min": 0,
"max": "1",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Media.duration|0.1.0"
}
]
}
]
}
}