fhirsmith 0.7.6 → 0.8.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/CHANGELOG.md +48 -0
- package/README.md +5 -1
- package/library/languages.js +10 -0
- package/package.json +1 -1
- package/packages/package-crawler.js +2 -2
- package/publisher/publisher.js +1 -1
- package/registry/registry.js +2 -2
- package/root-bare-template.html +1 -2
- package/security.md +3 -0
- package/server.js +100 -70
- package/stats.js +37 -6
- package/tx/cs/cs-api.js +8 -4
- package/tx/cs/cs-loinc.js +14 -2
- package/tx/cs/cs-omop.js +5 -3
- package/tx/cs/cs-rxnorm.js +18 -16
- package/tx/cs/cs-snomed.js +279 -6
- package/tx/data/cpt-fragment.db +0 -0
- package/tx/data/cs-de.json +186 -0
- package/tx/data/cs-extensions.json +92 -0
- package/tx/data/cs-simple.json +130 -0
- package/tx/data/cs-supplement.json +78 -0
- package/tx/data/lang.dat +49180 -0
- package/tx/data/languages.csv +191 -0
- package/tx/data/loinc-subset.txt +75 -0
- package/tx/data/omop-fragment.db +0 -0
- package/tx/data/readme.md +43 -0
- package/tx/data/regions.csv +273 -0
- package/tx/data/rxnorm-subset.txt +22 -0
- package/tx/data/snomed-subset.txt +47 -0
- package/tx/data/ucum-essence.xml +2059 -0
- package/tx/html/dash-metrics.liquid +147 -0
- package/tx/importers/import-rxnorm.module.js +4 -30
- package/tx/library/canonical-resource.js +8 -0
- package/tx/library/conceptmap.js +29 -1
- package/tx/library/designations.js +4 -8
- package/tx/library/extensions.js +4 -3
- package/tx/library/renderer.js +9 -9
- package/tx/ocl/cm-ocl.cjs +185 -65
- package/tx/ocl/cs-ocl.cjs +69 -50
- package/tx/ocl/jobs/background-queue.cjs +0 -8
- package/tx/ocl/mappers/concept-mapper.cjs +13 -3
- package/tx/ocl/shared/patches.cjs +1 -0
- package/tx/ocl/vs-ocl.cjs +137 -157
- package/tx/operation-context.js +3 -3
- package/tx/params.js +2 -2
- package/tx/provider.js +6 -3
- package/tx/sct/structures.js +6 -1
- package/tx/tx.fhir.org.yml +1 -1
- package/tx/vs/vs-database.js +107 -23
- package/tx/vs/vs-vsac.js +66 -19
- package/tx/workers/expand.js +10 -10
- package/tx/workers/related.js +2 -2
- package/tx/workers/search.js +2 -1
- package/tx/workers/translate.js +222 -33
- package/tx/workers/validate.js +13 -13
- package/tx/xversion/xv-parameters.js +54 -1
- package/xig/xig.js +171 -9
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType" : "CodeSystem",
|
|
3
|
+
"language" : "en",
|
|
4
|
+
"id" : "extensions",
|
|
5
|
+
"url" : "http://hl7.org/fhir/test/CodeSystem/extensions",
|
|
6
|
+
"name" : "ExtensionsTestCodeSystem",
|
|
7
|
+
"title" : "Extensions Test Code System",
|
|
8
|
+
"status" : "active",
|
|
9
|
+
"experimental" : false,
|
|
10
|
+
"date" : "2023-04-01",
|
|
11
|
+
"publisher" : "FHIR Project",
|
|
12
|
+
"caseSensitive" : true,
|
|
13
|
+
"content" : "complete",
|
|
14
|
+
"property" : [{
|
|
15
|
+
"code" : "prop",
|
|
16
|
+
"uri" : "http://hl7.org/fhir/test/CodeSystem/properties#prop",
|
|
17
|
+
"type" : "code"
|
|
18
|
+
},{
|
|
19
|
+
"code" : "alternateCode",
|
|
20
|
+
"uri" : "http://hl7.org/fhir/concept-properties#alternateCode",
|
|
21
|
+
"description" : "This property contains an alternative code that may be used to identify this concept instead of the primary code",
|
|
22
|
+
"type" : "code"
|
|
23
|
+
}],
|
|
24
|
+
"concept" : [{
|
|
25
|
+
"code" : "code1",
|
|
26
|
+
"display" : "Display 1",
|
|
27
|
+
"definition" : "My first code",
|
|
28
|
+
"extension" : [{
|
|
29
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-conceptOrder",
|
|
30
|
+
"valueInteger" : 6
|
|
31
|
+
}],
|
|
32
|
+
"designation" : [{
|
|
33
|
+
"language" : "de",
|
|
34
|
+
"value" : "Mein erster Code",
|
|
35
|
+
"extension" : [{
|
|
36
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/coding-sctdescid",
|
|
37
|
+
"valueId" : "234234"
|
|
38
|
+
}]
|
|
39
|
+
}]
|
|
40
|
+
},{
|
|
41
|
+
"code" : "code2",
|
|
42
|
+
"display" : "Display 2",
|
|
43
|
+
"definition" : "My second code",
|
|
44
|
+
"extension" : [{
|
|
45
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-conceptOrder",
|
|
46
|
+
"valueInteger" : 5
|
|
47
|
+
}]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"code" : "code3",
|
|
51
|
+
"display" : "Display 3",
|
|
52
|
+
"definition" : "My third code",
|
|
53
|
+
"extension" : [{
|
|
54
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/rendering-style",
|
|
55
|
+
"valueString" : "font-weight: bold; font-decoration: strikethrough"
|
|
56
|
+
},{
|
|
57
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
|
|
58
|
+
"valueString" : "<span style=\"color: maroon\">This is a dumb way to do things</span>"
|
|
59
|
+
},{
|
|
60
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-conceptOrder",
|
|
61
|
+
"valueInteger" : 4
|
|
62
|
+
}]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"code" : "code4",
|
|
66
|
+
"display" : "Display 4",
|
|
67
|
+
"definition" : "My fourth code",
|
|
68
|
+
"extension" : [{
|
|
69
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-conceptOrder",
|
|
70
|
+
"valueInteger" : 3
|
|
71
|
+
}]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"code" : "code5",
|
|
75
|
+
"display" : "Display 5",
|
|
76
|
+
"definition" : "My fifth code",
|
|
77
|
+
"extension" : [{
|
|
78
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-conceptOrder",
|
|
79
|
+
"valueInteger" : 2
|
|
80
|
+
}]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"code" : "code6",
|
|
84
|
+
"display" : "Display 6",
|
|
85
|
+
"definition" : "My sixth code",
|
|
86
|
+
"extension" : [{
|
|
87
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-conceptOrder",
|
|
88
|
+
"valueInteger" : 1
|
|
89
|
+
}]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType" : "CodeSystem",
|
|
3
|
+
"language" : "en",
|
|
4
|
+
"id" : "simple",
|
|
5
|
+
"url" : "http://hl7.org/fhir/test/CodeSystem/simple",
|
|
6
|
+
"version" : "0.1.0",
|
|
7
|
+
"identifier" : [{
|
|
8
|
+
"system" : "urn:ietf:rfc:3986",
|
|
9
|
+
"value" : "urn:oid:2.16.840.1.113883.4.642.40.50.10.1"
|
|
10
|
+
}],
|
|
11
|
+
"name" : "SimpleTestCodeSystem",
|
|
12
|
+
"title" : "Simple Test Code System",
|
|
13
|
+
"status" : "active",
|
|
14
|
+
"experimental" : false,
|
|
15
|
+
"date" : "2023-04-01",
|
|
16
|
+
"publisher" : "FHIR Project",
|
|
17
|
+
"caseSensitive" : true,
|
|
18
|
+
"hierarchyMeaning" : "is-a",
|
|
19
|
+
"content" : "complete",
|
|
20
|
+
"property" : [{
|
|
21
|
+
"code" : "prop",
|
|
22
|
+
"uri" : "http://hl7.org/fhir/test/CodeSystem/properties#prop",
|
|
23
|
+
"type" : "code"
|
|
24
|
+
},{
|
|
25
|
+
"code" : "status",
|
|
26
|
+
"uri" : "http://hl7.org/fhir/concept-properties#status",
|
|
27
|
+
"type" : "code"
|
|
28
|
+
},{
|
|
29
|
+
"code" : "notSelectable",
|
|
30
|
+
"uri" : "http://hl7.org/fhir/concept-properties#notSelectable",
|
|
31
|
+
"type" : "boolean"
|
|
32
|
+
}],
|
|
33
|
+
"concept" : [{
|
|
34
|
+
"code" : "code1",
|
|
35
|
+
"display" : "Display 1",
|
|
36
|
+
"definition" : "My first code",
|
|
37
|
+
"designation" : [{
|
|
38
|
+
"use" : {
|
|
39
|
+
"system" : "http://hl7.org/fhir/test/CodeSystem/designations",
|
|
40
|
+
"code" : "olde-english"
|
|
41
|
+
},
|
|
42
|
+
"value" : "mine own first code"
|
|
43
|
+
}],
|
|
44
|
+
"property" : [{
|
|
45
|
+
"code" : "prop",
|
|
46
|
+
"valueCode" : "old"
|
|
47
|
+
}]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"code" : "code2",
|
|
51
|
+
"display" : "Display 2",
|
|
52
|
+
"definition" : "My second code, with children",
|
|
53
|
+
"designation" : [{
|
|
54
|
+
"use" : {
|
|
55
|
+
"system" : "http://hl7.org/fhir/test/CodeSystem/designations",
|
|
56
|
+
"code" : "olde-english"
|
|
57
|
+
},
|
|
58
|
+
"value" : "mine own second code"
|
|
59
|
+
}],
|
|
60
|
+
"property" : [{
|
|
61
|
+
"code" : "prop",
|
|
62
|
+
"valueCode" : "new"
|
|
63
|
+
},{
|
|
64
|
+
"code" : "notSelectable",
|
|
65
|
+
"valueBoolean" : true
|
|
66
|
+
},{
|
|
67
|
+
"code" : "status",
|
|
68
|
+
"valueCode" : "retired"
|
|
69
|
+
}],
|
|
70
|
+
"concept" : [{
|
|
71
|
+
"code" : "code2a",
|
|
72
|
+
"display" : "Display 2a",
|
|
73
|
+
"definition" : "My first second level code",
|
|
74
|
+
"designation" : [{
|
|
75
|
+
"use" : {
|
|
76
|
+
"system" : "http://hl7.org/fhir/test/CodeSystem/designations",
|
|
77
|
+
"code" : "olde-english"
|
|
78
|
+
},
|
|
79
|
+
"value" : "mine own first code yond's issue of the second code"
|
|
80
|
+
}],
|
|
81
|
+
"property" : [{
|
|
82
|
+
"code" : "prop",
|
|
83
|
+
"valueCode" : "new"
|
|
84
|
+
}],
|
|
85
|
+
"concept" : [{
|
|
86
|
+
"code" : "code2aI",
|
|
87
|
+
"display" : "Display 2aI",
|
|
88
|
+
"definition" : "My first third level code",
|
|
89
|
+
"property" : [{
|
|
90
|
+
"code" : "prop",
|
|
91
|
+
"valueCode" : "old"
|
|
92
|
+
}]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"code" : "code2aII",
|
|
96
|
+
"display" : "Display 2aII",
|
|
97
|
+
"definition" : "My second third level code",
|
|
98
|
+
"property" : [{
|
|
99
|
+
"code" : "prop",
|
|
100
|
+
"valueCode" : "new"
|
|
101
|
+
}]
|
|
102
|
+
}]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"code" : "code2b",
|
|
106
|
+
"display" : "Display 2b",
|
|
107
|
+
"definition" : "My second second level code",
|
|
108
|
+
"designation" : [{
|
|
109
|
+
"use" : {
|
|
110
|
+
"system" : "http://hl7.org/fhir/test/CodeSystem/designations",
|
|
111
|
+
"code" : "olde-english"
|
|
112
|
+
},
|
|
113
|
+
"value" : "Mine own second second leveleth code"
|
|
114
|
+
}],
|
|
115
|
+
"property" : [{
|
|
116
|
+
"code" : "prop",
|
|
117
|
+
"valueCode" : "old"
|
|
118
|
+
}]
|
|
119
|
+
}]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"code" : "code3",
|
|
123
|
+
"display" : "Display 3",
|
|
124
|
+
"definition" : "Serum Cholesterol",
|
|
125
|
+
"property" : [{
|
|
126
|
+
"code" : "prop",
|
|
127
|
+
"valueCode" : "old"
|
|
128
|
+
}]
|
|
129
|
+
}]
|
|
130
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType" : "CodeSystem",
|
|
3
|
+
"language" : "en",
|
|
4
|
+
"id" : "supplement",
|
|
5
|
+
"extension" : [{
|
|
6
|
+
"url" : "http://hl7.org/fhir/test/StructureDefinition/unknown-extension-2",
|
|
7
|
+
"valueString" : "unknown extensions are ignored"
|
|
8
|
+
}],
|
|
9
|
+
"url" : "http://hl7.org/fhir/test/CodeSystem/supplement",
|
|
10
|
+
"version" : "0.1.1",
|
|
11
|
+
"name" : "SupplementToExtensionsTestCodeSystem",
|
|
12
|
+
"title" : "Supplement To Extensions Test Code System",
|
|
13
|
+
"status" : "active",
|
|
14
|
+
"experimental" : false,
|
|
15
|
+
"date" : "2023-04-01",
|
|
16
|
+
"publisher" : "FHIR Project",
|
|
17
|
+
"caseSensitive" : true,
|
|
18
|
+
"content" : "supplement",
|
|
19
|
+
"supplements" : "http://hl7.org/fhir/test/CodeSystem/extensions",
|
|
20
|
+
"concept" : [{
|
|
21
|
+
"code" : "code1",
|
|
22
|
+
"designation" : [{
|
|
23
|
+
"language" : "nl",
|
|
24
|
+
"value" : "ectenoot"
|
|
25
|
+
}],
|
|
26
|
+
"extension" : [{
|
|
27
|
+
"url" : "http://hl7.org/fhir/test/StructureDefinition/unknown-extension-3",
|
|
28
|
+
"valueString" : "unknown extensions are ignored"
|
|
29
|
+
},{
|
|
30
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/itemWeight",
|
|
31
|
+
"valueDecimal" : 1.2
|
|
32
|
+
},{
|
|
33
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-label",
|
|
34
|
+
"valueString" : "a."
|
|
35
|
+
}]
|
|
36
|
+
},{
|
|
37
|
+
"code" : "code2",
|
|
38
|
+
"extension" : [{
|
|
39
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/rendering-style",
|
|
40
|
+
"valueString" : "font-weight: bold; font-decoration: underline"
|
|
41
|
+
},{
|
|
42
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
|
|
43
|
+
"valueString" : "<span style=\"color: maroon\">This is also a dumb way to do things</span>"
|
|
44
|
+
},{
|
|
45
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-label",
|
|
46
|
+
"valueString" : "b."
|
|
47
|
+
}]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"code" : "code3",
|
|
51
|
+
"extension" : [{
|
|
52
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-label",
|
|
53
|
+
"valueString" : "c."
|
|
54
|
+
}]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"code" : "code4",
|
|
58
|
+
"extension" : [{
|
|
59
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-label",
|
|
60
|
+
"valueString" : "d."
|
|
61
|
+
}]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"code" : "code5",
|
|
65
|
+
"extension" : [{
|
|
66
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-label",
|
|
67
|
+
"valueString" : "e."
|
|
68
|
+
}]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code" : "code6",
|
|
72
|
+
"extension" : [{
|
|
73
|
+
"url" : "http://hl7.org/fhir/StructureDefinition/codesystem-label",
|
|
74
|
+
"valueString" : "f."
|
|
75
|
+
}]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|