Skip to content
This repository was archived by the owner on Oct 19, 2025. It is now read-only.

Commit 99e6c53

Browse files
Merge branch 'release/0.8.0'
2 parents a2415a3 + f163b83 commit 99e6c53

13 files changed

Lines changed: 230 additions & 28 deletions

File tree

.github/workflows/bump.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: "Bump Version"
22
# include major/minor/patch in commit message
3-
# Pull after publishing release/ branch
3+
# Pull after pushing to develop
44
on:
55
push:
66
branches:
7-
- "release/**"
7+
- develop
88

99
jobs:
1010
bump-version:
@@ -16,30 +16,28 @@ jobs:
1616
uses: "actions/checkout@v2"
1717
with:
1818
ref: ${{ github.ref }}
19-
2019
- name: Generate changelog
2120
uses: charmixer/auto-changelog-action@v1
2221
with:
23-
token: ${{ secrets.github_token }}
24-
25-
- name: Commit changes
26-
uses: EndBug/add-and-commit@v7
27-
with:
28-
default_author: github_actions
29-
add: '*.md'
30-
22+
token: ${{ secrets.GITHUB_TOKEN }}
3123
- name: "cat package.json"
3224
run: cat ./package.json
3325
- name: "Setup Node.js"
34-
uses: "actions/setup-node@v2.2.0"
26+
uses: "actions/setup-node@v2.3.0"
3527
with:
3628
node-version: 12
3729
- name: "Automated Version Bump"
3830
uses: "phips28/gh-action-bump-version@v8.0.18"
3931
with:
40-
tag-prefix: 'pre-'
32+
tag-prefix: ''
4133
env:
4234
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4335
UMLS_API_KEY: ${{secrets.umls_api_key}}
4436
- name: "cat package.json"
45-
run: cat ./package.json
37+
run: cat ./package.json
38+
39+
# - name: Commit changes
40+
# uses: EndBug/add-and-commit@v7
41+
# with:
42+
# default_author: github_actions
43+
# add: '*.md'

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
timeout-minutes: 15
1313
steps:
1414
- uses: actions/checkout@v2.3.4
15-
- uses: actions/setup-node@v2.2.0
15+
- uses: actions/setup-node@v2.3.0
1616
with:
1717
node-version: 12
1818
- run: npm ci

.github/workflows/integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2.3.4
16-
- uses: actions/setup-node@v2.2.0
16+
- uses: actions/setup-node@v2.3.0
1717
with:
1818
node-version: 12
1919
- run: npm ci
@@ -25,7 +25,7 @@ jobs:
2525
# runs-on: ubuntu-latest
2626
# steps:
2727
# - uses: actions/checkout@v2.3.4
28-
# - uses: actions/setup-node@v2.2.0
28+
# - uses: actions/setup-node@v2.3.0
2929
# with:
3030
# node-version: 12
3131
# registry-url: https://registry.npmjs.org/
@@ -39,7 +39,7 @@ jobs:
3939
# runs-on: ubuntu-latest
4040
# steps:
4141
# - uses: actions/checkout@v2.3.4
42-
# - uses: actions/setup-node@v2.2.0
42+
# - uses: actions/setup-node@v2.3.0
4343
# with:
4444
# node-version: 12
4545
# registry-url: https://npm.pkg.github.com/

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v1
12-
- uses: actions/setup-node@v2.2.0
12+
- uses: actions/setup-node@v2.3.0
1313
with:
1414
node-version: 12
1515
registry-url: https://registry.npmjs.org/
@@ -31,7 +31,7 @@ jobs:
3131
# runs-on: ubuntu-latest
3232
# steps:
3333
# - uses: actions/checkout@v2.3.4
34-
# - uses: actions/setup-node@v2.2.0
34+
# - uses: actions/setup-node@v2.3.0
3535
# with:
3636
# node-version: 12
3737
# registry-url: https://npm.pkg.github.com/
@@ -56,7 +56,7 @@ jobs:
5656
# runs-on: ubuntu-latest
5757
# steps:
5858
# - uses: actions/checkout@v2.3.4
59-
# - uses: actions/setup-node@v2.2.0
59+
# - uses: actions/setup-node@v2.3.0
6060
# with:
6161
# node-version: 12
6262
# - run: npm ci
@@ -68,7 +68,7 @@ jobs:
6868
# runs-on: ubuntu-latest
6969
# steps:
7070
# - uses: actions/checkout@v2.3.4
71-
# - uses: actions/setup-node@v2.2.0
71+
# - uses: actions/setup-node@v2.3.0
7272
# with:
7373
# node-version: 12
7474
# registry-url: https://registry.npmjs.org/

.github/workflows/pullrequest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2.3.4
14-
- uses: actions/setup-node@v2.2.0
14+
- uses: actions/setup-node@v2.3.0
1515
with:
1616
node-version: 12
1717
- run: npm ci

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# Changelog
22

