Extract package-id when default id unavailable

This commit is contained in:
dotasek 2022-03-01 17:03:17 -05:00
parent 4909286a4b
commit 27732602e3
1 changed files with 5 additions and 0 deletions

View File

@ -222,6 +222,11 @@ public class PackageClient {
version = v; version = v;
fVersion = e.getAsJsonArray("fhir-version").get(0).getAsString(); fVersion = e.getAsJsonArray("fhir-version").get(0).getAsString();
url = JSONUtil.str(e, "url"); url = JSONUtil.str(e, "url");
String npmPackage = JSONUtil.str(e, "package");
if (npmPackage != null && id == null) {
id = npmPackage.substring(0, npmPackage.indexOf("#"));
}
} }
} }
} }