Release 4B

This page is part of the FHIR Specification (v4.3.0: R4B - STU). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

Diagnosticreport.profile.ttl

Orders and Observations Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Encounter, Patient, Practitioner

Raw Turtle (+ also see Turtle/RDF Format Specification)

StructureDefinition for diagnosticreport

@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:StructureDefinition;
  fhir:Resource.id [ fhir:value "DiagnosticReport"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2022-05-28T12:47:40.239+10:00" ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-category" ];
     fhir:Extension.value [ fhir:value "Clinical.Diagnostics" ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
     fhir:Extension.value [ fhir:value "trial-use" ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ];
     fhir:Extension.value [ fhir:value "3" ]
  ], [
     fhir:index 3;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category" ];
     fhir:Extension.value [ fhir:value "patient" ]
  ], [
     fhir:index 4;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ];
     fhir:Extension.value [ fhir:value "oo" ]
  ];
  fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"];
  fhir:StructureDefinition.version [ fhir:value "4.3.0"];
  fhir:StructureDefinition.name [ fhir:value "DiagnosticReport"];
  fhir:StructureDefinition.status [ fhir:value "draft"];
  fhir:StructureDefinition.experimental [ fhir:value "false"];
  fhir:StructureDefinition.date [ fhir:value "2022-05-28T12:47:40+10:00"];
  fhir:StructureDefinition.publisher [ fhir:value "Health Level Seven International (Orders and Observations)"];
  fhir:StructureDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ], [
     fhir:index 1;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/orders/index.cfm" ]
     ]
  ];
  fhir:StructureDefinition.description [ fhir:value "The findings and interpretation of diagnostic  tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports."];
  fhir:StructureDefinition.purpose [ fhir:value "To support reporting for any diagnostic report into a clinical data repository."];
  fhir:StructureDefinition.fhirVersion [ fhir:value "4.3.0"];
  fhir:StructureDefinition.mapping [
     fhir:index 0;
     fhir:StructureDefinition.identity [ fhir:value "workflow" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/fhir/workflow" ];
     fhir:StructureDefinition.name [ fhir:value "Workflow Pattern" ]
  ], [
     fhir:index 1;
     fhir:StructureDefinition.identity [ fhir:value "v2" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/v2" ];
     fhir:StructureDefinition.name [ fhir:value "HL7 v2 Mapping" ]
  ], [
     fhir:index 2;
     fhir:StructureDefinition.identity [ fhir:value "rim" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/v3" ];
     fhir:StructureDefinition.name [ fhir:value "RIM Mapping" ]
  ], [
     fhir:index 3;
     fhir:StructureDefinition.identity [ fhir:value "w5" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/fhir/fivews" ];
     fhir:StructureDefinition.name [ fhir:value "FiveWs Pattern Mapping" ]
  ];
  fhir:StructureDefinition.kind [ fhir:value "resource"];
  fhir:StructureDefinition.abstract [ fhir:value "false"];
  fhir:StructureDefinition.type [ fhir:value "DiagnosticReport"];
  fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource"];
  fhir:StructureDefinition.derivation [ fhir:value "specialization"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "DiagnosticReport" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport" ];
       fhir:ElementDefinition.short [ fhir:value "A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports" ];
       fhir:ElementDefinition.definition [ fhir:value "The findings and interpretation of diagnostic  tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports." ];
       fhir:ElementDefinition.comment [ fhir:value "This is intended to capture a single report and is not suitable for use in displaying summary information that covers multiple reports.  For example, this resource has not been designed for laboratory cumulative reporting formats nor detailed structured reports for sequencing." ];
       fhir:ElementDefinition.alias [
         fhir:value "Report";
         fhir:index 0
       ], [
         fhir:value "Test";
         fhir:index 1
       ], [
         fhir:value "Result";
         fhir:index 2
       ], [
         fhir:value "Results";
         fhir:index 3
       ], [
         fhir:value "Labs";
         fhir:index 4
       ], [
         fhir:value "Laboratory";
         fhir:index 5
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "dom-2" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ];
         fhir:ElementDefinition.expression [ fhir:value "contained.contained.empty()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(parent::f:contained and f:contained)" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "dom-3" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "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" ];
         fhir:ElementDefinition.expression [ fhir:value "contained.where(((id.exists() and ('#'+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(uri) = '#').exists()).not()).trace('unmatched', id).empty()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(exists(for $contained in f:contained return $contained[not(exists(parent::*/descendant::f:reference/@value=concat('#', $contained/*/f:id/@value)) or exists(descendant::f:reference[@value='#']))]))" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.key [ fhir:value "dom-4" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ];
         fhir:ElementDefinition.expression [ fhir:value "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.key [ fhir:value "dom-5" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a security label" ];
         fhir:ElementDefinition.expression [ fhir:value "contained.meta.security.empty()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:security))" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:index 4;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ];
           fhir:Extension.value [ fhir:value "true" ]
         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ];
           fhir:Extension.value [ fhir:value "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." ]
         ];
         fhir:ElementDefinition.key [ fhir:value "dom-6" ];
         fhir:ElementDefinition.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.human [ fhir:value "A resource should have narrative for robust management" ];
         fhir:ElementDefinition.expression [ fhir:value "text.`div`.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:text/h:div)" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "Entity. Role, or Act" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "ORU -> OBR" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "Observation[classCode=OBS, moodCode=EVN]" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "clinical.diagnostics" ]
       ]
     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "DiagnosticReport.id" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.id" ];
       fhir:ElementDefinition.short [ fhir:value "Logical id of this artifact" ];
       fhir:ElementDefinition.definition [ fhir:value "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ];
       fhir:ElementDefinition.comment [ fhir:value "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Resource.id" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "id" ]
         ];
         fhir:ElementDefinition.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ]
     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "DiagnosticReport.meta" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.meta" ];
       fhir:ElementDefinition.short [ fhir:value "Metadata about the resource" ];
       fhir:ElementDefinition.definition [ fhir:value "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." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Resource.meta" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Meta" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ]
     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "DiagnosticReport.implicitRules" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.implicitRules" ];
       fhir:ElementDefinition.short [ fhir:value "A set of rules under which this content was created" ];
       fhir:ElementDefinition.definition [ fhir:value "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." ];
       fhir:ElementDefinition.comment [ fhir:value "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." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Resource.implicitRules" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "uri" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "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" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ]
     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "DiagnosticReport.language" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.language" ];
       fhir:ElementDefinition.short [ fhir:value "Language of the resource content" ];
       fhir:ElementDefinition.definition [ fhir:value "The base language in which the resource is written." ];
       fhir:ElementDefinition.comment [ fhir:value "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)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Resource.language" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ];
           fhir:Extension.value [ fhir:value "http://hl7.org/fhir/ValueSet/all-languages" ]
         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "Language" ]
         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ];
           fhir:Extension.value [ fhir:value "true" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.description [ fhir:value "IETF language tag" ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/languages" ]
       ]
     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "DiagnosticReport.text" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.text" ];
       fhir:ElementDefinition.short [ fhir:value "Text summary of the resource, for human interpretation" ];
       fhir:ElementDefinition.definition [ fhir:value "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." ];
       fhir:ElementDefinition.comment [ fhir:value "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." ];
       fhir:ElementDefinition.alias [
         fhir:value "narrative";
         fhir:index 0
       ], [
         fhir:value "html";
         fhir:index 1
       ], [
         fhir:value "xhtml";
         fhir:index 2
       ], [
         fhir:value "display";
         fhir:index 3
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DomainResource.text" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Narrative" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "Act.text?" ]
       ]
     ], [
       fhir:index 6;
       fhir:Element.id [ fhir:value "DiagnosticReport.contained" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.contained" ];
       fhir:ElementDefinition.short [ fhir:value "Contained, inline Resources" ];
       fhir:ElementDefinition.definition [ fhir:value "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." ];
       fhir:ElementDefinition.comment [ fhir:value "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." ];
       fhir:ElementDefinition.alias [
         fhir:value "inline resources";
         fhir:index 0
       ], [
         fhir:value "anonymous resources";
         fhir:index 1
       ], [
         fhir:value "contained resources";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DomainResource.contained" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Resource" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "dom-r4b" ];
         fhir:ElementDefinition.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.human [ fhir:value "Containing new R4B resources within R4 resources may cause interoperability issues if instances are shared with R4 systems" ];
         fhir:ElementDefinition.expression [ fhir:value "($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefinition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorization or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource is SubscriptionTopic)" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(f:Citation|f:Evidence|f:EvidenceReport|f:EvidenceVariable|f:MedicinalProductDefinition|f:PackagedProductDefinition|f:AdministrableProductDefinition|f:Ingredient|f:ClinicalUseDefinition|f:RegulatedAuthorization|f:SubstanceDefinition|f:SubscriptionStatus|f:SubscriptionTopic) or not(parent::f:Citation|parent::f:Evidence|parent::f:EvidenceReport|parent::f:EvidenceVariable|parent::f:MedicinalProductDefinition|parent::f:PackagedProductDefinition|parent::f:AdministrableProductDefinition|parent::f:Ingredient|parent::f:ClinicalUseDefinition|parent::f:RegulatedAuthorization|parent::f:SubstanceDefinition|f:SubscriptionStatus|f:SubscriptionTopic)" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DiagnosticReport" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 7;
       fhir:Element.id [ fhir:value "DiagnosticReport.extension" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "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." ];
       fhir:ElementDefinition.comment [ fhir:value "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." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 8;
       fhir:Element.id [ fhir:value "DiagnosticReport.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "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)." ];
       fhir:ElementDefinition.comment [ fhir:value "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." ];
       fhir:ElementDefinition.requirements [ fhir:value "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)." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DomainResource.modifierExtension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 9;
       fhir:Element.id [ fhir:value "DiagnosticReport.identifier" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.identifier" ];
       fhir:ElementDefinition.short [ fhir:value "Business identifier for report" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifiers assigned to this report by the performer or other systems." ];
       fhir:ElementDefinition.comment [ fhir:value "Usually assigned by the Information System of the diagnostic service provider (filler id)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to know what identifier to use when making queries about this report from the source laboratory, and for linking to the report outside FHIR context." ];
       fhir:ElementDefinition.alias [
         fhir:value "ReportID";
         fhir:index 0
       ], [
         fhir:value "Filler ID";
         fhir:index 1
       ], [
         fhir:value "Placer ID";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.identifier" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Identifier" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.identifier" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.identifier" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-51/ for globally unique filler ID  - OBR-3 , For non-globally unique filler-id the flller/placer number must be combined with the universal service Id -  OBR-2(if present)+OBR-3+OBR-4" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "id" ]
       ]
     ], [
       fhir:index 10;
       fhir:Element.id [ fhir:value "DiagnosticReport.basedOn" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.basedOn" ];
       fhir:ElementDefinition.short [ fhir:value "What was requested" ];
       fhir:ElementDefinition.definition [ fhir:value "Details concerning a service requested." ];
       fhir:ElementDefinition.comment [ fhir:value "Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports." ];
       fhir:ElementDefinition.requirements [ fhir:value "This allows tracing of authorization for the report and tracking whether proposals/recommendations were acted upon." ];
       fhir:ElementDefinition.alias [
         fhir:value "Request";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.basedOn" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/CarePlan";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationRequest";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/NutritionOrder";
           fhir:index 3
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/ServiceRequest";
           fhir:index 4
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.basedOn" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "ORC? OBR-2/3?" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "outboundRelationship[typeCode=FLFS].target" ]
       ]
     ], [
       fhir:index 11;
       fhir:Element.id [ fhir:value "DiagnosticReport.status" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.status" ];
       fhir:ElementDefinition.short [ fhir:value "registered | partial | preliminary | final +" ];
       fhir:ElementDefinition.definition [ fhir:value "The status of the diagnostic report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Diagnostic services routinely issue provisional/incomplete reports, and sometimes withdraw previously released reports." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.status" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "DiagnosticReportStatus" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "The status of the diagnostic report." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.3.0" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.status" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.status" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-25 (not 1:1 mapping)" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "statusCode  Note: final and amended are distinguished by whether observation is the subject of a ControlAct event of type \"revise\"" ]
       ]
     ], [
       fhir:index 12;
       fhir:Element.id [ fhir:value "DiagnosticReport.category" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.category" ];
       fhir:ElementDefinition.short [ fhir:value "Service category" ];
       fhir:ElementDefinition.definition [ fhir:value "A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes." ];
       fhir:ElementDefinition.comment [ fhir:value "Multiple categories are allowed using various categorization schemes.   The level of granularity is defined by the category concepts in the value set. More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in DiagnosticReport.code." ];
       fhir:ElementDefinition.alias [
         fhir:value "Department";
         fhir:index 0
       ], [
         fhir:value "Sub-department";
         fhir:index 1
       ], [
         fhir:value "Service";
         fhir:index 2
       ], [
         fhir:value "Discipline";
         fhir:index 3
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.category" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "DiagnosticServiceSection" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "example" ];
         fhir:ElementDefinition.description [ fhir:value "HL7 V2 table 0074" ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/diagnostic-service-sections" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.class" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-24" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "inboundRelationship[typeCode=COMP].source[classCode=LIST, moodCode=EVN, code < LabService].code" ]
       ]
     ], [
       fhir:index 13;
       fhir:Element.id [ fhir:value "DiagnosticReport.code" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.code" ];
       fhir:ElementDefinition.short [ fhir:value "Name/Code for this diagnostic report" ];
       fhir:ElementDefinition.definition [ fhir:value "A code or name that describes this diagnostic report." ];
       fhir:ElementDefinition.alias [
         fhir:value "Type";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.code" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "DiagnosticReportCodes" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.description [ fhir:value "LOINC Codes for Diagnostic Reports" ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/report-codes" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.code" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-4 (HL7 v2 doesn't provide an easy way to indicate both the ordered test and the performed panel)" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "code" ]
       ]
     ], [
       fhir:index 14;
       fhir:Element.id [ fhir:value "DiagnosticReport.subject" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.subject" ];
       fhir:ElementDefinition.short [ fhir:value "The subject of the report - usually, but not always, the patient" ];
       fhir:ElementDefinition.definition [ fhir:value "The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources." ];
       fhir:ElementDefinition.requirements [ fhir:value "SHALL know the subject context." ];
       fhir:ElementDefinition.alias [
         fhir:value "Patient";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.subject" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Patient";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Group";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Device";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Location";
           fhir:index 3
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 4
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure";
           fhir:index 5
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 6
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Medication";
           fhir:index 7
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Substance";
           fhir:index 8
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.subject" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.subject[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "PID-3 (no HL7 v2 mapping for Group or Device)" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "participation[typeCode=SBJ]" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.subject" ]
       ]
     ], [
       fhir:index 15;
       fhir:Element.id [ fhir:value "DiagnosticReport.encounter" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.encounter" ];
       fhir:ElementDefinition.short [ fhir:value "Health care event when test ordered" ];
       fhir:ElementDefinition.definition [ fhir:value "The healthcare event  (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about." ];
       fhir:ElementDefinition.comment [ fhir:value "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter  but still be tied to the context of the encounter  (e.g. pre-admission laboratory tests)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Links the request to the Encounter context." ];
       fhir:ElementDefinition.alias [
         fhir:value "Context";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.encounter" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.encounter" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "PV1-19" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" ]
       ]
     ], [
       fhir:index 16;
       fhir:Element.id [ fhir:value "DiagnosticReport.effective[x]" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.effective[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Clinically relevant time/time-period for report" ];
       fhir:ElementDefinition.definition [ fhir:value "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself." ];
       fhir:ElementDefinition.comment [ fhir:value "If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to know where in the patient history to file/present this report." ];
       fhir:ElementDefinition.alias [
         fhir:value "Observation time";
         fhir:index 0
       ], [
         fhir:value "Effective Time";
         fhir:index 1
       ], [
         fhir:value "Occurrence";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.effective[x]" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "dateTime" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.occurrence[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.done[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-7" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "effectiveTime" ]
       ]
     ], [
       fhir:index 17;
       fhir:Element.id [ fhir:value "DiagnosticReport.issued" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.issued" ];
       fhir:ElementDefinition.short [ fhir:value "DateTime this version was made" ];
       fhir:ElementDefinition.definition [ fhir:value "The date and time that this version of the report was made available to providers, typically after the report was reviewed and verified." ];
       fhir:ElementDefinition.comment [ fhir:value "May be different from the update time of the resource itself, because that is the status of the record (potentially a secondary copy), not the actual release time of the report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Clinicians need to be able to check the date that the report was released." ];
       fhir:ElementDefinition.alias [
         fhir:value "Date published";
         fhir:index 0
       ], [
         fhir:value "Date Issued";
         fhir:index 1
       ], [
         fhir:value "Date Verified";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.issued" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "instant" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.recorded" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-22" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "participation[typeCode=VRF or AUT].time" ]
       ]
     ], [
       fhir:index 18;
       fhir:Element.id [ fhir:value "DiagnosticReport.performer" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.performer" ];
       fhir:ElementDefinition.short [ fhir:value "Responsible Diagnostic Service" ];
       fhir:ElementDefinition.definition [ fhir:value "The diagnostic service that is responsible for issuing the report." ];
       fhir:ElementDefinition.comment [ fhir:value "This is not necessarily the source of the atomic data items or the entity that interpreted the results. It is the entity that takes responsibility for the clinical report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis." ];
       fhir:ElementDefinition.alias [
         fhir:value "Laboratory";
         fhir:index 0
       ], [
         fhir:value "Service";
         fhir:index 1
       ], [
         fhir:value "Practitioner";
         fhir:index 2
       ], [
         fhir:value "Department";
         fhir:index 3
       ], [
         fhir:value "Company";
         fhir:index 4
       ], [
         fhir:value "Authorized by";
         fhir:index 5
       ], [
         fhir:value "Director";
         fhir:index 6
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.performer" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam";
           fhir:index 3
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer.actor" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.actor" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "PRT-8 (where this PRT-4-Participation = \"PO\")" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".participation[typeCode=PRF]" ]
       ]
     ], [
       fhir:index 19;
       fhir:Element.id [ fhir:value "DiagnosticReport.resultsInterpreter" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.resultsInterpreter" ];
       fhir:ElementDefinition.short [ fhir:value "Primary result interpreter" ];
       fhir:ElementDefinition.definition [ fhir:value "The practitioner or organization that is responsible for the report's conclusions and interpretations." ];
       fhir:ElementDefinition.comment [ fhir:value "Might not be the same entity that takes responsibility for the clinical report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis." ];
       fhir:ElementDefinition.alias [
         fhir:value "Analyzed by";
         fhir:index 0
       ], [
         fhir:value "Reported by";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.resultsInterpreter" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam";
           fhir:index 3
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer.actor" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.actor" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-32, PRT-8 (where this PRT-4-Participation = \"PI\")" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".participation[typeCode=PRF]" ]
       ]
     ], [
       fhir:index 20;
       fhir:Element.id [ fhir:value "DiagnosticReport.specimen" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.specimen" ];
       fhir:ElementDefinition.short [ fhir:value "Specimens this report is based on" ];
       fhir:ElementDefinition.definition [ fhir:value "Details about the specimens on which this diagnostic report is based." ];
       fhir:ElementDefinition.comment [ fhir:value "If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to be able to report information about the collected specimens on which the report is based." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.specimen" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Specimen";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "SPM" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "participation[typeCode=SBJ]" ]
       ]
     ], [
       fhir:index 21;
       fhir:Element.id [ fhir:value "DiagnosticReport.result" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.result" ];
       fhir:ElementDefinition.short [ fhir:value "Observations" ];
       fhir:ElementDefinition.definition [ fhir:value "[Observations](observation.html)  that are part of this diagnostic report." ];
       fhir:ElementDefinition.comment [ fhir:value "Observations can contain observations." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to support individual results, or  groups of results, where the result grouping is arbitrary, but meaningful." ];
       fhir:ElementDefinition.alias [
         fhir:value "Data";
         fhir:index 0
       ], [
         fhir:value "Atomic Value";
         fhir:index 1
       ], [
         fhir:value "Result";
         fhir:index 2
       ], [
         fhir:value "Atomic result";
         fhir:index 3
       ], [
         fhir:value "Data";
         fhir:index 4
       ], [
         fhir:value "Test";
         fhir:index 5
       ], [
         fhir:value "Analyte";
         fhir:index 6
       ], [
         fhir:value "Battery";
         fhir:index 7
       ], [
         fhir:value "Organizer";
         fhir:index 8
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.result" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBXs" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "outboundRelationship[typeCode=COMP].target" ]
       ]
     ], [
       fhir:index 22;
       fhir:Element.id [ fhir:value "DiagnosticReport.imagingStudy" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.imagingStudy" ];
       fhir:ElementDefinition.short [ fhir:value "Reference to full details of imaging associated with the diagnostic report" ];
       fhir:ElementDefinition.definition [ fhir:value "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images." ];
       fhir:ElementDefinition.comment [ fhir:value "ImagingStudy and the image element are somewhat overlapping - typically, the list of image references in the image element will also be found in one of the imaging study resources. However, each caters to different types of displays for different types of purposes. Neither, either, or both may be provided." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.imagingStudy" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/ImagingStudy";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "outboundRelationship[typeCode=COMP].target[classsCode=DGIMG, moodCode=EVN]" ]
       ]
     ], [
       fhir:index 23;
       fhir:Element.id [ fhir:value "DiagnosticReport.media" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media" ];
       fhir:ElementDefinition.short [ fhir:value "Key images associated with this report" ];
       fhir:ElementDefinition.definition [ fhir:value "A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Many diagnostic services include images in the report as part of their service." ];
       fhir:ElementDefinition.alias [
         fhir:value "DICOM";
         fhir:index 0
       ], [
         fhir:value "Slides";
         fhir:index 1
       ], [
         fhir:value "Scans";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children unless an empty Parameters resource" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count()) or $this is Parameters" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div|self::f:Parameters" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBX?" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "outboundRelationship[typeCode=COMP].target" ]
       ]
     ], [
       fhir:index 24;
       fhir:Element.id [ fhir:value "DiagnosticReport.media.id" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:ElementDefinition.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 25;
       fhir:Element.id [ fhir:value "DiagnosticReport.media.extension" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "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." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 26;
       fhir:Element.id [ fhir:value "DiagnosticReport.media.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "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." ];
       fhir:ElementDefinition.requirements [ fhir:value "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)." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ], [
         fhir:value "modifiers";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 27;
       fhir:Element.id [ fhir:value "DiagnosticReport.media.comment" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media.comment" ];
       fhir:ElementDefinition.short [ fhir:value "Comment about the image (e.g. explanation)" ];
       fhir:ElementDefinition.definition [ fhir:value "A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features." ];
       fhir:ElementDefinition.comment [ fhir:value "The comment should be displayed with the image. It would be common for the report to include additional discussion of the image contents in other sections such as the conclusion." ];
       fhir:ElementDefinition.requirements [ fhir:value "The provider of the report should make a comment about each image included in the report." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media.comment" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value" ]
       ]
     ], [
       fhir:index 28;
       fhir:Element.id [ fhir:value "DiagnosticReport.media.link" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media.link" ];
       fhir:ElementDefinition.short [ fhir:value "Reference to the image source" ];
       fhir:ElementDefinition.definition [ fhir:value "Reference to the image source." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media.link" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Media";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".value.reference" ]
       ]
     ], [
       fhir:index 29;
       fhir:Element.id [ fhir:value "DiagnosticReport.conclusion" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.conclusion" ];
       fhir:ElementDefinition.short [ fhir:value "Clinical conclusion (interpretation) of test results" ];
       fhir:ElementDefinition.definition [ fhir:value "Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to be able to provide a conclusion that is not lost among the basic result data." ];
       fhir:ElementDefinition.alias [
         fhir:value "Report";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.conclusion" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBX" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "inboundRelationship[typeCode=\"SPRT\"].source[classCode=OBS, moodCode=EVN, code=LOINC:48767-8].value (type=ST)" ]
       ]
     ], [
       fhir:index 30;
       fhir:Element.id [ fhir:value "DiagnosticReport.conclusionCode" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.conclusionCode" ];
       fhir:ElementDefinition.short [ fhir:value "Codes for the clinical conclusion of test results" ];
       fhir:ElementDefinition.definition [ fhir:value "One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.conclusionCode" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AdjunctDiagnosis" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "example" ];
         fhir:ElementDefinition.description [ fhir:value "SNOMED CT Clinical Findings" ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/clinical-findings" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBX" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "inboundRelationship[typeCode=SPRT].source[classCode=OBS, moodCode=EVN, code=LOINC:54531-9].value (type=CD)" ]
       ]
     ], [
       fhir:index 31;
       fhir:Element.id [ fhir:value "DiagnosticReport.presentedForm" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.presentedForm" ];
       fhir:ElementDefinition.short [ fhir:value "Entire report as issued" ];
       fhir:ElementDefinition.definition [ fhir:value "Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent." ];
       fhir:ElementDefinition.comment [ fhir:value "\"application/pdf\" is recommended as the most reliable and interoperable in this context." ];
       fhir:ElementDefinition.requirements [ fhir:value "Gives laboratory the ability to provide its own fully formatted report for clinical fidelity." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.presentedForm" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Attachment" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBX" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "text (type=ED)" ]
       ]
     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "DiagnosticReport" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport" ];
       fhir:ElementDefinition.short [ fhir:value "A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports" ];
       fhir:ElementDefinition.definition [ fhir:value "The findings and interpretation of diagnostic  tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports." ];
       fhir:ElementDefinition.comment [ fhir:value "This is intended to capture a single report and is not suitable for use in displaying summary information that covers multiple reports.  For example, this resource has not been designed for laboratory cumulative reporting formats nor detailed structured reports for sequencing." ];
       fhir:ElementDefinition.alias [
         fhir:value "Report";
         fhir:index 0
       ], [
         fhir:value "Test";
         fhir:index 1
       ], [
         fhir:value "Result";
         fhir:index 2
       ], [
         fhir:value "Results";
         fhir:index 3
       ], [
         fhir:value "Labs";
         fhir:index 4
       ], [
         fhir:value "Laboratory";
         fhir:index 5
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "ORU -> OBR" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "Observation[classCode=OBS, moodCode=EVN]" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "clinical.diagnostics" ]
       ]
     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "DiagnosticReport.identifier" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.identifier" ];
       fhir:ElementDefinition.short [ fhir:value "Business identifier for report" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifiers assigned to this report by the performer or other systems." ];
       fhir:ElementDefinition.comment [ fhir:value "Usually assigned by the Information System of the diagnostic service provider (filler id)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to know what identifier to use when making queries about this report from the source laboratory, and for linking to the report outside FHIR context." ];
       fhir:ElementDefinition.alias [
         fhir:value "ReportID";
         fhir:index 0
       ], [
         fhir:value "Filler ID";
         fhir:index 1
       ], [
         fhir:value "Placer ID";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Identifier" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.identifier" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.identifier" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-51/ for globally unique filler ID  - OBR-3 , For non-globally unique filler-id the flller/placer number must be combined with the universal service Id -  OBR-2(if present)+OBR-3+OBR-4" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "id" ]
       ]
     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "DiagnosticReport.basedOn" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.basedOn" ];
       fhir:ElementDefinition.short [ fhir:value "What was requested" ];
       fhir:ElementDefinition.definition [ fhir:value "Details concerning a service requested." ];
       fhir:ElementDefinition.comment [ fhir:value "Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports." ];
       fhir:ElementDefinition.requirements [ fhir:value "This allows tracing of authorization for the report and tracking whether proposals/recommendations were acted upon." ];
       fhir:ElementDefinition.alias [
         fhir:value "Request";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/CarePlan";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationRequest";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/NutritionOrder";
           fhir:index 3
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/ServiceRequest";
           fhir:index 4
         ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.basedOn" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "ORC? OBR-2/3?" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "outboundRelationship[typeCode=FLFS].target" ]
       ]
     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "DiagnosticReport.status" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.status" ];
       fhir:ElementDefinition.short [ fhir:value "registered | partial | preliminary | final +" ];
       fhir:ElementDefinition.definition [ fhir:value "The status of the diagnostic report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Diagnostic services routinely issue provisional/incomplete reports, and sometimes withdraw previously released reports." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "DiagnosticReportStatus" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "The status of the diagnostic report." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.3.0" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.status" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.status" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-25 (not 1:1 mapping)" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "statusCode  Note: final and amended are distinguished by whether observation is the subject of a ControlAct event of type \"revise\"" ]
       ]
     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "DiagnosticReport.category" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.category" ];
       fhir:ElementDefinition.short [ fhir:value "Service category" ];
       fhir:ElementDefinition.definition [ fhir:value "A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes." ];
       fhir:ElementDefinition.comment [ fhir:value "Multiple categories are allowed using various categorization schemes.   The level of granularity is defined by the category concepts in the value set. More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in DiagnosticReport.code." ];
       fhir:ElementDefinition.alias [
         fhir:value "Department";
         fhir:index 0
       ], [
         fhir:value "Sub-department";
         fhir:index 1
       ], [
         fhir:value "Service";
         fhir:index 2
       ], [
         fhir:value "Discipline";
         fhir:index 3
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "DiagnosticServiceSection" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "example" ];
         fhir:ElementDefinition.description [ fhir:value "HL7 V2 table 0074" ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/diagnostic-service-sections" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.class" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-24" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "inboundRelationship[typeCode=COMP].source[classCode=LIST, moodCode=EVN, code < LabService].code" ]
       ]
     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "DiagnosticReport.code" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.code" ];
       fhir:ElementDefinition.short [ fhir:value "Name/Code for this diagnostic report" ];
       fhir:ElementDefinition.definition [ fhir:value "A code or name that describes this diagnostic report." ];
       fhir:ElementDefinition.alias [
         fhir:value "Type";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "DiagnosticReportCodes" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.description [ fhir:value "LOINC Codes for Diagnostic Reports" ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/report-codes" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.code" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-4 (HL7 v2 doesn't provide an easy way to indicate both the ordered test and the performed panel)" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "code" ]
       ]
     ], [
       fhir:index 6;
       fhir:Element.id [ fhir:value "DiagnosticReport.subject" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.subject" ];
       fhir:ElementDefinition.short [ fhir:value "The subject of the report - usually, but not always, the patient" ];
       fhir:ElementDefinition.definition [ fhir:value "The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources." ];
       fhir:ElementDefinition.requirements [ fhir:value "SHALL know the subject context." ];
       fhir:ElementDefinition.alias [
         fhir:value "Patient";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Patient";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Group";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Device";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Location";
           fhir:index 3
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 4
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure";
           fhir:index 5
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 6
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Medication";
           fhir:index 7
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Substance";
           fhir:index 8
         ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.subject" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.subject[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "PID-3 (no HL7 v2 mapping for Group or Device)" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "participation[typeCode=SBJ]" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.subject" ]
       ]
     ], [
       fhir:index 7;
       fhir:Element.id [ fhir:value "DiagnosticReport.encounter" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.encounter" ];
       fhir:ElementDefinition.short [ fhir:value "Health care event when test ordered" ];
       fhir:ElementDefinition.definition [ fhir:value "The healthcare event  (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about." ];
       fhir:ElementDefinition.comment [ fhir:value "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter  but still be tied to the context of the encounter  (e.g. pre-admission laboratory tests)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Links the request to the Encounter context." ];
       fhir:ElementDefinition.alias [
         fhir:value "Context";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.encounter" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "PV1-19" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" ]
       ]
     ], [
       fhir:index 8;
       fhir:Element.id [ fhir:value "DiagnosticReport.effective[x]" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.effective[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Clinically relevant time/time-period for report" ];
       fhir:ElementDefinition.definition [ fhir:value "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself." ];
       fhir:ElementDefinition.comment [ fhir:value "If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to know where in the patient history to file/present this report." ];
       fhir:ElementDefinition.alias [
         fhir:value "Observation time";
         fhir:index 0
       ], [
         fhir:value "Effective Time";
         fhir:index 1
       ], [
         fhir:value "Occurrence";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "dateTime" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.occurrence[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.done[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-7" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "effectiveTime" ]
       ]
     ], [
       fhir:index 9;
       fhir:Element.id [ fhir:value "DiagnosticReport.issued" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.issued" ];
       fhir:ElementDefinition.short [ fhir:value "DateTime this version was made" ];
       fhir:ElementDefinition.definition [ fhir:value "The date and time that this version of the report was made available to providers, typically after the report was reviewed and verified." ];
       fhir:ElementDefinition.comment [ fhir:value "May be different from the update time of the resource itself, because that is the status of the record (potentially a secondary copy), not the actual release time of the report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Clinicians need to be able to check the date that the report was released." ];
       fhir:ElementDefinition.alias [
         fhir:value "Date published";
         fhir:index 0
       ], [
         fhir:value "Date Issued";
         fhir:index 1
       ], [
         fhir:value "Date Verified";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "instant" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.recorded" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-22" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "participation[typeCode=VRF or AUT].time" ]
       ]
     ], [
       fhir:index 10;
       fhir:Element.id [ fhir:value "DiagnosticReport.performer" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.performer" ];
       fhir:ElementDefinition.short [ fhir:value "Responsible Diagnostic Service" ];
       fhir:ElementDefinition.definition [ fhir:value "The diagnostic service that is responsible for issuing the report." ];
       fhir:ElementDefinition.comment [ fhir:value "This is not necessarily the source of the atomic data items or the entity that interpreted the results. It is the entity that takes responsibility for the clinical report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis." ];
       fhir:ElementDefinition.alias [
         fhir:value "Laboratory";
         fhir:index 0
       ], [
         fhir:value "Service";
         fhir:index 1
       ], [
         fhir:value "Practitioner";
         fhir:index 2
       ], [
         fhir:value "Department";
         fhir:index 3
       ], [
         fhir:value "Company";
         fhir:index 4
       ], [
         fhir:value "Authorized by";
         fhir:index 5
       ], [
         fhir:value "Director";
         fhir:index 6
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam";
           fhir:index 3
         ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer.actor" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.actor" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "PRT-8 (where this PRT-4-Participation = \"PO\")" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".participation[typeCode=PRF]" ]
       ]
     ], [
       fhir:index 11;
       fhir:Element.id [ fhir:value "DiagnosticReport.resultsInterpreter" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.resultsInterpreter" ];
       fhir:ElementDefinition.short [ fhir:value "Primary result interpreter" ];
       fhir:ElementDefinition.definition [ fhir:value "The practitioner or organization that is responsible for the report's conclusions and interpretations." ];
       fhir:ElementDefinition.comment [ fhir:value "Might not be the same entity that takes responsibility for the clinical report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis." ];
       fhir:ElementDefinition.alias [
         fhir:value "Analyzed by";
         fhir:index 0
       ], [
         fhir:value "Reported by";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam";
           fhir:index 3
         ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer.actor" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.actor" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBR-32, PRT-8 (where this PRT-4-Participation = \"PI\")" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".participation[typeCode=PRF]" ]
       ]
     ], [
       fhir:index 12;
       fhir:Element.id [ fhir:value "DiagnosticReport.specimen" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.specimen" ];
       fhir:ElementDefinition.short [ fhir:value "Specimens this report is based on" ];
       fhir:ElementDefinition.definition [ fhir:value "Details about the specimens on which this diagnostic report is based." ];
       fhir:ElementDefinition.comment [ fhir:value "If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to be able to report information about the collected specimens on which the report is based." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Specimen";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "SPM" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "participation[typeCode=SBJ]" ]
       ]
     ], [
       fhir:index 13;
       fhir:Element.id [ fhir:value "DiagnosticReport.result" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.result" ];
       fhir:ElementDefinition.short [ fhir:value "Observations" ];
       fhir:ElementDefinition.definition [ fhir:value "[Observations](observation.html)  that are part of this diagnostic report." ];
       fhir:ElementDefinition.comment [ fhir:value "Observations can contain observations." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to support individual results, or  groups of results, where the result grouping is arbitrary, but meaningful." ];
       fhir:ElementDefinition.alias [
         fhir:value "Data";
         fhir:index 0
       ], [
         fhir:value "Atomic Value";
         fhir:index 1
       ], [
         fhir:value "Result";
         fhir:index 2
       ], [
         fhir:value "Atomic result";
         fhir:index 3
       ], [
         fhir:value "Data";
         fhir:index 4
       ], [
         fhir:value "Test";
         fhir:index 5
       ], [
         fhir:value "Analyte";
         fhir:index 6
       ], [
         fhir:value "Battery";
         fhir:index 7
       ], [
         fhir:value "Organizer";
         fhir:index 8
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBXs" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "outboundRelationship[typeCode=COMP].target" ]
       ]
     ], [
       fhir:index 14;
       fhir:Element.id [ fhir:value "DiagnosticReport.imagingStudy" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.imagingStudy" ];
       fhir:ElementDefinition.short [ fhir:value "Reference to full details of imaging associated with the diagnostic report" ];
       fhir:ElementDefinition.definition [ fhir:value "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images." ];
       fhir:ElementDefinition.comment [ fhir:value "ImagingStudy and the image element are somewhat overlapping - typically, the list of image references in the image element will also be found in one of the imaging study resources. However, each caters to different types of displays for different types of purposes. Neither, either, or both may be provided." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/ImagingStudy";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "outboundRelationship[typeCode=COMP].target[classsCode=DGIMG, moodCode=EVN]" ]
       ]
     ], [
       fhir:index 15;
       fhir:Element.id [ fhir:value "DiagnosticReport.media" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media" ];
       fhir:ElementDefinition.short [ fhir:value "Key images associated with this report" ];
       fhir:ElementDefinition.definition [ fhir:value "A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Many diagnostic services include images in the report as part of their service." ];
       fhir:ElementDefinition.alias [
         fhir:value "DICOM";
         fhir:index 0
       ], [
         fhir:value "Slides";
         fhir:index 1
       ], [
         fhir:value "Scans";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBX?" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "outboundRelationship[typeCode=COMP].target" ]
       ]
     ], [
       fhir:index 16;
       fhir:Element.id [ fhir:value "DiagnosticReport.media.comment" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media.comment" ];
       fhir:ElementDefinition.short [ fhir:value "Comment about the image (e.g. explanation)" ];
       fhir:ElementDefinition.definition [ fhir:value "A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features." ];
       fhir:ElementDefinition.comment [ fhir:value "The comment should be displayed with the image. It would be common for the report to include additional discussion of the image contents in other sections such as the conclusion." ];
       fhir:ElementDefinition.requirements [ fhir:value "The provider of the report should make a comment about each image included in the report." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value" ]
       ]
     ], [
       fhir:index 17;
       fhir:Element.id [ fhir:value "DiagnosticReport.media.link" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.media.link" ];
       fhir:ElementDefinition.short [ fhir:value "Reference to the image source" ];
       fhir:ElementDefinition.definition [ fhir:value "Reference to the image source." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Media";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".value.reference" ]
       ]
     ], [
       fhir:index 18;
       fhir:Element.id [ fhir:value "DiagnosticReport.conclusion" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.conclusion" ];
       fhir:ElementDefinition.short [ fhir:value "Clinical conclusion (interpretation) of test results" ];
       fhir:ElementDefinition.definition [ fhir:value "Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to be able to provide a conclusion that is not lost among the basic result data." ];
       fhir:ElementDefinition.alias [
         fhir:value "Report";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBX" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "inboundRelationship[typeCode=\"SPRT\"].source[classCode=OBS, moodCode=EVN, code=LOINC:48767-8].value (type=ST)" ]
       ]
     ], [
       fhir:index 19;
       fhir:Element.id [ fhir:value "DiagnosticReport.conclusionCode" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.conclusionCode" ];
       fhir:ElementDefinition.short [ fhir:value "Codes for the clinical conclusion of test results" ];
       fhir:ElementDefinition.definition [ fhir:value "One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AdjunctDiagnosis" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "example" ];
         fhir:ElementDefinition.description [ fhir:value "SNOMED CT Clinical Findings" ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/clinical-findings" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBX" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "inboundRelationship[typeCode=SPRT].source[classCode=OBS, moodCode=EVN, code=LOINC:54531-9].value (type=CD)" ]
       ]
     ], [
       fhir:index 20;
       fhir:Element.id [ fhir:value "DiagnosticReport.presentedForm" ];
       fhir:ElementDefinition.path [ fhir:value "DiagnosticReport.presentedForm" ];
       fhir:ElementDefinition.short [ fhir:value "Entire report as issued" ];
       fhir:ElementDefinition.definition [ fhir:value "Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent." ];
       fhir:ElementDefinition.comment [ fhir:value "\"application/pdf\" is recommended as the most reliable and interoperable in this context." ];
       fhir:ElementDefinition.requirements [ fhir:value "Gives laboratory the ability to provide its own fully formatted report for clinical fidelity." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Attachment" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.map [ fhir:value "OBX" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "text (type=ED)" ]
       ]
     ]
  ] .

# -------------------------------------------------------------------------------------


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.