@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://www.ehealth.fgov.be/standards/fhir/registries/bcr/Subscription/ExampleBCRValidationSubscription> a fhir:Subscription ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleBCRValidationSubscription"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Subscription ExampleBCRValidationSubscription</b></p><a name=\"ExampleBCRValidationSubscription\"> </a><a name=\"hcExampleBCRValidationSubscription\"> </a><p><b>status</b>: Active</p><p><b>reason</b>: Notify the submitting hospital when validation of a BCR cancer-registration submission completes or fails.</p><p><b>criteria</b>: Task?part-of=Task/ExampleBCRRegistrationTask&amp;status=completed,failed</p><h3>Channels</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Endpoint</b></td><td><b>Payload</b></td><td><b>Header</b></td></tr><tr><td style=\"display: none\">*</td><td>Rest Hook</td><td><a href=\"https://his.hospital-x.example/fhir/bcr/validation-callback\">https://his.hospital-x.example/fhir/bcr/validation-callback</a></td><td>application/fhir+json</td><td>Authorization: Bearer &lt;token&gt;</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:reason [ fhir:v "Notify the submitting hospital when validation of a BCR cancer-registration submission completes or fails."] ; # 
  fhir:criteria [ fhir:v "Task?part-of=Task/ExampleBCRRegistrationTask&status=completed,failed"] ; # 
  fhir:channel [
     fhir:type [ fhir:v "rest-hook" ] ;
     fhir:endpoint [
       fhir:v "https://his.hospital-x.example/fhir/bcr/validation-callback"^^xsd:anyURI ;
       fhir:l <https://his.hospital-x.example/fhir/bcr/validation-callback>
     ] ;
     fhir:payload [ fhir:v "application/fhir+json" ] ;
     fhir:header ( [ fhir:v "Authorization: Bearer <token>" ] )
  ] . # 

# -------------------------------------------------------------------------------------

