Skip to content

Commit

Permalink
rework -re-package to actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Feb 25, 2025
1 parent 6365012 commit 5c864a9
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7043,7 +7043,21 @@ private ConceptDefinitionComponent getDefinitionByCode(List<ConceptDefinitionCom
}
return null;
}


public boolean supplements(CodeSystem cs) {
if (!hasSupplements()) {
return false;
} else if (getSupplements().contains("|")) {
return getSupplements().equals(cs.getVersionedUrl());

} else {
return getSupplements().equals(cs.getUrl());
}
}

// end addition


}

Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void executeTask(ValidationService validationService, ValidationEngine va
}
IWorkerContext ctxt = validationEngine.getContext();
PackageReGenerator ep = new PackageReGenerator().setContext(ctxt).setScope(scope);
ep.setNpmId(cliContext.getPackageName());
for (String s : cliContext.getIgs()) {
ep.addPackage(s);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ else if (args[i].equals(HTML_OUTPUT)) {
cliContext.setMode(EngineMode.VERSION);
} else if (args[i].equals(PACKAGE_NAME)) {
cliContext.setPackageName(args[++i]);
cliContext.setMode(EngineMode.CODEGEN);
if (!hasParam(args, "-re-package")) {
cliContext.setMode(EngineMode.CODEGEN);
}
} else if (args[i].equals(TX_PACK)) {
cliContext.setMode(EngineMode.RE_PACKAGE);
String pn = args[++i];
Expand Down
Loading

0 comments on commit 5c864a9

Please sign in to comment.