Skip to content

Commit

Permalink
rename and update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ekdeveloper committed Aug 28, 2024
1 parent f48333f commit b0edb0b
Show file tree
Hide file tree
Showing 11 changed files with 1,296 additions and 572 deletions.
67 changes: 0 additions & 67 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Core team members for FHIR at Asymmetrik
# Core team members for FHIR at Bluehalo

* @Robert-W @jonterrylee @lu-c
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
coverage/
**/services/**
File renamed without changes.
32 changes: 16 additions & 16 deletions .snyk
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ patch:
SNYK-JS-LODASH-567746:
- var > lodash:
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > eslint > lodash':
- '@bluehalo/node-fhir-server-core > eslint > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > lodash':
- '@bluehalo/node-fhir-server-core > snyk > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > eslint > inquirer > lodash':
- '@bluehalo/node-fhir-server-core > eslint > inquirer > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > eslint > table > lodash':
- '@bluehalo/node-fhir-server-core > eslint > table > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > @snyk/dep-graph > lodash':
- '@bluehalo/node-fhir-server-core > snyk > @snyk/dep-graph > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > inquirer > lodash':
- '@bluehalo/node-fhir-server-core > snyk > inquirer > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > snyk-config > lodash':
- '@bluehalo/node-fhir-server-core > snyk > snyk-config > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > snyk-mvn-plugin > lodash':
- '@bluehalo/node-fhir-server-core > snyk > snyk-mvn-plugin > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > snyk-nodejs-lockfile-parser > lodash':
- '@bluehalo/node-fhir-server-core > snyk > snyk-nodejs-lockfile-parser > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > snyk-nuget-plugin > lodash':
- '@bluehalo/node-fhir-server-core > snyk > snyk-nuget-plugin > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > winston > async > lodash':
- '@bluehalo/node-fhir-server-core > winston > async > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > @snyk/dep-graph > graphlib > lodash':
- '@bluehalo/node-fhir-server-core > snyk > @snyk/dep-graph > graphlib > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > snyk-go-plugin > graphlib > lodash':
- '@bluehalo/node-fhir-server-core > snyk > snyk-go-plugin > graphlib > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > snyk-nodejs-lockfile-parser > graphlib > lodash':
- '@bluehalo/node-fhir-server-core > snyk > snyk-nodejs-lockfile-parser > graphlib > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > snyk-nuget-plugin > dotnet-deps-parser > lodash':
- '@bluehalo/node-fhir-server-core > snyk > snyk-nuget-plugin > dotnet-deps-parser > lodash':
patched: '2020-05-07T07:19:00.845Z'
- '@asymmetrik/node-fhir-server-core > snyk > snyk-php-plugin > @snyk/composer-lockfile-parser > lodash':
- '@bluehalo/node-fhir-server-core > snyk > snyk-php-plugin > @snyk/composer-lockfile-parser > lodash':
patched: '2020-05-07T07:19:00.845Z'
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Asymmetrik FHIR API Server + Mongo Example
# Bluehalo FHIR API Server + Mongo Example

[![Build Status](https://travis-ci.org/Asymmetrik/node-fhir-server-mongo.svg?branch=master)](https://travis-ci.org/Asymmetrik/node-fhir-server-mongo)
[![Known Vulnerabilities](https://snyk.io/test/github/asymmetrik/node-fhir-server-mongo/badge.svg?targetFile=package.json)](https://snyk.io/test/github/asymmetrik/node-fhir-server-mongo?targetFile=package.json)
[![Build Status](https://travis-ci.org/bluehalo/node-fhir-server-mongo.svg?branch=master)](https://travis-ci.org/bluehalo/node-fhir-server-mongo)
[![Known Vulnerabilities](https://snyk.io/test/github/bluehalo/node-fhir-server-mongo/badge.svg?targetFile=package.json)](https://snyk.io/test/github/bluehalo/node-fhir-server-mongo?targetFile=package.json)

## Intro

This project is an example project built on `@asymmetrik/node-fhir-server-core` and has a MongoDB back end storing sample data. It's built with the ability to run in docker or node.js. To get started developing in Docker, see [Getting Started with Docker](#getting-started-with-docker). To get started developing with Node.js and Mongo, see [Getting Started with Node](#getting-started-with-node). You can serve multiple versions of FHIR with just one server. By default, R4 (4_0_0) is enabled but DSTU2 (1.0.2) and STU3 (3.0.1) are also supported. You can choose to support all versions or just one version by editing the config.
This project is an example project built on `@bluehalo/node-fhir-server-core` and has a MongoDB back end storing sample data. It's built with the ability to run in docker or node.js. To get started developing in Docker, see [Getting Started with Docker](#getting-started-with-docker). To get started developing with Node.js and Mongo, see [Getting Started with Node](#getting-started-with-node). You can serve multiple versions of FHIR with just one server. By default, R4 (4_0_0) is enabled but DSTU2 (1.0.2) and STU3 (3.0.1) are also supported. You can choose to support all versions or just one version by editing the config.

## Getting Started with Docker

Expand Down Expand Up @@ -234,8 +234,8 @@ Cache-Control: no-cache

### Determine which resources you want to support

In this example, only the Patient and Organization resource is filled out. You will need to fill in the other services for the resources you would like to support. The routes will only be available for the resource you enabled. You can view the available resources over at [`@asymmetrik/node-fhir-server-core`](https://github.com/Asymmetrik/node-fhir-server-core#profiles).
In this example, only the Patient and Organization resource is filled out. You will need to fill in the other services for the resources you would like to support. The routes will only be available for the resource you enabled. You can view the available resources over at [`@bluehalo/node-fhir-server-core`](https://github.com/bluehalo/node-fhir-server-core#profiles).

## License

`@asymmetrik/fhir-server-mongo` is [MIT licensed](./LICENSE).
`@bluehalo/fhir-server-mongo` is [MIT licensed](./LICENSE).
90 changes: 90 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
const globals = require('globals');
const js = require('@eslint/js');
const { FlatCompat } = require('@eslint/eslintrc');

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

module.exports = [
...compat.extends('eslint:recommended', 'prettier'),
{
ignores: [
'eslint.config.js',
'coverage/**',
'node_modules/**',
'**/services/**',
],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.jest,
...globals.node,
},
ecmaVersion: 8,
sourceType: 'commonjs',
},

rules: {
'no-mixed-spaces-and-tabs': [0, 'smart-tabs'],
quotes: [2, 'single', 'avoid-escape'],
'no-compare-neg-zero': 0,
'no-console': 0,
'no-debugger': 2,
'no-array-constructor': 2,
'no-caller': 2,
'no-catch-shadow': 2,
'no-eval': 2,
'no-extend-native': 2,
'no-extra-bind': 2,
'no-implied-eval': 2,
'no-irregular-whitespace': [2, { skipComments: true }],
'no-iterator': 2,
'no-label-var': 2,
'no-labels': 2,
'no-lone-blocks': 2,
'no-loop-func': 2,
'no-multi-spaces': 2,
'no-multi-str': 2,
'no-native-reassign': 2,
'no-new': 2,
'no-new-func': 2,
'no-new-object': 2,
'no-new-wrappers': 2,
'no-octal-escape': 2,
'no-proto': 2,
'no-return-assign': 2,
'no-script-url': 2,
'no-sequences': 2,
'no-shadow': 0,
'no-shadow-restricted-names': 2,
'no-spaced-func': 2,
'no-trailing-spaces': 2,
'no-undef-init': 2,
'no-unused-expressions': 2,
'no-unused-vars': [2, { vars: 'all', args: 'after-used', argsIgnorePattern: '^_' }],
'no-use-before-define': 2,
'no-useless-escape': 0,
'no-with': 2,
'comma-spacing': 2,
curly: [2, 'all'],
'dot-notation': [2, { allowKeywords: true }],
'eol-last': 2,
'no-extra-parens': [2, 'functions'],
eqeqeq: 2,
'key-spacing': [2, { beforeColon: false, afterColon: true }],
'new-cap': 2,
'new-parens': 2,
semi: 2,
'semi-spacing': [2, { before: false, after: true }],
'space-infix-ops': 2,
'keyword-spacing': 2,
'space-unary-ops': [2, { words: true, nonwords: false }],
yoda: [2, 'never'],
},
},
];
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@asymmetrik/node-fhir-server-mongo",
"version": "2.0.0",
"description": "FHIR Facade Server implementing @asymmetrik/node-fhir-server-core",
"name": "@bluehalo/node-fhir-server-mongo",
"version": "2.1.0",
"description": "FHIR Facade Server implementing @bluehalo/node-fhir-server-core",
"main": "src/index.js",
"repository": "https://github.com/Asymmetrik/node-fhir-server-mongo.git",
"repository": "https://github.com/bluehalo/node-fhir-server-mongo.git",
"contributors": [
"Robert Winterbottom <[email protected]>",
"Jon Lee <[email protected]>",
Expand Down Expand Up @@ -38,21 +38,23 @@
]
},
"dependencies": {
"@asymmetrik/node-fhir-server-core": "^2.2.5",
"@snyk/protect": "^1.1096.0",
"@bluehalo/node-fhir-server-core": "^2.3.0",
"@snyk/protect": "^1.1293.0",
"fast-json-patch": "^3.1.1",
"moment-timezone": "^0.5.40",
"moment-timezone": "^0.5.45",
"mongo": "^0.1.0",
"object-hash": "^3.0.0",
"snyk": "^1.1096.0",
"snyk": "^1.1292.4",
"var": "^0.4.0"
},
"devDependencies": {
"cross-env": "^7.0.3",
"eslint": "^8.33.0",
"jest": "^29.4.1",
"nodemon": "^2.0.20",
"prettier": "^2.8.3"
"eslint": "^9.9",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.9.0",
"jest": "^29.7.0",
"nodemon": "^3.1.4",
"prettier": "^3.3.3"
},
"private": false,
"snyk": true
Expand Down
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { VERSIONS } = require('@asymmetrik/node-fhir-server-core').constants;
const { VERSIONS } = require('@bluehalo/node-fhir-server-core').constants;
const env = require('var');

/**
Expand All @@ -25,7 +25,7 @@ let whitelist = whitelist_env && whitelist_env.length === 1 ? whitelist_env[0] :

/**
* @name fhirServerConfig
* @summary @asymmetrik/node-fhir-server-core configurations.
* @summary @bluehalo/node-fhir-server-core configurations.
*/
let fhirServerConfig = {
auth: {
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const FHIRServer = require('@asymmetrik/node-fhir-server-core');
const logger = require('@asymmetrik/node-fhir-server-core').loggers.get();
const FHIRServer = require('@bluehalo/node-fhir-server-core');
const logger = require('@bluehalo/node-fhir-server-core').loggers.get();
const asyncHandler = require('./lib/async-handler');
const mongoClient = require('./lib/mongo');
const globals = require('./globals');
Expand Down
Loading

0 comments on commit b0edb0b

Please sign in to comment.