### Web Application Launch with FHIRcast Parameters Source: http://fhircast.hl7.org/4-1-launch-scenarios.html Example of a web application launch URL extended with hub URL and hub topic query parameters to initiate a FHIRcast session. ```http GET https://app.example.com/launch.html?user=jsmith&hub.url=https%3A%2F%2Fhub.example.com&hub.topic=2e5e1b95-5c7f-4884-b19a-0b058699318b ``` -------------------------------- ### FHIRcast Get Context Response Example Source: http://fhircast.hl7.org/2-9-GetCurrentContext.html Shows a response to a get context request when the current context was established by a DiagnosticReport-open request. This response includes a specific version of the anchor context's content. ```json { "context.type": "DiagnosticReport", "context.versionId": "023fe970-a6d9-442f-a499-dfb71f1edba6", "context": [ { "key": "report", "resource": { "resourceType": "DiagnosticReport", "id": "40012366", "identifier" : [ { "use" : "official", "system" : "http://myhealthcare.example.org/reporting-system", "value" : "GH339884.RPT.0001" } ], "status": "unknown", "subject": { "reference": "Patient/ewUbXT9RWEbSj5wPEdgRaBw3" }, "imagingStudy": [ { "reference": "ImagingStudy/8i7tbu6fby5ftfbku6fniuf" } ] } }, { "key": "patient", "resource": { "resourceType": "Patient", "id": "ewUbXT9RWEbSj5wPEdgRaBw3", "identifier": [ { "system": "urn:oid:1.2.999.840.114350", "value": "185444" } ] } }, { "key": "study", "resource": { "resourceType": "ImagingStudy", "description": "CHEST XRAY", "started": "2010-01-30T23:00:00.000Z", "status": "available", "id": "8i7tbu6fby5ftfbku6fniuf", "identifier": [ { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "code": "ACSN" } ] }, "value": "342123458" }, { "system": "urn:dicom:uid", "value": "urn:oid:2.999.16.124.113543.6003.1154777499.38476.11982.4847614254" } ], "subject": { "reference": "Patient/ewUbXT9RWEbSj5wPEdgRaBw3" } } }, { "key": "content", "resource": { "resourceType": "Bundle", "id": "8i7tbu6fby5fuuey7133eh", "type": "collection", "entry": [ { "resource": { "resourceType": "Observation", "id": "435098234", "identifier": [ { "system":"http://hospital.example.org", "value":"7611ffcd-f242-4738-b451-31995b660b90" } ] "partOf": { "reference": "ImagingStudy/8i7tbu6fby5ftfbku6fniuf" }, "status": "preliminary", "subject": { "reference": "Patient/ewUbXT9RWEbSj5wPEdgRaBw3" }, "category": { "system": "http://terminology.hl7.org/CodeSystem/observation-category", "code": "imaging", "display": "Imaging" }, "code": { "coding": [ { "system": "http://www.radlex.org", "code": "RID49690", "display": "simple cyst" } ] }, "issued": "2020-09-07T15:02:03.651Z" } } ] } } ] } ``` -------------------------------- ### FHIRcast Get Current Content Bundle Example (TTL) Source: http://fhircast.hl7.org/Bundle-8i7tbu6fby5fuuey7133eh.ttl.html This snippet shows the TTL representation of a FHIRcast bundle used to retrieve current content. It includes a bundle of type 'collection' and an example Observation resource. ```ttl @prefix fhir: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix xsd: . # - resource ------------------------------------------------------------------- a fhir:Bundle ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "8i7tbu6fby5fuuey7133eh"] ; fhir:meta [ ( fhir:profile [ fhir:v "http://fhircast.hl7.org/StructureDefinition/fhircast-get-current-content-bundle"^^xsd:anyURI ; fhir:link ] ) ] ; fhir:type [ fhir:v "collection"] ; fhir:entry ( [ fhir:fullUrl [ fhir:v "urn:Observation/435098234"^^xsd:anyURI ] ; ( fhir:resource ) ] ) . a fhir:Observation ; fhir:id [ fhir:v "435098234"] ; fhir:text [ fhir:status [ fhir:v "generated" ] ; fhir:div "

