@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/OrganizationAffiliation/example> a fhir:OrganizationAffiliation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n			<p>\n				HL7 Payer Network services for Acme Hospital from 1-Jan 2012 to 31-Mar 2012\n			</p>\n		</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://www.acme.org/practitioners"^^xsd:anyURI ;
       fhir:l <http://www.acme.org/practitioners>
     ] ;
     fhir:value [ fhir:v "23" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:period [
     fhir:start [ fhir:v "2012-01-01"^^xsd:date ] ;
     fhir:end [ fhir:v "2012-03-31"^^xsd:date ]
  ] ; # 
  fhir:organization [
     fhir:l <http://hl7.org/fhir/Organization/hl7pay> ;
     fhir:reference [ fhir:v "Organization/hl7pay" ]
  ] ; # 
  fhir:participatingOrganization [
     fhir:l <http://hl7.org/fhir/Organization/f001> ;
     fhir:reference [ fhir:v "Organization/f001" ] #   Organization that will provide services to the affiliated organization  
  ] ; # 
  fhir:network ( [
     fhir:l <http://hl7.org/fhir/Organization/hl7pay> ;
     fhir:reference [ fhir:v "Organization/hl7pay" ] ;
     fhir:display [ fhir:v "HL7 Payer Network" ]
  ] ) ; # 
  fhir:code ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/organization-role"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/organization-role>
       ] ;
       fhir:code [ fhir:v "provider" ]
     ] )
  ] ) ; #   General Practice Provider for the first 3 months of 2012  
  fhir:specialty ( [
     fhir:coding ( [
       a sct:408443003 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "408443003" ] ;
       fhir:display [ fhir:v "General medical practice" ]
     ] )
  ] ) ; # 
  fhir:location ( [
     fhir:l <http://hl7.org/fhir/Location/1> ;
     fhir:reference [ fhir:v "Location/1" ] ;
     fhir:display [ fhir:v "South Wing, second floor" ]
  ] ) ; # 
  fhir:healthcareService ( [
     fhir:l <http://hl7.org/fhir/HealthcareService/example> ;
     fhir:reference [ fhir:v "HealthcareService/example" ]
  ] ) ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "general.practice@example.org" ] ;
       fhir:use [ fhir:v "work" ]
     ] )
  ] ) ; # 
  fhir:endpoint ( [
     fhir:l <http://hl7.org/fhir/Endpoint/example> ;
     fhir:reference [ fhir:v "Endpoint/example" ] #   Endpoint that handles the v2 messaging for the network  
  ] ) . # 

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

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

<http://hl7.org/fhir/Location/1> a fhir:Location .

<http://hl7.org/fhir/HealthcareService/example> a fhir:HealthcareService .

<http://hl7.org/fhir/Endpoint/example> a fhir:Endpoint .

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

