This page is part of the FHIR Specification (v0.0.82: DSTU 1). 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: R4B R4 R3 R2

6.2.4 Resource Media - Examples

Example Index:

Simple photoXMLJSON
Example Ultrasound ImageXMLJSON

6.2.4.1 Plain Photo

XML

Simple photo (id = "example")

Raw XML

<Media xmlns="http://hl7.org/fhir">

  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">Diagram for Patient Henry Levin (MRN 12345):<br/><img alt="diagram" src="#11"/></div>
  </text>

  <type value="photo"/>
  
  <subtype>
    <coding>
      <system value="http://hl7.org/fhir/media-method"/>
      <code value="diagram"/>
    </coding>
  </subtype>

  <!--   the date this image was created   -->
  <dateTime value="2009-09-03"/>

  <subject>
    <reference value="Patient/xcda"/>
  </subject>
 
  <deviceName value="Acme Camera"/>
  <height value="145"/>
  <width value="126"/>
  
  <content id="a1">
    <contentType value="image/gif"/>
    <data value="R0lGODlhfgCRAPcAAAAAAIAAAACAAICAAAAAgIAA    gACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD///// 
       /wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA    /wAzAAAzMwAzZgAzmQAzzAAz/wBmAABmMwBmZgBm
        mQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADM    MwDMZgDMmQDMzADM/wD/AAD/MwD/ZgD/mQD/zAD/
        /zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMz    mTMzzDMz/zNmADNmMzNmZjNmmTNmzDNm/zOZADOZ
        MzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM    /zP/ADP/MzP/ZjP/mTP/zDP//2YAAGYAM2YAZmYA
        mWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZm    M2ZmZmZmmWZmzGZm/2aZAGaZM2aZZmaZmWaZzGaZ
        /2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/    mWb/zGb//5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkz
        M5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm    /5mZAJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnM
        mZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA    M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz
        /8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZZsyZ    mcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/
        M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8Amf8AzP8A    //8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9m
        mf9mzP9m//+ZAP+ZM/+ZZv+Zmf+ZzP+Z///MAP/M    M//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP//
        /yH5BAEAABAALAAAAAB+AJEAQAj/AP8JHEiwoMGD    CBMqXMiwocOHECNKnEixosWLGFHAckaN2jRnsKZh
        HEmy5EMU0+L5EseNG654KEzKnGkShbN4uFq2xOWR    ps+fE5nEy6Wz5a+XQJMqTeisGdGiLuNRi7m0qlJn
        06iF7LhxKoqvX2FpnRYSq1eBX62qRYhCKzWzZDeK    3bqR7NSsb99uddZ2r1ZnINuanbrWp82tb8ly/Bjy
        a1aOKOu+5ZgXZFa7sARzBMl5a9rCJDl29ejxMuDK    eb3mJYsSa93GIOW61QgWbEjQGStbrru7o2K3dkXj
        BUz242WUbj0u9vj1b2KquCn27Rq7I1+9nBkn7gyS    K/HBnFd3/y8bUizf6CM76s0qduxp0pvN23UrOnF7
        zB7nWiaMXuZhvGJNoxhjpr3G3WMfJfdbgtD1p1Rb    xgkHX3uUbeYbdli5dp6DHHbo4YcghijiiCSWeJJG
        rJloIkoqPeXLNA2q+GFHm+yUSzzxiCQjiG3hVFQu    N+74IQry4JSTTjfCImSHyE1TyS9I+iJPZkv21ySE
        +bE31VTjhZfZfhm2V+VJXLH3WH70MfZVeKfF9Z1i    nv3mXldjEiTYmX9tpVhkXrW1JpfX6bVdnosh19xG
        INVpk3JydafYZjC6RhqMNlHa11u0aQbjl/mVJaB1    McrY16eSSeYle2AmqGp5wIl1KVxj+f8WIDV1/iOY
        Vote5lt4eZUn6WsI+kZgp6iVxV+tAs064aqUebdr    aW55GqZ2AiIWKrIHQahfo3bBeaZ5zq1q17XYMoQl
        eQt+Jxt56jXrarnwxivvvPTWa++9TJYlGrn4+kdN    PJv4kksz92zY709ExqPJkbncw+/BI9mEDy4Mx+MM
        xD/9+xQ3m+RIK8Yz2STPkS11s8nFIMvEhDw1FoVL    xynLdI9KR+bUMMoxR+yML1BxIyWMOY+0kTxQuizV
        w0E3hOJjBTe9UYO1fZZ0Qlga59hYvgLX3W7GWo20    vLWV5uqjlHZUaVcDbukuZVTe29poqNYnZ2ZzrdbV
        0hRmdZh9dX3/raKv5MknG19YVojmVPIJmtlwhBpX    bq4V6trd1VhV6t5jfM6XWWVzaRmZ3yO+3WaAi3XG
        FZfP2vRnYogLp+tec4Ee4qLZ3dfV3XXpHanZMHJV    d6WsucprXJiOyaZ+iaH60aJ1JxirRoCF5Wdmfnql
        J9uUVdma1m7CvTe74mHWLSyNgft6nmaDNSZy5o1m    HvPWadW+aN9luVxglpnVeXF6Kxr/88MhX3wcJZsB
        uS81uDpc+5KDM0VBr3SlAQx1LBSSy1AHT2iSS1u2    E6DYwUtbGTQOacj3mPGg6TeSEZBrWAUnyMzrbVk6
        XVyKsxgCwW0/62GMhVKErw12S1D5S0185RQnn8XQ    xYUx45NyNOe87gCRPubZj+xeaB+smIl+yllirCho
        xKmhxExoK1Cv0BSftAVmamhMoxrXyMY2uvGNcIyj    HOeoxkXBh44OOZdn8Ggu+DiPjwtJ2CZyUomCTRGO
        KJFHLljiEnkc8o0Sy0U3WpILoAGSLf9qmc86ckmE    /MtHOfEFVjp5EGfc40jieAlgSFmQL27sF/GQx8dY
        iRaP8EwnL9ERLW1lS5L5whfxyMcubaWworVEHIX0    xzBRcI9NMBJJ9xgmMTW5E19QQ5m0tAlOjOkzeeiS
        lcwcJFSAeSxSomRjuDT/2y6ncQ9fkMwozMkmVhRW    lFTGk5T5sAlgaCawjjWjnJcEYoYWRJU/CUdqbQSX
        bNYEGRQZjj630qAXO7MmRJ3pOq65DOOiBaqghaVy    a4sUcrKYn+ugay+PXFJzgiOesGWISx3sFfRoaEHC
        qY9ePmzUpCoTnN5JyobF8lx9zJJSEZlqWNK6D0ar    taDWsY4zOV2NVj5olq2VVIvCQ1GsjKURBSnnbCJk
        FbzihxdSqYc1MAyhZZBDPwZ1sKygKiqTHsOqPGFO    L8JrX7cgxBmiYk2LagKo9uQ3LKv2zjGcMlbsVLUv
        I2YRUf+Z5fq2GqzRqO04Z2POlyo4m7KGB3oXsmSd    /2Llps7Mh6mVK84FtQW9qllnccLJkFythBgUyo2F
        AlzTgMIyqECVDkZltSgSB6unZ8Vwc9jZHKUIJ8Ll    8YkvkmLUa3koJPaFdoGeK2Ln9KI6S4GFVMsDV31e
        M1vQqPZT+uMpcJYY2/V89y9+0tuoKuqp8mhvfKnx    7NNI95fiCIpx1Nmchrj1VbaWtzAOdSLr6MLX+5VH
        Px+BVIVQdLuXKk8v2pMg69wzFodez0x/Fa+37tQ4    CcbnwAge6Icbg9Ww6gpAALLrXer20mKhuDDGoWlg
        /Aveq8InizQsjwq7GkQEEVVRsWHQYYIYQ+cFK00G    4o1webxWZEEIsVAEznmH6N1Y4eiUNJaLaRex9UVf
        wWlSJCRhr+AiZElZsYZoi5xg12eqp3buNEJm3LRQ    BcTeSZUx8/pLdk53w9p6CYKE/p+J83NjJuUPeemq
        71bbqrjTkTEvjfaQDyFFnXbJr1lshqIKnaja4uHr    tWEa4beqRZpJpXcvy3kaxhxD6U/NqaQ0xCr6jJhp
        FUlYPVl01HrsI8JYPSdpoCXhEG2YUVzrqT2mzpkS    KVRAG955u3SJdhITZ766KosyNjQOnZAt6F3d7oQJ
        +inaJNPrHUXt3fCOt7ylSe962/ve+M63vvkYEAA7"/>
  </content>
