0.1.0 - ci-build

SENAITEFHIRImplementationGuide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: Revoke a ServiceRequest - TTL Representation

Active as of 2026-11-05

Raw ttl | Download


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

<http://hl7.org/fhir/OperationDefinition/SenaiteServiceRequestRevoke> a fhir:OperationDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "SenaiteServiceRequestRevoke"] ; # 
  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: OperationDefinition SenaiteServiceRequestRevoke</b></p><a name=\"SenaiteServiceRequestRevoke\"> </a><a name=\"hcSenaiteServiceRequestRevoke\"> </a><p>URL: [base]/ServiceRequest/[id]/$revoke</p><p>Output parameters Profile:<a href=\"StructureDefinition-SenaiteServiceRequestRevocation.html\">Senaite ServiceRequest Revoked</a></p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>reason</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#string\">string</a></td><td/><td><div><p>Optional plain-text reason for revoking the ServiceRequest. If supplied, the server persists this value into ServiceRequest.note[0].text on the updated resource. The request body may be omitted entirely, which is equivalent to calling the operation with no reason.</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/servicerequest.html\">ServiceRequest</a> (<a href=\"StructureDefinition-SenaiteServiceRequestRevocation.html\" title=\"https://fhir.senaite.org/StructureDefinition/SenaiteServiceRequestRevocation\">Senaite ServiceRequest Revoked</a>)</td><td/><td><div><p>The updated ServiceRequest with status set to revoked. If a reason was supplied, it will be present in note[0].text.</p>\n</div></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [ fhir:v "https://fhir.senaite.org/OperationDefinition/SenaiteServiceRequestRevoke"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "revoke"] ; # 
  fhir:title [ fhir:v "Revoke a ServiceRequest"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:kind [ fhir:v "operation"] ; # 
  fhir:date [ fhir:v "2026-11-05T16:10:27+01:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Naralabs"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "Naralabs" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://naralabs.com" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "info@naralabs.com" ]
     ] )
  ] [
     fhir:name [ fhir:v "Senaite FHIR" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "info@naralabs.com" ] ;
       fhir:use [ fhir:v "work" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Revokes a ServiceRequest in SENAITE, transitioning its status to revoked and triggering the corresponding revocation workflow. Only callable on ServiceRequests in active status. The request body is optional — if omitted or empty, the operation proceeds without a reason."] ; # 
  fhir:code [ fhir:v "revoke"] ; # 
  fhir:resource ( [ fhir:v "ServiceRequest"] ) ; # 
  fhir:system [ fhir:v false] ; # 
  fhir:type [ fhir:v false] ; # 
  fhir:instance [ fhir:v true] ; # 
  fhir:outputProfile [
     fhir:v "https://fhir.senaite.org/StructureDefinition/SenaiteServiceRequestRevocation"^^xsd:anyURI ;
     fhir:link <https://fhir.senaite.org/StructureDefinition/SenaiteServiceRequestRevocation>
  ] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "reason" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "Optional plain-text reason for revoking the ServiceRequest. If supplied, the server persists this value into ServiceRequest.note[0].text on the updated resource. The request body may be omitted entirely, which is equivalent to calling the operation with no reason." ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:name [ fhir:v "return" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 1 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "The updated ServiceRequest with status set to revoked. If a reason was supplied, it will be present in note[0].text." ] ;
     fhir:type [ fhir:v "ServiceRequest" ] ;
     fhir:targetProfile ( [
       fhir:v "https://fhir.senaite.org/StructureDefinition/SenaiteServiceRequestRevocation"^^xsd:anyURI ;
       fhir:link <https://fhir.senaite.org/StructureDefinition/SenaiteServiceRequestRevocation>
     ] )
  ] ) . #