@kno2/bluebutton 0.6.8 → 0.6.11
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/.github/workflows/jira-dependabot-integration.yml +16 -16
- package/.github/workflows/npm-publish.yml +31 -29
- package/.jshintrc +35 -35
- package/.nvmrc +1 -1
- package/.travis.yml +5 -5
- package/LICENSE.md +11 -11
- package/README.md +47 -47
- package/build/bluebutton.js +1133 -1444
- package/build/bluebutton.js.map +1 -1
- package/karma.conf.js +69 -69
- package/package.json +29 -32
- package/webpack.config.js +37 -37
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
name: "dependabot jira ticket sync"
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
schedule:
|
|
5
|
-
- cron: '0 0 * * *'
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
|
|
8
|
-
permissions: read-all
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
dependabot-scan:
|
|
12
|
-
name: Scan for issues
|
|
13
|
-
uses: Kno2/action-workflows/.github/workflows/push-alerts-to-jira-ubuntu.yml@master
|
|
14
|
-
with:
|
|
15
|
-
jira_project_key: DEP
|
|
16
|
-
secrets: inherit
|
|
1
|
+
name: "dependabot jira ticket sync"
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '0 0 * * *'
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions: read-all
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
dependabot-scan:
|
|
12
|
+
name: Scan for issues
|
|
13
|
+
uses: Kno2/action-workflows/.github/workflows/push-alerts-to-jira-ubuntu.yml@master
|
|
14
|
+
with:
|
|
15
|
+
jira_project_key: DEP
|
|
16
|
+
secrets: inherit
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
name: Node.js Package
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- run: npm
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
name: Node.js Package
|
|
2
|
+
|
|
3
|
+
permissions:
|
|
4
|
+
id-token: write
|
|
5
|
+
contents: read
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
release:
|
|
9
|
+
types: [published]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
npm:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v6
|
|
16
|
+
- uses: actions/setup-node@v6
|
|
17
|
+
with:
|
|
18
|
+
node-version: '24.x'
|
|
19
|
+
registry-url: https://registry.npmjs.org/
|
|
20
|
+
- name: Set Git Version
|
|
21
|
+
id: set-git-version
|
|
22
|
+
uses: actions/github-script@v3
|
|
23
|
+
with:
|
|
24
|
+
script: return context.ref.replace(/refs\/tags\//, '')
|
|
25
|
+
result-encoding: string
|
|
26
|
+
- run: npm ci
|
|
27
|
+
env:
|
|
28
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
29
|
+
- run: npm run build
|
|
30
|
+
- run: npm version --new-version ${{steps.set-git-version.outputs.result}} --no-git-tag-version
|
|
31
|
+
- run: npm publish
|
package/.jshintrc
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bitwise": true,
|
|
3
|
-
"browser": true,
|
|
4
|
-
"browser": true,
|
|
5
|
-
"devel": true,
|
|
6
|
-
"eqeqeq": true,
|
|
7
|
-
"forin": true,
|
|
8
|
-
"freeze": true,
|
|
9
|
-
"immed": true,
|
|
10
|
-
"latedef": true,
|
|
11
|
-
"maxlen": 100,
|
|
12
|
-
"newcap": true,
|
|
13
|
-
"noarg": true,
|
|
14
|
-
"node": true,
|
|
15
|
-
"noempty": true,
|
|
16
|
-
"nonew": true,
|
|
17
|
-
"regexp": true,
|
|
18
|
-
"trailing": true,
|
|
19
|
-
"undef": true,
|
|
20
|
-
"unused": true,
|
|
21
|
-
"globals": {
|
|
22
|
-
"ActiveXObject": false,
|
|
23
|
-
"BlueButton": true,
|
|
24
|
-
"Codes": true,
|
|
25
|
-
"Core": true,
|
|
26
|
-
"Documents": true,
|
|
27
|
-
"ejs": true,
|
|
28
|
-
"Generators": true,
|
|
29
|
-
"Parsers": true,
|
|
30
|
-
"Renderers": true,
|
|
31
|
-
"describe": true,
|
|
32
|
-
"it": true,
|
|
33
|
-
"expect": true
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"bitwise": true,
|
|
3
|
+
"browser": true,
|
|
4
|
+
"browser": true,
|
|
5
|
+
"devel": true,
|
|
6
|
+
"eqeqeq": true,
|
|
7
|
+
"forin": true,
|
|
8
|
+
"freeze": true,
|
|
9
|
+
"immed": true,
|
|
10
|
+
"latedef": true,
|
|
11
|
+
"maxlen": 100,
|
|
12
|
+
"newcap": true,
|
|
13
|
+
"noarg": true,
|
|
14
|
+
"node": true,
|
|
15
|
+
"noempty": true,
|
|
16
|
+
"nonew": true,
|
|
17
|
+
"regexp": true,
|
|
18
|
+
"trailing": true,
|
|
19
|
+
"undef": true,
|
|
20
|
+
"unused": true,
|
|
21
|
+
"globals": {
|
|
22
|
+
"ActiveXObject": false,
|
|
23
|
+
"BlueButton": true,
|
|
24
|
+
"Codes": true,
|
|
25
|
+
"Core": true,
|
|
26
|
+
"Documents": true,
|
|
27
|
+
"ejs": true,
|
|
28
|
+
"Generators": true,
|
|
29
|
+
"Parsers": true,
|
|
30
|
+
"Renderers": true,
|
|
31
|
+
"describe": true,
|
|
32
|
+
"it": true,
|
|
33
|
+
"expect": true
|
|
34
|
+
}
|
|
35
|
+
}
|
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
24
|
package/.travis.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
language: node_js
|
|
2
|
-
node_js:
|
|
3
|
-
- 14
|
|
4
|
-
before_script:
|
|
5
|
-
- npm install -g grunt-cli
|
|
1
|
+
language: node_js
|
|
2
|
+
node_js:
|
|
3
|
+
- 14
|
|
4
|
+
before_script:
|
|
5
|
+
- npm install -g grunt-cli
|
package/LICENSE.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# BlueButton.js License
|
|
2
|
-
|
|
3
|
-
[The MIT License (MIT)](http://opensource.org/licenses/MIT)
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2014 [Tom Black](http://www.blacktm.com) and [contributors](https://github.com/blue-button?tab=members)
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
8
|
-
|
|
9
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
10
|
-
|
|
11
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
# BlueButton.js License
|
|
2
|
+
|
|
3
|
+
[The MIT License (MIT)](http://opensource.org/licenses/MIT)
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2014 [Tom Black](http://www.blacktm.com) and [contributors](https://github.com/blue-button?tab=members)
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
8
|
+
|
|
9
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
> This repository is an internal fork of [bluebutton.js](https://github.com/blue-button/bluebutton.js)
|
|
2
|
-
|
|
3
|
-
BlueButton.js helps developers parse and generate complex health data formats like C-CDA with ease, so you can empower patients with access to their health records.
|
|
4
|
-
|
|
5
|
-
## Quick Start
|
|
6
|
-
|
|
7
|
-
BlueButton.js supports a few different health data types, like C32 and CCDA. To parse a health document, pass the source data to `BlueButton`:
|
|
8
|
-
|
|
9
|
-
```JavaScript
|
|
10
|
-
var myRecord = BlueButton(xml);
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
BlueButton.js will detect the document type and choose the appropriate parser. The returned object has the following properties:
|
|
14
|
-
|
|
15
|
-
```JavaScript
|
|
16
|
-
myRecord.type // The document type
|
|
17
|
-
myRecord.source // The parsed source data with added querying methods
|
|
18
|
-
myRecord.data // The final parsed document data
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Detailed Documentation
|
|
22
|
-
|
|
23
|
-
[View the documentation](http://blue-button.github.io/bluebutton.js/docs) for an explanation of the data sections, much more detailed sample code, instructions on how to generate a build, etc.
|
|
24
|
-
|
|
25
|
-
## Kno2 Updates
|
|
26
|
-
|
|
27
|
-
There are a number of pre parsed sections for CCDA and C32 documents. In the orignal bluebutton.js the section name was a key off of
|
|
28
|
-
the data object containing an array of entries. Those sections now contain an object vs an array with the following properties.
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
{
|
|
32
|
-
displayName: "friendly display name",
|
|
33
|
-
templateId: "",
|
|
34
|
-
text: "<div>Some HTML for section</div>",
|
|
35
|
-
entries: []
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
1. **displayName** - Friendly name to display in viewer.
|
|
40
|
-
2. **templateId** - The HL7 templateId for the section. This currently isn't filled for the pre parsed sections such as allergies, medications, etc. For any generically created section, there will be a template id.
|
|
41
|
-
3. **text** - the narrative text (generally HTML) for each section. All the objects on data outside of demographics, document and smoking status should have this value set. We can default to displaying this HTML if there is no custom section display.
|
|
42
|
-
4. **entries** - the original array of entries
|
|
43
|
-
|
|
44
|
-
### Generic sections
|
|
45
|
-
|
|
46
|
-
We've also modified BlueButton.js to include generic sections. These are sections where a specific templateId isn't present in section mapping function for c32, ccd, etc. Generic sections only parse out narrative text, displayName and templateId.
|
|
47
|
-
this gave us the ability to still display and filter on a section that wasn't explicitly added in the BlueButton library.
|
|
1
|
+
> This repository is an internal fork of [bluebutton.js](https://github.com/blue-button/bluebutton.js)
|
|
2
|
+
|
|
3
|
+
BlueButton.js helps developers parse and generate complex health data formats like C-CDA with ease, so you can empower patients with access to their health records.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
BlueButton.js supports a few different health data types, like C32 and CCDA. To parse a health document, pass the source data to `BlueButton`:
|
|
8
|
+
|
|
9
|
+
```JavaScript
|
|
10
|
+
var myRecord = BlueButton(xml);
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
BlueButton.js will detect the document type and choose the appropriate parser. The returned object has the following properties:
|
|
14
|
+
|
|
15
|
+
```JavaScript
|
|
16
|
+
myRecord.type // The document type
|
|
17
|
+
myRecord.source // The parsed source data with added querying methods
|
|
18
|
+
myRecord.data // The final parsed document data
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Detailed Documentation
|
|
22
|
+
|
|
23
|
+
[View the documentation](http://blue-button.github.io/bluebutton.js/docs) for an explanation of the data sections, much more detailed sample code, instructions on how to generate a build, etc.
|
|
24
|
+
|
|
25
|
+
## Kno2 Updates
|
|
26
|
+
|
|
27
|
+
There are a number of pre parsed sections for CCDA and C32 documents. In the orignal bluebutton.js the section name was a key off of
|
|
28
|
+
the data object containing an array of entries. Those sections now contain an object vs an array with the following properties.
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
{
|
|
32
|
+
displayName: "friendly display name",
|
|
33
|
+
templateId: "",
|
|
34
|
+
text: "<div>Some HTML for section</div>",
|
|
35
|
+
entries: []
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
1. **displayName** - Friendly name to display in viewer.
|
|
40
|
+
2. **templateId** - The HL7 templateId for the section. This currently isn't filled for the pre parsed sections such as allergies, medications, etc. For any generically created section, there will be a template id.
|
|
41
|
+
3. **text** - the narrative text (generally HTML) for each section. All the objects on data outside of demographics, document and smoking status should have this value set. We can default to displaying this HTML if there is no custom section display.
|
|
42
|
+
4. **entries** - the original array of entries
|
|
43
|
+
|
|
44
|
+
### Generic sections
|
|
45
|
+
|
|
46
|
+
We've also modified BlueButton.js to include generic sections. These are sections where a specific templateId isn't present in section mapping function for c32, ccd, etc. Generic sections only parse out narrative text, displayName and templateId.
|
|
47
|
+
this gave us the ability to still display and filter on a section that wasn't explicitly added in the BlueButton library.
|