</Media>

JSON

Simple photo

{
  "resourceType": "Media",
  "text": {
    "status": "generated",
    "div": "<div>Diagram for Patient Henry Levin (MRN 12345):<br/><img alt=\"diagram\" src=\"#11\"/></div>"
  },
  "type": "photo",
  "subtype": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/media-method",
        "code": "diagram"
      }
    ]
  },
  "dateTime": "2009-09-03",
  "subject": {
    "reference": "Patient/xcda"
  },
  "deviceName": "Acme Camera",
  "height": 145,
  "width": 126,
  "content": {
    "id": "a1",
    "contentType": "image/gif",
    "data": "R0lGODlhfgCRAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD//////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBmAABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNmZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZmzGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb//5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5l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Vya4sUcrKYn+ugay+PXFJzgiOesGWISx3sFfRoaEHCqY9ePmzUpCoTnN5JyobF8lx9zJJSEZlqWNK6D0artaDWsY4zOV2NVj5olq2VVIvCQ1GsjKURBSnnbCJkFbzihxdSqYc1MAyhZZBDPwZ1sKygKiqTHsOqPGFOL8JrX7cgxBmiYk2LagKo9uQ3LKv2zjGcMlbsVLUvI2YRUf+Z5fq2GqzRqO04Z2POlyo4m7KGB3oXsmSd/2Llps7Mh6mVK84FtQW9qllnccLJkFythBgUyo2FAlzTgMIyqECVDkZltSgSB6unZ8Vwc9jZHKUIJ8Ll8YkvkmLUa3koJPaFdoGeK2Ln9KI6S4GFVMsDV31eM1vQqPZT+uMpcJYY2/V89y9+0tuoKuqp8mhvfKnx7NNI95fiCIpx1Nmchrj1VbaWtzAOdSLr6MLX+5VHPx+BVIVQdLuXKk8v2pMg69wzFodez0x/Fa+37tQ4CcbnwAge6Icbg9Ww6gpAALLrXer20mKhuDDGoWlg/Aveq8InizQsjwq7GkQEEVVRsWHQYYIYQ+cFK00G4o1webxWZEEIsVAEznmH6N1Y4eiUNJaLaRex9UVfwWlSJCRhr+AiZElZsYZoi5xg12eqp3buNEJm3LRQBcTeSZUx8/pLdk53w9p6CYKE/p+J83NjJuUPeemq71bbqrjTkTEvjfaQDyFFnXbJr1lshqIKnaja4uHrtWEa4beqRZpJpXcvy3kaxhxD6U/NqaQ0xCr6jJhpFUlYPVl01HrsI8JYPSdpoCXhEG2YUVzrqT2mzpkSKVRAG955u3SJdhITZ766KosyNjQOnZAt6F3d7oQJ+inaJNPrHUXt3fCOt7ylSe962/ve+M63vvkYEAA7"
  }
}

