Skip to content

Commit

Permalink
Update to SUSHI 3.4.0 and bump to 2.1.2 (#243)
Browse files Browse the repository at this point in the history
* Update to SUSHI 3.4.0

* Bump to v2.1.2
  • Loading branch information
jafeltra authored Sep 22, 2023
1 parent 68932c9 commit f56e8fa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gofsh",
"version": "2.1.1",
"version": "2.1.2",
"description": "GoFSH is a FHIR Shorthand (FSH) decompiler, able to convert formal FHIR definitions from JSON to FSH.",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -76,7 +76,7 @@
"fhir-package-loader": "^0.5.0",
"flat": "^5.0.2",
"fs-extra": "^9.0.1",
"fsh-sushi": "^3.3.3",
"fsh-sushi": "^3.4.0",
"ini": "^1.3.8",
"lodash": "^4.17.21",
"readline-sync": "^1.4.10",
Expand Down
4 changes: 2 additions & 2 deletions src/processor/AliasProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class AliasProcessor {
const ctx = parser.doc() as sushiImport.DocContext;
ctx.entity().forEach(entity => {
if (entity.alias()) {
const name = entity.alias().SEQUENCE()[0].getText();
let value = entity.alias().SEQUENCE()[1]?.getText();
const name = entity.alias().name().getText();
let value = entity.alias().SEQUENCE()?.getText();
// When the url contains a fragment (http://example.org#fragment), the grammar will read it as a
// CODE, so we also accept that for the value here
if (!value && entity.alias().CODE()) {
Expand Down

0 comments on commit f56e8fa

Please sign in to comment.