AU Base Implementation Guide
7.0.0-ballot1 - Ballot

AU Base Implementation Guide - Downloaded Version 7.0.0-ballot1 See the Directory of published versions

## : Endpoint - a FHIR REST API endpoint example - TTL Representation

Page standards status: Informative

Raw ttl | Download

    @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 -------------------------------------------------------------------

    <http://hl7.org/fhir/Endpoint/example1> a fhir:Endpoint ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "example1"] ;
      fhir:Resource.meta [
         fhir:Meta.profile [
           fhir:value "http://hl7.org.au/fhir/StructureDefinition/au-endpoint" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org.au/fhir/StructureDefinition/au-endpoint>
         ]
      ] ;
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "extensions" ] ;
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Endpoint example1</b></p><a name=\"example1\"> </a><a name=\"hcexample1\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-au-endpoint.html\">AU Base Endpoint</a></p></div><p><b>R5: The type of environment(s) exposed at this endpoint (new)</b>: <span title=\"Codes:{http://hl7.org/fhir/endpoint-environment prod}\">Production</span></p><p><b>identifier</b>: <code>http://downunderhospital.example.com/id/endpoint</code>/DUH-FHIR-PROD-01</p><p><b>status</b>: Active</p><p><b>connectionType</b>: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-endpoint-connection-type.html#endpoint-connection-type-hl7-fhir-rest\">Endpoint Connection Type: hl7-fhir-rest</a> (HL7 FHIR)</p><p><b>name</b>: Downunder Hospital FHIR API</p><p><b>managingOrganization</b>: <a href=\"Organization-example0.html\">Downunder Hospital</a></p><p><b>contact</b>: <a href=\"mailto:admini@downunderhospital.example.com\">admini@downunderhospital.example.com</a>, <a href=\"tel:+61255505560\">+61255505560</a></p><p><b>period</b>: 2023-07-01 --&gt; (ongoing)</p><p><b>payloadType</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/endpoint-payload-type any}\">Any</span></p><p><b>payloadMimeType</b>: application/fhir+json, application/fhir+xml</p><p><b>address</b>: <a href=\"https://fhir.downunderhospital.example.com/R4\">https://fhir.downunderhospital.example.com/R4</a></p></div>"
      ] ;
      fhir:DomainResource.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Endpoint.environmentType" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index 0 ;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/endpoint-environment" ] ;
             fhir:Coding.code [ fhir:value "prod" ] ;
             fhir:Coding.display [ fhir:value "Production" ]
           ]
         ]
      ] ;
      fhir:Endpoint.identifier [
         fhir:index 0 ;
         fhir:Identifier.system [ fhir:value "http://downunderhospital.example.com/id/endpoint" ] ;
         fhir:Identifier.value [ fhir:value "DUH-FHIR-PROD-01" ]
      ] ;
      fhir:Endpoint.status [ fhir:value "active"] ;
      fhir:Endpoint.connectionType [
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/endpoint-connection-type" ] ;
         fhir:Coding.code [ fhir:value "hl7-fhir-rest" ] ;
         fhir:Coding.display [ fhir:value "HL7 FHIR" ]
      ] ;
      fhir:Endpoint.name [ fhir:value "Downunder Hospital FHIR API"] ;
      fhir:Endpoint.managingOrganization [
         fhir:link <http://hl7.org/fhir/Organization/example0> ;
         fhir:Reference.reference [ fhir:value "Organization/example0" ] ;
         fhir:Reference.display [ fhir:value "Downunder Hospital" ]
      ] ;
      fhir:Endpoint.contact [
         fhir:index 0 ;
         fhir:ContactPoint.system [ fhir:value "email" ] ;
         fhir:ContactPoint.value [ fhir:value "admini@downunderhospital.example.com" ] ;
         fhir:ContactPoint.use [ fhir:value "work" ]
      ], [
         fhir:index 1 ;
         fhir:ContactPoint.system [ fhir:value "phone" ] ;
         fhir:ContactPoint.value [ fhir:value "+61255505560" ] ;
         fhir:ContactPoint.use [ fhir:value "work" ]
      ] ;
      fhir:Endpoint.period [
         fhir:Period.start [ fhir:value "2023-07-01"^^xsd:date ]
      ] ;
      fhir:Endpoint.payloadType [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/endpoint-payload-type" ] ;
           fhir:Coding.code [ fhir:value "any" ]
         ]
      ] ;
      fhir:Endpoint.payloadMimeType [
         fhir:value "application/fhir+json" ;
         fhir:index 0
      ], [
         fhir:value "application/fhir+xml" ;
         fhir:index 1
      ] ;
      fhir:Endpoint.address [ fhir:value "https://fhir.downunderhospital.example.com/R4"] .

    <http://hl7.org/fhir/Organization/example0> a fhir:Organization .

    # - ontology header ------------------------------------------------------------

    <http://hl7.org/fhir/Endpoint/example1.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/Endpoint/example1.ttl> .