6.2.4.2 Ultrasound

XML

Example Ultrasound Image (id = "1.2.840.11361907579238403408700.3.0.14.19970327150033")

Raw XML

<Media xmlns="http://hl7.org/fhir">
  <!--   
    this is added to demonstrate the use of extensions.
    0002,0010 is the DICOM transfer syntax of the referenced image
     -->
  <extension url="http://nema.org/fhir/extensions#0002-0010">
    <valueUri value="urn:oid:1.2.840.10008.1.2.1"/>
  </extension>  

  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      Ultrasound Image on patient &quot;James Chalmers&quot;:<br/>
      <img alt="WADO reference to image" src="http://imaging.acme.com/wado/server?requestType=WADO&amp;contentType=application%2Fdicom&amp;studyUi
      d=1.2.840.113619.2.21.848.34082.0.538976288.3&amp;seriesUid=1.2.840.113619.2.21.3408.700.0.757923840.
      3.0&amp;objectUid=1.2.840.11361907579238403408700.3.0.14.19970327150033"/>
        
    </div>
  </text>

  <type value="photo"/>

  <subtype>
    <coding>
      <system value="http://nema.org/dicom/dcid"/>
      <code value="US"/>
    </coding>
  </subtype>

  <identifier>
    <use value="official"/>
    <label value="InstanceUID"/>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:1.2.840.11361907579238403408700.3.0.14.19970327150033"/>
  </identifier> 
  <identifier>
    <label value="accessionNo"/>
    <!--   the imaging department accession number. (they recycle numbers each year)   -->    
    <system value="http://acme-imaging.com/accession/2012"/>
    <value value="1234567"/>
 </identifier>
  <identifier>
    <label value="studyId"/>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:1.2.840.113619.2.21.848.34082.0.538976288.3"/>
  </identifier>
  <identifier>
    <label value="seriesId"/>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:1.2.840.113619.2.21.3408.700.0.757923840.3.0"/>
  </identifier>  

  <subject>
    <reference value="Patient/example"/>
  </subject>
 
  <deviceName value="G.E. Medical Systems"/>
  <height value="480"/>
  <width value="640"/>
  
  <!--   and a reference to the image data   -->
  <content>
    <contentType value="application/dicom"/>
    <!--   The actual image could be anywhere. This is a WADO example   -->
    <url value="http://imaging.acme.com/wado/server?requestType=WADO&amp;contentType=application%2Fdicom&amp;studyUi
    d=1.2.840.113619.2.21.848.34082.0.538976288.3&amp;seriesUid=1.2.840.113619.2.21.3408.700.0.757923840.
    3.0&amp;objectUid=1.2.840.11361907579238403408700.3.0.14.19970327150033"/>
  </content>

