@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 -------------------------------------------------------------------

<https://fhir.ee/mpi/Bundle/patient-occupation-example> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "patient-occupation-example"] ; # 
  fhir:type [ fhir:v "collection"] ; # 
  fhir:entry ( [
     fhir:fullUrl [ fhir:v "https://fhir.ee/mpi/Observation/occupation-example-1"^^xsd:anyURI ] ;
     fhir:resource ( <https://fhir.ee/mpi/Observation/occupation-example-1> )
  ] [
     fhir:fullUrl [ fhir:v "https://fhir.ee/mpi/Observation/occupation-example-2"^^xsd:anyURI ] ;
     fhir:resource ( <https://fhir.ee/mpi/Observation/occupation-example-2> )
  ] ) . # 

<https://fhir.ee/mpi/Observation/occupation-example-1> a fhir:Observation ;
  fhir:id [ fhir:v "occupation-example-1"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-occupation"^^xsd:anyURI ;
       fhir:link <https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-occupation>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_occupation-example-1\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation occupation-example-1</b></p><a name=\"occupation-example-1\"> </a><a name=\"hcoccupation-example-1\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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-ee-mpi-socialhistory-occupation.html\">EE MPI SocialHistory Occupation</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category social-history}\">Social history</span></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 184104002}\">Patient occupation</span></p><p><b>subject</b>: <a href=\"Patient-pat1.html\">Indrek Bambus (official) Male, DoB: 1973-02-10 ( https://fhir.ee/sid/pid/est/ni#37302102711)</a></p><p><b>effective</b>: 2024-02-29 00:00:00+0200 --&gt; 2027-02-27 00:00:00+0200</p><p><b>issued</b>: 2026-03-17 10:40:54+0200</p><p><b>performer</b>: <a href=\"#hcoccupation-example-1/employer1\">CGI EESTI AS (https://fhir.ee/sid/org/est/br#10006966)</a></p><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 160922003}\">Job details</span></p><p><b>value</b>: <span title=\"Codes:{https://fhir.ee/CodeSystem/ametite-klassifikaator 22122501}\">Paediatrician</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 224374003}\">Regularity of work</span></p><p><b>value</b>: 0.75 1<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code1 = '1')</span></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Organization #employer1</b></p><a name=\"occupation-example-1/employer1\"> </a><a name=\"hcoccupation-example-1/employer1\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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=\"https://fhir.ee/packages/ee-base/1.3.0/site/StructureDefinition-ee-organization.html\">EEBase Organization</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">CGI EESTI AS (https://fhir.ee/sid/org/est/br#10006966)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Record is active\">Active:</td><td colspan=\"3\">true</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the organization\">Contact Detail</td><td colspan=\"3\"><ul><li>Tartu maakond, Tartu linn, Tartu linn, Pikk tn 2(work)</li></ul></td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
     a fhir:Organization ;
     fhir:id [ fhir:v "employer1" ] ;
     fhir:meta [
       fhir:profile ( [
         fhir:v "https://fhir.ee/base/StructureDefinition/ee-organization"^^xsd:anyURI ;
         fhir:link <https://fhir.ee/base/StructureDefinition/ee-organization>
       ] )
     ] ;
     fhir:identifier ( [
       fhir:system [ fhir:v "https://fhir.ee/sid/org/est/br"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "10006966" ]
     ] ) ;
     fhir:active [ fhir:v true ] ;
     fhir:name [ fhir:v "CGI EESTI AS" ] ;
     fhir:contact ( [
       fhir:address [
         fhir:use [ fhir:v "work" ] ;
         fhir:text [ fhir:v "Tartu maakond, Tartu linn, Tartu linn, Pikk tn 2" ] ;
         fhir:line ( [ fhir:v "Pikk tn 2" ] ) ;
         fhir:city [ fhir:v "Tartu linn" ] ;
         fhir:state [ fhir:v "Tartu maakond" ] ;
         fhir:postalCode [ fhir:v "51009" ] ;
         fhir:country [ fhir:v "EE" ]
       ]
     ] )
  ] ) ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "social-history" ] ;
       fhir:display [ fhir:v "Social history" ]
     ] )
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       a sct:184104002 ;
       fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "184104002" ] ;
       fhir:display [ fhir:v "Patient occupation" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:link <https://fhir.ee/mpi/Patient/pat1> ;
     fhir:reference [ fhir:v "Patient/pat1" ]
  ] ; # 
  fhir:effective [
     a fhir:Period ;
     fhir:start [ fhir:v "2024-02-29T00:00:00+02:00"^^xsd:dateTime ] ;
     fhir:end [ fhir:v "2027-02-27T00:00:00+02:00"^^xsd:dateTime ]
  ] ; # 
  fhir:issued [ fhir:v "2026-03-17T10:40:54.408+02:00"^^xsd:dateTime] ; # 
  fhir:performer ( [
     fhir:reference [ fhir:v "#employer1" ]
  ] ) ; # 
  fhir:component ( [
     fhir:code [
       fhir:coding ( [
         a sct:160922003 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "160922003" ] ;
         fhir:display [ fhir:v "Job details" ]
       ] )
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [ fhir:v "https://fhir.ee/CodeSystem/ametite-klassifikaator"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "22122501" ] ;
         fhir:display [ fhir:v "Paediatrician" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a sct:224374003 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "224374003" ] ;
         fhir:display [ fhir:v "Regularity of work" ]
       ] )
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v 0.75 ] ;
       fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "1" ]
     ]
  ] ) . # 