Generated Narrative: Observation 435098234

partOf: ImagingStudy: status = available

status: Preliminary

category: Imaging

code: simple cyst

subject: Anonymous Patient (no stated gender), DoB Unknown

effective: 2020-09-07 15:02:03+0000

issued: 2020-09-07 15:02:03+0000

performer: Practitioner

"^^rdf:XMLLiteral ] ; fhir:partOf ( [ fhir:reference [ fhir:v "ImagingStudy/8i7tbu6fby5ftfbku6fniuf" ] ] ) ; fhir:status [ fhir:v "preliminary"] ; fhir:category ( [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ] ; fhir:code [ fhir:v "imaging" ] ; fhir:display [ fhir:v "Imaging" ] ] ) ] ) ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://radlex.org"^^xsd:anyURI ] ; fhir:code [ fhir:v "RID49690" ] ; fhir:display [ fhir:v "simple cyst" ] ] ) ] ; fhir:subject [ fhir:reference [ fhir:v "Patient/19762ea6-4920-47a2-bf52-4027cb7adf92" ] ] ; fhir:effective [ a fhir:dateTime ; fhir:v "2020-09-07T15:02:03.651Z"^^xsd:dateTime ] ; fhir:issued [ fhir:v "2020-09-07T15:02:03.651Z"^^xsd:dateTime] ; fhir:performer ( [ fhir:reference [ fhir:v "Practitioner/d2bb499c-3021-4c20-a97b-e62469e9e5f5" ] ] ) . ``` -------------------------------- ### SMART on FHIR Launch Parameters Source: http://fhircast.hl7.org/4-1-launch-scenarios.html Example of launch parameters provided to an application in a SMART on FHIR token response. Includes hub URL and topic for FHIRcast session. ```json { "access_token": "i8hweunweunweofiwweoijewiwe", "token_type": "bearer", "patient": "123", "expires_in": 3600, "encounter": "456", "imagingstudy": "789", "hub.url" : "https://hub.example.com", "hub.topic": "fdb2f928-5546-4f52-87a0-0648e9ded065" } ``` -------------------------------- ### FHIRcast Get Current Content Bundle Example Source: http://fhircast.hl7.org/Bundle-8i7tbu6fby5fuuey7133eh.json.html This JSON represents a FHIRcast Bundle used to retrieve the current content. It includes a collection type and an entry for an Observation resource. ```json { "resourceType" : "Bundle", "id" : "8i7tbu6fby5fuuey7133eh", "meta" : { "profile" : [ "http://fhircast.hl7.org/StructureDefinition/fhircast-get-current-content-bundle" ] }, "type" : "collection", "entry" : [ { "fullUrl" : "urn:Observation/435098234", "resource" : { "resourceType" : "Observation", "id" : "435098234", "text" : { "status" : "generated", "div" : "

Generated Narrative: Observation 435098234

partOf: ImagingStudy: status = available

status: Preliminary

category: Imaging

code: simple cyst

subject: Anonymous Patient (no stated gender), DoB Unknown

effective: 2020-09-07 15:02:03+0000

issued: 2020-09-07 15:02:03+0000

performer: Practitioner

" }, "partOf" : [ { "reference" : "ImagingStudy/8i7tbu6fby5ftfbku6fniuf" } ], "status" : "preliminary", "category" : [ { "coding" : [ { "system" : "http://terminology.hl7.org/CodeSystem/observation-category", "code" : "imaging", "display" : "Imaging" } ] } ], "code" : { "coding" : [ { "system" : "http://radlex.org", "code" : "RID49690", "display" : "simple cyst" } ] }, "subject" : { "reference" : "Patient/19762ea6-4920-47a2-bf52-4027cb7adf92" }, "effectiveDateTime" : "2020-09-07T15:02:03.651Z", "issued" : "2020-09-07T15:02:03.651Z", "performer" : [ { "reference" : "Practitioner/d2bb499c-3021-4c20-a97b-e62469e9e5f5" } ] } } ] } ```