emuhealth 0.3.0 → 0.4.0

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/README.md CHANGED
@@ -37,7 +37,7 @@ All services listen on IPv4 loopback (`127.0.0.1`) by default. No config file ne
37
37
 
38
38
  Health and life science services use a fixed range starting at `http://localhost:4100`. Each health service keeps its port no matter which other services run or how many upstream services exist.
39
39
 
40
- - **FHIR R4** on `http://localhost:4100` (create, read, update, JSON Patch, delete, versioning, `_history`, search, batch and transaction Bundles, and a CapabilityStatement at `/metadata`; SMART on FHIR is on the roadmap)
40
+ - **FHIR R4** on `http://localhost:4100` (create, read, update, JSON Patch, delete, versioning, `_history`, search, batch and transaction Bundles, and a CapabilityStatement at `/metadata`, `Patient/$everything`; starts with 5 generated synthetic patients; SMART App Launch with patient and practitioner pickers, an EHR launch simulator, PKCE, and scope and patient enforcement for presented tokens)
41
41
 
42
42
  Stripe webhooks configured with a secret include a `Stripe-Signature` header signed over the timestamp and raw request body.
43
43
 
@@ -37,3 +37,31 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
37
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
38
  SOFTWARE.
39
39
  ```
40
+
41
+ ## Clinical terminology
42
+
43
+ The emuhealth synthetic data generator in
44
+ `packages/@emuhealth/fhir-core/src/generator.ts` uses a small number of codes from
45
+ the following code systems to make generated records realistic. No full code
46
+ system is redistributed.
47
+
48
+ ### LOINC
49
+
50
+ This material contains content from LOINC (https://loinc.org). LOINC is
51
+ copyright Regenstrief Institute, Inc. and the Logical Observation Identifiers
52
+ Names and Codes (LOINC) Committee and is available at no cost under the license
53
+ at https://loinc.org/license. LOINC® is a registered United States trademark of
54
+ Regenstrief Institute, Inc.
55
+
56
+ ### RxNorm
57
+
58
+ This product uses publicly available data from the U.S. National Library of
59
+ Medicine (NLM), National Institutes of Health, Department of Health and Human
60
+ Services; NLM is not responsible for the product and does not endorse or
61
+ recommend this or any other product.
62
+
63
+ ### ICD-10-CM and CVX
64
+
65
+ ICD-10-CM codes are published by the National Center for Health Statistics and
66
+ CVX codes by the Centers for Disease Control and Prevention. Both are U.S.
67
+ government works in the public domain.
package/dist/api.js CHANGED
@@ -1945,9 +1945,9 @@ var HEALTH_SERVICE_NAMES = HEALTH_SERVICE_NAME_LIST;
1945
1945
  var HEALTH_SERVICE_REGISTRY = {
1946
1946
  fhir: {
1947
1947
  label: "FHIR R4 server emulator",
1948
- endpoints: "create, read, vread, update (including create on update), JSON Patch, logical delete, _history, search with includes and chaining, batch and transaction Bundles, CapabilityStatement at /metadata, ETag and If-Match",
1948
+ endpoints: "create, read, vread, update (including create on update), JSON Patch, logical delete, _history, search with includes and chaining, batch and transaction Bundles, CapabilityStatement at /metadata, Patient/$everything, SMART App Launch, ETag and If-Match, generated synthetic patients",
1949
1949
  async load() {
1950
- const mod = await import("./dist-WLTGCLZF.js");
1950
+ const mod = await import("./dist-NSZJMYCW.js");
1951
1951
  return { plugin: mod.fhirPlugin, seedFromConfig: mod.seedFromConfig };
1952
1952
  },
1953
1953
  defaultFallback() {
@@ -1955,6 +1955,7 @@ var HEALTH_SERVICE_REGISTRY = {
1955
1955
  },
1956
1956
  initConfig: {
1957
1957
  fhir: {
1958
+ generate: { patients: 5, seed: 1 },
1958
1959
  resources: [
1959
1960
  {
1960
1961
  resourceType: "Patient",