fhirsmith 0.8.0 → 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 +22 -0
- package/README.md +5 -1
- package/package.json +1 -1
- package/security.md +3 -0
- package/server.js +2 -2
- package/stats.js +1 -1
- package/tx/cs/cs-api.js +8 -4
- package/tx/cs/cs-omop.js +5 -3
- package/tx/cs/cs-rxnorm.js +4 -6
- package/tx/cs/cs-snomed.js +113 -1
- 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/library/conceptmap.js +26 -0
- package/tx/library/extensions.js +4 -3
- package/tx/params.js +2 -2
- package/tx/provider.js +4 -1
- package/tx/sct/structures.js +1 -1
- package/tx/workers/expand.js +10 -10
- package/tx/workers/related.js +2 -2
- package/tx/workers/translate.js +184 -20
- package/tx/workers/validate.js +10 -10
- package/tx/xversion/xv-parameters.js +54 -1
|
@@ -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
|
+
}
|