You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves a conflict in operations.md by keeping this branch's 303 See
Other polling pattern for the bulk export flow; main's side of the
conflict was an indentation-only change.
* parameter[3].documentation = "Inline SQLQuery or SQLView Library resource to execute."
397
404
398
405
* parameter[4].name = #parameters
399
406
* parameter[4].use = #in
@@ -459,7 +466,7 @@ Description: "Export SQLQuery Library results asynchronously using the FHIR Asyn
459
466
* parameter[0].max= "*"
460
467
* parameter[0].scope[0] = #system
461
468
* parameter[0].scope[1] = #type
462
-
* parameter[0].documentation = "One or more SQLQuery Libraries to export. Each repetition identifies a single query. Applies at system and type level only; at instance level the bound Library identified by the request URL is the query source and this parameter does not apply."
469
+
* parameter[0].documentation = "One or more SQLQuery or SQLView Libraries to export. Each repetition identifies a single query. Applies at system and type level only; at instance level the bound Library identified by the request URL is the query source and this parameter does not apply."
463
470
* parameter[0].part[0].name = #name
464
471
* parameter[0].part[0].use = #in
465
472
* parameter[0].part[0].min=0
@@ -471,13 +478,17 @@ Description: "Export SQLQuery Library results asynchronously using the FHIR Asyn
471
478
* parameter[0].part[1].min=0
472
479
* parameter[0].part[1].max= "1"
473
480
* parameter[0].part[1].type = #Reference
474
-
* parameter[0].part[1].documentation = "Reference to a SQLQuery Library stored on the server."
Only one of the `viewReference` or `viewResource` parameters can be provided.
138
-
When invoking this operation at the instance level (e.g. ViewDefinition/{id}/$run), the server SHALL automatically infer the `viewReference` parameter from the path parameter.
138
+
When invoking this operation at the instance level (e.g. ViewDefinition/{id}/$viewdefinition-run), the server SHALL automatically infer the `viewReference` parameter from the path parameter.
139
139
140
140
The `viewReference` parameter MAY be specified using any of the following formats:
141
141
@@ -222,7 +222,7 @@ resources and every unwrapped bundle entry.
222
222
##### Example 1: Instance-level GET with CSV output
223
223
224
224
```http
225
-
GET /ViewDefinition/patient-demographics/$run HTTP/1.1
225
+
GET /ViewDefinition/patient-demographics/$viewdefinition-run HTTP/1.1
Copy file name to clipboardExpand all lines: input/pagecontent/operations.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ The following list of API endpoints are defined:
12
12
13
13
- CapabilityStatement
14
14
- Operation $viewdefinition-export of ViewDefinition
15
-
- Operation $run of ViewDefinition
15
+
- Operation $viewdefinition-run of ViewDefinition
16
+
- Operation $sqlquery-run of Library
17
+
- Operation $sqlquery-export of Library
16
18
17
19
## Use Cases
18
20
@@ -122,13 +124,27 @@ The server processes the ViewDefinitions asynchronously and provides progress up
122
124
123
125
See [Operation $viewdefinition-export of ViewDefinition](OperationDefinition-ViewDefinitionExport.html)
124
126
125
-
### Operation $run of ViewDefinition
127
+
### Operation $viewdefinition-run of ViewDefinition
126
128
127
-
The `$run` operation provides real-time, synchronous evaluation of ViewDefinitions to transform FHIR resources into tabular format.
129
+
The `$viewdefinition-run` operation provides real-time, synchronous evaluation of ViewDefinitions to transform FHIR resources into tabular format.
128
130
This operation is designed for interactive development, debugging of ViewDefinitions, and real-time data streaming applications.
129
-
It can be invoked at either the type level (ViewDefinition/$run) or instance level (ViewDefinition/{id}/$run), with the ViewDefinition specified either in the request parameters or inferred from the URL path.
131
+
It can be invoked at either the type level (ViewDefinition/$viewdefinition-run) or instance level (ViewDefinition/{id}/$viewdefinition-run), with the ViewDefinition specified either in the request parameters or inferred from the URL path.
130
132
131
133
The operation supports multiple output formats including JSON, NDJSON, CSV, Parquet, and table formats, with the format determined by the Accept header or \_format parameter.
132
134
It can process either resources provided directly in the request or resources available on the server, with optional filtering by patient, group, or time parameters. The operation may use chunked transfer encoding for large result sets and includes comprehensive error handling through FHIR OperationOutcome resources for validation and processing errors.
133
135
134
-
See [Operation $run of ViewDefinition](OperationDefinition-ViewDefinitionRun.html)
136
+
See [Operation $viewdefinition-run of ViewDefinition](OperationDefinition-ViewDefinitionRun.html)
137
+
138
+
### Operation $sqlquery-run of Library
139
+
140
+
The `$sqlquery-run` operation provides real-time, synchronous execution of a SQLQuery Library against materialised ViewDefinition tables, returning the query results in the requested format.
141
+
It can be invoked at the system, type, or instance level, with the query supplied inline, by reference, or inferred from the URL path at instance level.
142
+
143
+
See [Operation $sqlquery-run of Library](OperationDefinition-SQLQueryRun.html) and the shared [Common Operation Behavior](operations-common.html).
144
+
145
+
### Operation $sqlquery-export of Library
146
+
147
+
The `$sqlquery-export` operation is the asynchronous counterpart to `$sqlquery-run`, exporting SQLQuery Library results into formats such as CSV, NDJSON, or Parquet using the FHIR Asynchronous Bulk Data Request pattern.
148
+
It accepts one or more queries to export and returns export tasks that can be monitored for progress and completion, suiting it to large-scale query execution with results delivered to file storage.
149
+
150
+
See [Operation $sqlquery-export of Library](OperationDefinition-SQLQueryExport.html) and the shared [Common Operation Behavior](operations-common.html).
0 commit comments