Example OperationDefinition/Resource-graphql (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-graphql"];
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-graphql"];
fhir:CanonicalResource.version [ fhir:value "5.0.0-ballot"];
fhir:CanonicalResource.name [ fhir:value "Graphql"];
fhir:CanonicalResource.title [ fhir:value "Execute a graphql statement"];
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 "Execute a graphql statement on a since resource or against the entire system. See the [Using GraphQL with FHIR](graphql.html) page for further details.\n\nFor the purposes of graphQL compatibility, this operation can also be invoked using a POST with the graphQL as the body, or a JSON body (see [graphQL spec](http://graphql.org/) for details)"];
fhir:OperationDefinition.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/Resource-graphql"];
fhir:OperationDefinition.version [ fhir:value "5.0.0-ballot"];
fhir:OperationDefinition.name [ fhir:value "Graphql"];
fhir:OperationDefinition.title [ fhir:value "Execute a graphql statement"];
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 "Execute a graphql statement on a since resource or against the entire system. See the [Using GraphQL with FHIR](graphql.html) page for further details.\n\nFor the purposes of graphQL compatibility, this operation can also be invoked using a POST with the graphQL as the body, or a JSON body (see [graphQL spec](http://graphql.org/) for details)"];
fhir:OperationDefinition.affectsState [ fhir:value "false"];
fhir:OperationDefinition.code [ fhir:value "graphql"];
fhir:OperationDefinition.resource [ fhir:value "Resource"];
fhir:OperationDefinition.system [ fhir:value "true"];
fhir:OperationDefinition.type [ fhir:value "false"];
fhir:OperationDefinition.instance [ fhir:value "true"];
fhir:OperationDefinition.parameter [
fhir:OperationDefinitionParameterComponent.name [ fhir:value "query" ];
fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ];
fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]
], [
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 content is always returned as application/json; this SHOULD be specified in the Accept header" ];
fhir:OperationDefinitionParameterComponent.type [ fhir:value "Binary" ]
] .
# -------------------------------------------------------------------------------------
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.