</Media>

JSON

Example Ultrasound Image

{
  "resourceType": "Media",
  "extension": [
    {
      "url": "http://nema.org/fhir/extensions#0002-0010",
      "valueUri": "urn:oid:1.2.840.10008.1.2.1"
    }
  ],
  "text": {
    "status": "generated",
    "div": "<div>\n      Ultrasound Image on patient &quot;James Chalmers&quot;:<br/>\n      <img alt=\"WADO reference to image\" src=\"http://imaging.acme.com/wado/server?requestType=WADO&amp;contentType=application%2Fdicom&amp;studyUid=1.2.840.113619.2.21.848.34082.0.538976288.3&amp;seriesUid=1.2.840.113619.2.21.3408.700.0.757923840.3.0&amp;objectUid=1.2.840.11361907579238403408700.3.0.14.19970327150033\"/>\n        \n    </div>"
  },
  "type": "photo",
  "subtype": {
    "coding": [
      {
        "system": "http://nema.org/dicom/dcid",
        "code": "US"
      }
    ]
  },
  "identifier": [
    {
      "use": "official",
      "label": "InstanceUID",
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:1.2.840.11361907579238403408700.3.0.14.19970327150033"
    },
    {
      "label": "accessionNo",
      "system": "http://acme-imaging.com/accession/2012",
      "value": "1234567"
    },
    {
      "label": "studyId",
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:1.2.840.113619.2.21.848.34082.0.538976288.3"
    },
    {
      "label": "seriesId",
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:1.2.840.113619.2.21.3408.700.0.757923840.3.0"
    }
  ],
  "subject": {
    "reference": "Patient/example"
  },
  "deviceName": "G.E. Medical Systems",
  "height": 480,
  "width": 640,
  "content": {
    "contentType": "application/dicom",
    "url": "http://imaging.acme.com/wado/server?requestType=WADO&contentType=application%2Fdicom&studyUid=1.2.840.113619.2.21.848.34082.0.538976288.3&seriesUid=1.2.840.113619.2.21.3408.700.0.757923840.3.0&objectUid=1.2.840.11361907579238403408700.3.0.14.19970327150033"
  }
}

comments powered by Disqus