@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/smart-app-launch/Bundle/example4> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example4"] ; # 
  fhir:type [ fhir:v "collection"] ; # 
  fhir:timestamp [ fhir:v "2023-09-05T20:36:42.268403-07:00"^^xsd:dateTime] ; # 
  fhir:entry ( [
     fhir:fullUrl [ fhir:v "https://ehr.example.org/Organization/brand1"^^xsd:anyURI ] ;
     fhir:resource ( <https://ehr.example.org/Organization/brand1> )
  ] [
     fhir:fullUrl [ fhir:v "https://ehr.example.org/Organization/brand2"^^xsd:anyURI ] ;
     fhir:resource ( <https://ehr.example.org/Organization/brand2> )
  ] [
     fhir:fullUrl [ fhir:v "https://ehr.example.org/Endpoint/coequal-example"^^xsd:anyURI ] ;
     fhir:resource ( <https://ehr.example.org/Endpoint/coequal-example> )
  ] ) . # 

<https://ehr.example.org/Organization/brand1> a fhir:Organization ;
  fhir:id [ fhir:v "brand1"] ; # 
  fhir:extension ( [
     fhir:extension ( [
       fhir:url [ fhir:v "brandLogo"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "https://example.org/brand1/logo/main.svg"^^xsd:anyURI ]
     ] ) ;
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/organization-brand"^^xsd:anyURI ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "portalName"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "Brand1 Portal" ]
     ] [
       fhir:url [ fhir:v "portalUrl"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "https://example.org/chart.brand1.org"^^xsd:anyURI ]
     ] [
       fhir:url [ fhir:v "portalEndpoint"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:Reference ;
         fhir:link <http://hl7.org/fhir/smart-app-launch/Endpoint/coequal-example> ;
         fhir:reference [ fhir:v "Endpoint/coequal-example" ] ;
         fhir:display [ fhir:v "FHIR R4 Endpoint for Brand1/Brand2" ]
       ]
     ] ) ;
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/organization-portal"^^xsd:anyURI ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "https://brand1.example.com" ]
  ] ) ; # 
  fhir:active [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:type ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/organization-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "ins" ] ;
       fhir:display [ fhir:v "Insurance Company" ]
     ] )
  ] ) ; # 
  fhir:name [ fhir:v "Brand1"] ; # 
  fhir:alias ( [ fhir:v "Umbrella Insurance"] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "url" ] ;
     fhir:value [ fhir:v "https://www.brand1.example.com" ]
  ] ) ; # 
  fhir:address ( [
     fhir:city [ fhir:v "Napa" ] ;
     fhir:state [ fhir:v "CA" ] ;
     fhir:country [ fhir:v "US" ]
  ] [
     fhir:city [ fhir:v "Sonoma" ] ;
     fhir:state [ fhir:v "CA" ] ;
     fhir:country [ fhir:v "US" ]
  ] [
     fhir:city [ fhir:v "St Helena" ] ;
     fhir:state [ fhir:v "CA" ] ;
     fhir:country [ fhir:v "US" ]
  ] ) ; # 
  fhir:endpoint ( [
     fhir:link <http://hl7.org/fhir/smart-app-launch/Endpoint/coequal-example> ;
     fhir:reference [ fhir:v "Endpoint/coequal-example" ] ;
     fhir:display [ fhir:v "FHIR R4 Endpoint for Brand1/Brand2" ]
  ] ) . # 

<http://hl7.org/fhir/smart-app-launch/Endpoint/coequal-example> a fhir:smart-app-launch .

<https://ehr.example.org/Organization/brand2> a fhir:Organization ;
  fhir:id [ fhir:v "brand2"] ; # 
  fhir:extension ( [
     fhir:extension ( [
       fhir:url [ fhir:v "brandLogo"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "https://example.org/brand2/logo/main.svg"^^xsd:anyURI ]
     ] ) ;
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/organization-brand"^^xsd:anyURI ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "portalName"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "Brand2 Portal" ]
     ] [
       fhir:url [ fhir:v "portalUrl"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "https://example.org/chart.brand2.org"^^xsd:anyURI ]
     ] [
       fhir:url [ fhir:v "portalEndpoint"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:Reference ;
         fhir:link <http://hl7.org/fhir/smart-app-launch/Endpoint/coequal-example> ;
         fhir:reference [ fhir:v "Endpoint/coequal-example" ] ;
         fhir:display [ fhir:v "FHIR R4 Endpoint for Brand1/Brand2" ]
       ]
     ] ) ;
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/organization-portal"^^xsd:anyURI ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "https://brand2.example.com" ]
  ] ) ; # 
  fhir:active [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:type ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/organization-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "ins" ] ;
       fhir:display [ fhir:v "Insurance Company" ]
     ] )
  ] ) ; # 
  fhir:name [ fhir:v "Brand2"] ; # 
  fhir:alias ( [ fhir:v "Shield Insurance"] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "url" ] ;
     fhir:value [ fhir:v "https://www.brand1.example.com" ]
  ] ) ; # 
  fhir:address ( [
     fhir:city [ fhir:v "Sonoma" ] ;
     fhir:state [ fhir:v "CA" ] ;
     fhir:country [ fhir:v "US" ]
  ] [
     fhir:city [ fhir:v "San Rafael" ] ;
     fhir:state [ fhir:v "CA" ] ;
     fhir:country [ fhir:v "US" ]
  ] [
     fhir:city [ fhir:v "Santa Rosa" ] ;
     fhir:state [ fhir:v "CA" ] ;
     fhir:country [ fhir:v "US" ]
  ] ) ; # 
  fhir:endpoint ( [
     fhir:link <http://hl7.org/fhir/smart-app-launch/Endpoint/coequal-example> ;
     fhir:reference [ fhir:v "Endpoint/coequal-example" ] ;
     fhir:display [ fhir:v "FHIR R4 Endpoint for Brand1/Brand2" ]
  ] ) . # 

<https://ehr.example.org/Endpoint/coequal-example> a fhir:Endpoint ;
  fhir:id [ fhir:v "coequal-example"] ; # 
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/endpoint-fhir-version"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "4.0.1" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:connectionType [
     fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/endpoint-connection-type"^^xsd:anyURI ] ;
     fhir:code [ fhir:v "hl7-fhir-rest" ]
  ] ; # 
  fhir:name [ fhir:v "FHIR R4 Endpoint for Brand1/Brand2"] ; # 
  fhir:contact ( [
     fhir:system [ fhir:v "url" ] ;
     fhir:value [ fhir:v "https://open.ehr.com" ]
  ] ) ; # 
  fhir:payloadType ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/endpoint-payload-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "none" ]
     ] )
  ] ) ; # 
  fhir:address [ fhir:v "https://example.org/brand1.org/ProdFHIR/api/FHIR/R4"^^xsd:anyURI] . # 

# -------------------------------------------------------------------------------------

