@openfn/language-fhir-4 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@openfn/language-fhir-4",
3
3
  "label": "FHIR r4",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "description": "OpenFn FHIR r4 adaptor",
6
6
  "author": "Open Function Group",
7
7
  "license": "LGPLv3",
8
8
  "type": "module",
9
9
  "fhir": {
10
10
  "specUrl": "https://hl7.org/fhir/R4B/definitions.json.zip",
11
- "adaptorGeneratedDate": "2026-02-24T16:33:46.057Z",
12
- "generatorVersion": "0.7.0",
11
+ "adaptorGeneratedDate": "2026-03-12T12:17:41.447Z",
12
+ "generatorVersion": "0.7.3",
13
13
  "options": {
14
14
  "simpleBuilders": true
15
15
  }
@@ -86,6 +86,31 @@ export { _delete as delete };
86
86
  * @returns Operation
87
87
  */
88
88
  export declare function create(resource: any): (state: any) => Promise<any>;
89
+ type CreateBundleOptions = {
90
+ name?: string;
91
+ type?: 'document' | 'message' | 'transaction' | 'transaction-response' | 'batch' | 'batch-response' | 'history' | 'searchset' | 'collection' | 'subscription-notification';
92
+ };
93
+ /**
94
+ * Generate a new bundle on state. Any existing bundle with the same name will be overwritten.
95
+ * @public
96
+ * @function
97
+ * @param {string} [options.name] - A name (key) for this bundle on state (defaults to `bundle`)
98
+ * @param {string} [options.type] - The type of this bundle. Accepts document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection | subscription-notification.
99
+ * @param {object} [props] - Assign any arbitrary properties to the bundle object
100
+ * @state (name) - the updated bundle
101
+ * @example <caption>Create a default bundle and add an item</caption>
102
+ * createBundle()
103
+ * addToBundle($.patient)
104
+ * @example <caption>Create a batch-type bundle called 'upload'</caption>
105
+ * createBundle({ name: 'upload', type: 'batch' })
106
+ * @example <caption>Create a bundle with custom properties</caption>
107
+ * createBundle({}, { timestamp: new Date().toISOString() }})
108
+ * * @example <caption>Create a named bundle and add an item</caption>
109
+ * createBundle({ name: 'upload')
110
+ * addToBundle($.patient, 'upload')
111
+ * @returns Operation
112
+ */
113
+ export declare function createBundle(options: CreateBundleOptions, props?: any): (state: any) => any;
89
114
  /**
90
115
  * Add a resource to a bundle on state, using the `name` as the key (or `bundle` by default).
91
116
  * The resource will be upserted (via PUT).