Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example CapabilityStatement/phr (Turtle)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

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

PHR Example

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

[a fhir:CapabilityStatement ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "phr"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n     \n      \n      <p>Prototype Capability Statement for September 2013 Connectathon</p>\n     \n      \n      <p>The server offers read and search support on the following resource types:</p>\n     \n      \n      <ul>\n      \n        \n        <li>Patient</li>\n      \n        \n        <li>DocumentReference</li>\n      \n        \n        <li>Condition</li>\n      \n        \n        <li>DiagnosticReport</li>\n    \n      \n      </ul>\n    \n    \n    </div>"
  ] ; # 
  fhir:name [ fhir:v "PHRTemplate"] ; # 
  fhir:title [ fhir:v "PHR Template"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2013-06-18"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "FHIR Project"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Prototype Capability Statement for September 2013 Connectathon"] ; # 
  fhir:kind [ fhir:v "capability"] ; # 
  fhir:software [
     fhir:name [ fhir:v "ACME PHR Server" ]
  ] ; # 
  fhir:fhirVersion [ fhir:v "5.0.0"] ; # 
  fhir:format ( [ fhir:v "json"] [ fhir:v "xml"] ) ; # 
  fhir:rest ( [
     fhir:mode [ fhir:v "server" ] ;
     fhir:documentation [ fhir:v "Protoype server Capability Statement for September 2013 Connectathon" ] ;
     fhir:security [
       fhir:service ( [
         fhir:text [ fhir:v "OAuth" ]
       ] ) ;
       fhir:description [ fhir:v "We recommend that PHR servers use standard OAuth using a          standard 3rd party provider. We are not testing the ability to provide an          OAuth authentication/authorization service itself, and nor is providing          any security required for the connectathon at all" ]
     ] ;
     fhir:resource ( [
       fhir:type [ fhir:v "Patient" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ] ;
         fhir:documentation [ fhir:v "When a client searches patients with no search criteria, they get a list of all patients they have access too. Servers may elect to offer additional search parameters, but this is not required" ]
       ] )
     ] [
       fhir:type [ fhir:v "DocumentReference" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ] ;
         fhir:documentation [ fhir:v "_id parameter always supported. For the connectathon, servers may elect which search parameters are supported" ]
       ] )
     ] [
       fhir:type [ fhir:v "Condition" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ] ;
         fhir:documentation [ fhir:v "Standard _id parameter" ]
       ] )
     ] [
       fhir:type [ fhir:v "DiagnosticReport" ] ;
       fhir:interaction ( [
         fhir:code [ fhir:v "read" ]
       ] [
         fhir:code [ fhir:v "search-type" ]
       ] ) ;
       fhir:searchParam ( [
         fhir:name [ fhir:v "_id" ] ;
         fhir:type [ fhir:v "token" ] ;
         fhir:documentation [ fhir:v "Standard _id parameter" ]
       ] [
         fhir:name [ fhir:v "service" ] ;
         fhir:type [ fhir:v "token" ] ;
         fhir:documentation [ fhir:v "which diagnostic discipline/department created the report" ]
       ] )
     ] )
  ] )] . # 

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


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.