Example OperationDefinition/Resource-graph (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
Operation Definition
@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
# - resource -------------------------------------------------------------------
[] a fhir:OperationDefinition;
fhir:Resource.id [ fhir:value "Resource-graph"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "extensions" ]
];
fhir:DomainResource.extension [
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ];
fhir:Extension.value [ fhir:value "1" ]
], [
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
fhir:Extension.value [ fhir:value "trial-use" ]
];
fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/Resource-graph"];
fhir:CanonicalResource.version [ fhir:value "5.0.0-ballot"];
fhir:CanonicalResource.name [ fhir:value "Graph"];
fhir:CanonicalResource.title [ fhir:value "Return a graph of resources"];
fhir:CanonicalResource.status [ fhir:value "draft"];
fhir:CanonicalResource.experimental [ fhir:value "false"];
fhir:CanonicalResource.date [ fhir:value "2022-09-10T04:52:37+10:00"];
fhir:CanonicalResource.publisher [ fhir:value "HL7 (FHIR Project)"];
fhir:CanonicalResource.contact [
fhir:ContactDetail.telecom [
fhir:ContactPoint.system [ fhir:value "url" ];
fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
], [
fhir:ContactPoint.system [ fhir:value "email" ];
fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ]
]
];
fhir:CanonicalResource.description [ fhir:value "Return an entire graph of resources based on a [GraphDefinition](graphdefinition.html). The operation is invoked on a specific instance of a resource, and the graph definition tells the server what other resources to return in the same packaage"];
fhir:OperationDefinition.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/Resource-graph"];
fhir:OperationDefinition.version [ fhir:value "5.0.0-ballot"];
fhir:OperationDefinition.name [ fhir:value "Graph"];
fhir:OperationDefinition.title [ fhir:value "Return a graph of resources"];
fhir:OperationDefinition.status [ fhir:value "draft"];
fhir:OperationDefinition.kind [ fhir:value "operation"];
fhir:OperationDefinition.experimental [ fhir:value "false"];
fhir:OperationDefinition.date [ fhir:value "2022-09-10T04:52:37+10:00"];
fhir:OperationDefinition.publisher [ fhir:value "HL7 (FHIR Project)"];
fhir:OperationDefinition.contact [
fhir:ContactDetail.telecom [
fhir:ContactPoint.system [ fhir:value "url" ];
fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
], [
fhir:ContactPoint.system [ fhir:value "email" ];
fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ]
]
];
fhir:OperationDefinition.description [ fhir:value "Return an entire graph of resources based on a [GraphDefinition](graphdefinition.html). The operation is invoked on a specific instance of a resource, and the graph definition tells the server what other resources to return in the same packaage"];
fhir:OperationDefinition.affectsState [ fhir:value "false"];
fhir:OperationDefinition.code [ fhir:value "graph"];
fhir:OperationDefinition.resource [ fhir:value "Resource"];
fhir:OperationDefinition.system [ fhir:value "false"];
fhir:OperationDefinition.type [ fhir:value "false"];
fhir:OperationDefinition.instance [ fhir:value "true"];
fhir:OperationDefinition.parameter [
fhir:OperationDefinitionParameterComponent.name [ fhir:value "graph" ];
fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ];
fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Servers MAY choose to allow any graph definition to be specified, but MAY require that the client choose a graph definition from a specific list of known supported definitions. The server is not required to support a formal definition of the graph on the end point" ];
fhir:OperationDefinitionParameterComponent.type [ fhir:value "uri" ]
], [
fhir:OperationDefinitionParameterComponent.name [ fhir:value "result" ];
fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ];
fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The set of resources that were in the graph based on the provided definition" ];
fhir:OperationDefinitionParameterComponent.type [ fhir:value "Bundle" ]
] .
# -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.