mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-12 07:44:43 +00:00
put jurisdiction in npm package.json
This commit is contained in:
parent
5662ec131f
commit
21e7e70a99
@ -249,6 +249,10 @@ public class NPMPackageGenerator {
|
|||||||
npm.add("directories", dir);
|
npm.add("directories", dir);
|
||||||
dir.add("lib", "package");
|
dir.add("lib", "package");
|
||||||
dir.add("example", "example");
|
dir.add("example", "example");
|
||||||
|
if (ig.hasJurisdiction() && ig.getJurisdiction().size() == 1 && ig.getJurisdictionFirstRep().getCoding().size() == 1) {
|
||||||
|
Coding c = ig.getJurisdictionFirstRep().getCodingFirstRep();
|
||||||
|
npm.add("jurisdiction", c.getSystem()+"#"+c.getCode());
|
||||||
|
}
|
||||||
String json = JsonParser.compose(npm, true);
|
String json = JsonParser.compose(npm, true);
|
||||||
try {
|
try {
|
||||||
addFile(Category.RESOURCE, "package.json", json.getBytes("UTF-8"));
|
addFile(Category.RESOURCE, "package.json", json.getBytes("UTF-8"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user