<https://fhir.ee/mpi/Observation/occupation-example-2> a fhir:Observation ;
  fhir:id [ fhir:v "occupation-example-2"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-occupation"^^xsd:anyURI ;
       fhir:link <https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-occupation>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_occupation-example-2\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation occupation-example-2</b></p><a name=\"occupation-example-2\"> </a><a name=\"hcoccupation-example-2\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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-ee-mpi-socialhistory-occupation.html\">EE MPI SocialHistory Occupation</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category social-history}\">Social history</span></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 184104002}\">Patient occupation</span></p><p><b>subject</b>: <a href=\"Patient-pat1.html\">Indrek Bambus (official) Male, DoB: 1973-02-10 ( https://fhir.ee/sid/pid/est/ni#37302102711)</a></p><p><b>effective</b>: 2021-09-01 00:00:00+0300 --&gt; (ongoing)</p><p><b>issued</b>: 2026-03-17 10:40:54+0200</p><p><b>performer</b>: <a href=\"#hcoccupation-example-2/employer2\">TRIOGAMES OÜ (https://fhir.ee/sid/org/est/br#11079281)</a></p><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Organization #employer2</b></p><a name=\"occupation-example-2/employer2\"> </a><a name=\"hcoccupation-example-2/employer2\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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=\"https://fhir.ee/packages/ee-base/1.3.0/site/StructureDefinition-ee-organization.html\">EEBase Organization</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">TRIOGAMES OÜ (https://fhir.ee/sid/org/est/br#11079281)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Record is active\">Active:</td><td colspan=\"3\">true</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the organization\">Contact Detail</td><td colspan=\"3\"><ul><li>Harju maakond, Saku vald, Kasemetsa küla, Kaseurva(work)</li></ul></td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
     a fhir:Organization ;
     fhir:id [ fhir:v "employer2" ] ;
     fhir:meta [
       fhir:profile ( [
         fhir:v "https://fhir.ee/base/StructureDefinition/ee-organization"^^xsd:anyURI ;
         fhir:link <https://fhir.ee/base/StructureDefinition/ee-organization>
       ] )
     ] ;
     fhir:identifier ( [
       fhir:system [ fhir:v "https://fhir.ee/sid/org/est/br"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "11079281" ]
     ] ) ;
     fhir:active [ fhir:v true ] ;
     fhir:name [ fhir:v "TRIOGAMES OÜ" ] ;
     fhir:contact ( [
       fhir:address [
         fhir:use [ fhir:v "work" ] ;
         fhir:text [ fhir:v "Harju maakond, Saku vald, Kasemetsa küla, Kaseurva" ] ;
         fhir:city [ fhir:v "Kasemetsa küla" ] ;
         fhir:district [ fhir:v "Saku vald" ] ;
         fhir:state [ fhir:v "Harju maakond" ] ;
         fhir:postalCode [ fhir:v "75510" ] ;
         fhir:country [ fhir:v "EE" ]
       ]
     ] )
  ] ) ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "social-history" ] ;
       fhir:display [ fhir:v "Social history" ]
     ] )
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       a sct:184104002 ;
       fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "184104002" ] ;
       fhir:display [ fhir:v "Patient occupation" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:link <https://fhir.ee/mpi/Patient/pat1> ;
     fhir:reference [ fhir:v "Patient/pat1" ]
  ] ; # 
  fhir:effective [
     a fhir:Period ;
     fhir:start [ fhir:v "2021-09-01T00:00:00+03:00"^^xsd:dateTime ]
  ] ; # 
  fhir:issued [ fhir:v "2026-03-17T10:40:54.408+02:00"^^xsd:dateTime] ; # 
  fhir:performer ( [
     fhir:reference [ fhir:v "#employer2" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

