@openfn/language-fhir-eswatini 0.6.0 → 0.6.1
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 +2 -2
- package/types/Adaptor.d.ts +18 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-fhir-eswatini",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "OpenFn fhir-eswatini adaptor",
|
|
5
5
|
"author": "Open Function Group",
|
|
6
6
|
"license": "LGPLv3",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"fhir": {
|
|
9
9
|
"specUrl": "http://172.209.216.154/definitions.json.zip",
|
|
10
|
-
"adaptorGeneratedDate": "2026-03-
|
|
10
|
+
"adaptorGeneratedDate": "2026-03-16T19:04:39.376Z",
|
|
11
11
|
"generatorVersion": "0.7.5",
|
|
12
12
|
"options": {}
|
|
13
13
|
},
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -13,4 +13,21 @@ export { createBundle, uploadBundle } from '@openfn/language-fhir-4';
|
|
|
13
13
|
* @returns Operation
|
|
14
14
|
*/
|
|
15
15
|
export declare function addToBundle(resources: any | any[], name?: string): (state: any) => any;
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Set value mappings against a value-set.
|
|
18
|
+
* Pass the URL of the valueset you want to provide mappings for.
|
|
19
|
+
* For each mapping, the key is the input string, and the value is either
|
|
20
|
+
* a code string or a full object value to map
|
|
21
|
+
* @public
|
|
22
|
+
* @function
|
|
23
|
+
* @param {string} url - The URL of the value set you are providing mappings for
|
|
24
|
+
* @param {object} [mappings] - object of mappings
|
|
25
|
+
* @example <caption>Create a custom mapping for Patient.inkhundla</caption>
|
|
26
|
+
* mapValues('http://172.209.216.154:3447/fhir/ValueSet/SzTinkhundlaVS', {
|
|
27
|
+
* // Maps input value "lobamba" to mapping code "3"
|
|
28
|
+
* lobamba: '3',
|
|
29
|
+
* });
|
|
30
|
+
* @returns Operation
|
|
31
|
+
*/
|
|
32
|
+
export declare function mapValues(url: string, mappings: string): (state: any) => any;
|
|
33
|
+
export { combine, dataPath, dataValue, dateFns, cursor, log, each, field, fields, fn, lastReferenceValue, merge, sourceValue, } from '@openfn/language-common';
|