3+
## [v0.7.0](https://github.com/dermatologist/umlsjs/tree/v0.7.0) (2021-07-28)
4+
5+
[Full Changelog](https://github.com/dermatologist/umlsjs/compare/v0.6.1...v0.7.0)
6+
7+
## [v0.6.1](https://github.com/dermatologist/umlsjs/tree/v0.6.1) (2021-07-28)
8+
9+
[Full Changelog](https://github.com/dermatologist/umlsjs/compare/v0.6.0...v0.6.1)
10+
11+
**Merged pull requests:**
12+
13+
- Added AUI function [\#37](https://github.com/dermatologist/umlsjs/pull/37) ([apar-mistry](https://github.com/apar-mistry))
14+
15+
## [v0.6.0](https://github.com/dermatologist/umlsjs/tree/v0.6.0) (2021-07-27)
16+
17+
[Full Changelog](https://github.com/dermatologist/umlsjs/compare/v0.5.1...v0.6.0)
18+
19+
**Merged pull requests:**
20+
21+
- build\(deps\): bump actions/setup-node from 2.2.0 to 2.3.0 [\#36](https://github.com/dermatologist/umlsjs/pull/36) ([dependabot[bot]](https://github.com/apps/dependabot))
22+
23+
## [v0.5.1](https://github.com/dermatologist/umlsjs/tree/v0.5.1) (2021-07-19)
24+
25+
[Full Changelog](https://github.com/dermatologist/umlsjs/compare/0.5.0...v0.5.1)
26+
27+
**Closed issues:**
28+
29+
- localStorage is available only in a browser context. [\#32](https://github.com/dermatologist/umlsjs/issues/32)
30+
- Getting up and running [\#31](https://github.com/dermatologist/umlsjs/issues/31)
31+
32+
**Merged pull requests:**
33+
34+
- Patch 1 [\#34](https://github.com/dermatologist/umlsjs/pull/34) ([apar-mistry](https://github.com/apar-mistry))
35+
36+
## [0.5.0](https://github.com/dermatologist/umlsjs/tree/0.5.0) (2021-07-18)
37+
38+
[Full Changelog](https://github.com/dermatologist/umlsjs/compare/pre-v0.4.1...0.5.0)
39+
40+
## [pre-v0.4.1](https://github.com/dermatologist/umlsjs/tree/pre-v0.4.1) (2021-07-18)
41+
42+
[Full Changelog](https://github.com/dermatologist/umlsjs/compare/0.4.0...pre-v0.4.1)
43+
344
## [0.4.0](https://github.com/dermatologist/umlsjs/tree/0.4.0) (2021-07-18)
445

546
[Full Changelog](https://github.com/dermatologist/umlsjs/compare/0.3.2...0.4.0)
@@ -8,6 +49,22 @@
849

950
- UMLS REST API wrapper [\#8](https://github.com/dermatologist/umlsjs/issues/8)
1051

52+
**Merged pull requests:**
53+
54+
- build\(deps\): bump actions/setup-node from 1 to 2.2.0 [\#28](https://github.com/dermatologist/umlsjs/pull/28) ([dependabot[bot]](https://github.com/apps/dependabot))
55+
- build\(deps-dev\): bump husky from 4.3.0 to 7.0.0 [\#27](https://github.com/dermatologist/umlsjs/pull/27) ([dependabot[bot]](https://github.com/apps/dependabot))
56+
- build\(deps-dev\): bump typescript from 4.0.3 to 4.3.5 [\#26](https://github.com/dermatologist/umlsjs/pull/26) ([dependabot[bot]](https://github.com/apps/dependabot))
57+
- build\(deps-dev\): bump dotenv from 8.2.0 to 10.0.0 [\#24](https://github.com/dermatologist/umlsjs/pull/24) ([dependabot[bot]](https://github.com/apps/dependabot))
58+
- build\(deps-dev\): bump tslib from 2.0.3 to 2.3.0 [\#22](https://github.com/dermatologist/umlsjs/pull/22) ([dependabot[bot]](https://github.com/apps/dependabot))
59+
- build\(deps\): bump actions/checkout from 1 to 2.3.4 [\#20](https://github.com/dermatologist/umlsjs/pull/20) ([dependabot[bot]](https://github.com/apps/dependabot))
60+
- update deps [\#19](https://github.com/dermatologist/umlsjs/pull/19) ([dermatologist](https://github.com/dermatologist))
61+
- build\(deps\): bump ws from 6.2.1 to 6.2.2 [\#18](https://github.com/dermatologist/umlsjs/pull/18) ([dependabot[bot]](https://github.com/apps/dependabot))
62+
- build\(deps\): bump browserslist from 4.14.5 to 4.16.6 [\#17](https://github.com/dermatologist/umlsjs/pull/17) ([dependabot[bot]](https://github.com/apps/dependabot))
63+
- build\(deps\): bump hosted-git-info from 2.8.8 to 2.8.9 [\#16](https://github.com/dermatologist/umlsjs/pull/16) ([dependabot[bot]](https://github.com/apps/dependabot))
64+
- build\(deps\): bump lodash from 4.17.20 to 4.17.21 [\#15](https://github.com/dermatologist/umlsjs/pull/15) ([dependabot[bot]](https://github.com/apps/dependabot))
65+
- build\(deps\): bump y18n from 4.0.0 to 4.0.1 [\#14](https://github.com/dermatologist/umlsjs/pull/14) ([dependabot[bot]](https://github.com/apps/dependabot))
66+
- build\(deps\): bump axios from 0.19.2 to 0.21.1 [\#13](https://github.com/dermatologist/umlsjs/pull/13) ([dependabot[bot]](https://github.com/apps/dependabot))
67+
1168
## [0.3.2](https://github.com/dermatologist/umlsjs/tree/0.3.2) (2020-10-21)
1269

1370
[Full Changelog](https://github.com/dermatologist/umlsjs/compare/0.3.1...0.3.2)

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,49 @@ search2.init('C0009044')
3535
await search2.query()
3636
const result = search2.getResult()
3737
38+
st = await token.getSt()
39+
const search2 = new UMLSJS.CUISearch(st)
40+
search2.init('C0009044')
3841
await search2.getAtoms()
3942
const result = search2.atoms
4043
44+
st = await token.getSt()
45+
const search2 = new UMLSJS.CUISearch(st)
46+
search2.init('C0009044')
4147
await search2.getDefinitions()
4248
const result = search2.definitions
4349
50+
st = await token.getSt()
51+
const search2 = new UMLSJS.CUISearch(st)
52+
search2.init('C0009044')
4453
await search2.getRelations()
4554
const result = search2.relations
55+
56+
st = await token.getSt();
57+
const search2 = new UMLSJS.AUISearch(st);
58+
search2.init("A10134087");
59+
await search2.getChildren();
60+
const result = search2.children;
61+
62+
st = await token.getSt();
63+
const search2 = new UMLSJS.AUISearch(st);
64+
search2.init("A10134087");
65+
await search2.getDescendents();
66+
const result = search2.descendants;
67+
68+
st = await token.getSt();
69+
const search2 = new UMLSJS.AUISearch(st);
70+
search2.init("A10134087");
71+
await search2.getParents();
72+
const result = search2.parents;
73+
74+
75+
st = await token.getSt();
76+
const search2 = new UMLSJS.AUISearch(st);
77+
search2.init("A10134087");
78+
await search2.getAncestors();
79+
const result = search2.ancestors;
80+
4681
```
4782

4883

@@ -81,3 +116,4 @@ nextPage(2)
81116
## Contributor(s)
82117

83118
* [Bell Eapen](https://nuchange.ca) | [![Twitter Follow](https://img.shields.io/twitter/follow/beapen?style=social)](https://twitter.com/beapen)
119+
* [Apar Mistry](https://github.com/apar-mistry)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "umlsjs",
3-
"version": "0.5.0",
3+
"version": "0.8.0",
44
"description": "Nodejs package to access UMLS REST web-services",
55
"main": "dist/index.js",
66
"files": [

src/function/auiSearch.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* @author Apar Mistry <amist007@ucr.edu>
3+
*/
4+
import { getService } from '../service/generalService'
5+
import ConceptModel from '../model/concept'
6+
import UMLSQueryTemplate from '../model/queryTemplate'
7+
8+
class AUISearch extends UMLSQueryTemplate {
9+
async getChildren(){
10+
const params = this.fillParams({})
11+
const url = `/content/${this.version}/AUI/${this.term}/children`
12+
const response = await getService(this.st, url, params)
13+
this.children = response.result
14+
}
15+
16+
async getParents(){
17+
const params = this.fillParams({})
18+
const url = `/content/${this.version}/AUI/${this.term}/parents`
19+
const response = await getService(this.st, url, params)
20+
this.parents = response.result
21+
}
22+
23+
async getAncestors(){
24+
const params = this.fillParams({})
25+
const url = `/content/${this.version}/AUI/${this.term}/ancestors`
26+
const response = await getService(this.st, url, params)
27+
this.ancestors = response.result
28+
}
29+
30+
async getDescendents(){
31+
const params = this.fillParams({})
32+
const url = `/content/${this.version}/AUI/${this.term}/descendants`
33+
const response = await getService(this.st, url, params)
34+
this.descendants = response.result
35+
}
36+
getResult(): typeof ConceptModel {
37+
return this.result
38+
}
39+
}
40+
41+
export default AUISearch;

0 commit comments

Comments
 (0)