Stream: IG creation
Topic: Where to locate the build SPs?
Eric Haas (May 16 2018 at 19:50):
Where can I find the builds SPs, I want to use a R4 SP in STU3 and need to define it.
Grahame Grieve (May 16 2018 at 20:43):
SP?
Eric Haas (May 16 2018 at 20:46):
SearchParameter
Lloyd McKenzie (May 16 2018 at 20:59):
http://build.fhir.org/search-parameters.xml
Lloyd McKenzie (May 16 2018 at 21:00):
(or .json :))
Grahame Grieve (May 16 2018 at 21:19):
@Eric Haas - I changed the code - can you try again?
Eric Haas (May 16 2018 at 23:02):
FHIR Implementation Guide Publisher (v3.4.0-13762, gen-code v3.4.0-13757) @ Wednesday, May 16, 2018 4:01:26 PM
Detected Java version: 1.8.0_65 from /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre on x86_64 (64bit). 1820MB available
Package Cache: /Users/ehaas/.fhir/packages
Load Configuration from /Users/ehaas/Documents/FHIR/IG-Template2/ig.json (00.0010sec)
Logging progress
Root directory: /Users/ehaas/Documents/FHIR/IG-Template2 (00.0078sec)
Terminology Cache is at /Users/ehaas/Documents/FHIR/IG-Template2/generated_output/txCache. 66 files in cache (00.0093sec)
Contacting Build Server... (00.0093sec)
... done (00.0992sec)
Load hl7.fhir.core-3.0.1 package from /Users/ehaas/.fhir/packages/hl7.fhir.core-3.0.1 (00.0996sec)
Load Terminology Cache from /Users/ehaas/Documents/FHIR/IG-Template2/generated_output/txCache (29.0665sec)
Connect to Terminology Server at http://tx.fhir.org/r4 (29.0666sec)
-tx: Connect to http://tx.fhir.org/r4
Publishing Content Failed: Package Id for guide at http://hl7.org/fhir/us/core is unknown (contact FHIR Product Director (31.0196sec)
(31.0198sec)
Use -? to get command line help (31.0198sec)
(31.0200sec)
Stack Dump (for debugging): (31.0203sec)
java.lang.Exception: Package Id for guide at http://hl7.org/fhir/us/core is unknown (contact FHIR Product Director
at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:1341)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1016)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:474)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4480)
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4490)
Erics-Air-2:IG-Template2 ehaas$
Eric Haas (May 16 2018 at 23:02):
],
"dependencyList": [
{
"source": "dependencies/uscore-vp",
"name": "uscore",
"location": "http://hl7.org/fhir/us/core",
"version": "dev"
}
],
Grahame Grieve (May 17 2018 at 04:24):
I don't understand. I've added more debugging - wait for 13763 to build and try again
Eric Haas (May 17 2018 at 16:26):
I am using validator.pack in in the source folder is that the problem?
Grahame Grieve (May 17 2018 at 16:26):
shouldn't be, since you aren't actually using that anymore
Eric Haas (May 17 2018 at 16:31):
I thought the intent of "version": "dev" was to instruct the publisher to looks the local source file - since that is the latest and greatest?
Grahame Grieve (May 17 2018 at 16:38):
yes though you have to build that IG locally first
Eric Haas (May 17 2018 at 16:42):
I have and it is. but I don't understand your comment, because doesn't the validator.pack have everything you need even if you got the file from somebody else?
Eric Haas (May 17 2018 at 16:44):
OK so I can't build using "version": "current" gives this error:
FHIR Implementation Guide Publisher (v3.4.0-13766, gen-code v3.4.0-13757) @ Thursday, May 17, 2018 10:45:27 AM
Detected Java version: 1.8.0_65 from /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre on x86_64 (64bit). 1820MB available
Package Cache: /Users/ehaas/.fhir/packages
Load Configuration from /Users/ehaas/Documents/FHIR/IG-Template2/ig.json (00.0013sec)
Logging progress
Root directory: /Users/ehaas/Documents/FHIR/IG-Template2 (00.0081sec)
Terminology Cache is at /Users/ehaas/Documents/FHIR/IG-Template2/generated_output/txCache. 72 files in cache (01.0467sec)
Contacting Build Server... (01.0467sec)
... done (02.0514sec)
Load hl7.fhir.core-3.0.1 package from /Users/ehaas/.fhir/packages/hl7.fhir.core-3.0.1 (02.0523sec)
Load Terminology Cache from /Users/ehaas/Documents/FHIR/IG-Template2/generated_output/txCache (27.0856sec)
Connect to Terminology Server at http://tx.fhir.org/r4 (27.0857sec)
-tx: Connect to http://tx.fhir.org/r4
Fetch Package history from http://hl7.org/fhir/us/core/package-list.json
Fetch hl7.fhir.us.core-current package from http://build.fhir.org/ig/HL7/US-Core/package.tgz (29.0332sec)
Load uscore (http://hl7.org/fhir/us/core) from null-3.0.1 (29.0981sec)
Publishing Content Failed: Unable to find the file other/spec.internals in the package hl7.fhir.us.core (29.0981sec)
(29.0981sec)
Use -? to get command line help (29.0981sec)
(29.0982sec)
Stack Dump (for debugging): (29.0982sec)
java.io.IOException: Unable to find the file other/spec.internals in the package hl7.fhir.us.core
at org.hl7.fhir.utilities.cache.PackageCacheManager$PackageInfo.load(PackageCacheManager.java:103)
at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:1349)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1016)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:474)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4481)
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4491)
Erics-MacBook-Air-2:IG-Template2 ehaas$
Using "version": "dev" gives this error:
FHIR Implementation Guide Publisher (v3.4.0-13766, gen-code v3.4.0-13757) @ Thursday, May 17, 2018 10:47:12 AM
Detected Java version: 1.8.0_65 from /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre on x86_64 (64bit). 1820MB available
Package Cache: /Users/ehaas/.fhir/packages
Load Configuration from /Users/ehaas/Documents/FHIR/IG-Template2/ig.json (00.0010sec)
Logging progress
Root directory: /Users/ehaas/Documents/FHIR/IG-Template2 (00.0076sec)
Terminology Cache is at /Users/ehaas/Documents/FHIR/IG-Template2/generated_output/txCache. 72 files in cache (00.0096sec)
Contacting Build Server... (00.0097sec)
... done (01.0309sec)
Load hl7.fhir.core-3.0.1 package from /Users/ehaas/.fhir/packages/hl7.fhir.core-3.0.1 (01.0313sec)
Load Terminology Cache from /Users/ehaas/Documents/FHIR/IG-Template2/generated_output/txCache (17.0952sec)
Connect to Terminology Server at http://tx.fhir.org/r4 (17.0953sec)
-tx: Connect to http://tx.fhir.org/r4
Fetch Package history from http://hl7.org/fhir/us/core/package-list.json
Publishing Content Failed: Package Id for guide at http://hl7.org/fhir/us/core is unknown (contact FHIR Product Director (19.0274sec)
(19.0274sec)
Use -? to get command line help (19.0275sec)
(19.0276sec)
Stack Dump (for debugging): (19.0276sec)
java.lang.Exception: Package Id for guide at http://hl7.org/fhir/us/core is unknown (contact FHIR Product Director
at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:1341)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1016)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:474)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4481)
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4491)
Erics-MacBook-Air-2:IG-Template2 ehaas$
However, using "version": "1.0.1" or "version": "1.1.0" were successful ... yay...
but if you omit the config parameter "npm-name": "healthedatainc.ig-test3" ( the documentation does not say it is required -but I guess it is.)
Load Content (30.0877sec)
Publishing Content Failed: In order to be published, an Implementation Guide must have values for the elements: packageId (32.0568sec)
(32.0568sec)
Use -? to get command line help (32.0568sec)
(32.0568sec)
Stack Dump (for debugging): (32.0568sec)
org.hl7.fhir.exceptions.FHIRException: In order to be published, an Implementation Guide must have values for the elements: packageId
at org.hl7.fhir.r4.utils.NPMPackageGenerator.buildPackageJson(NPMPackageGenerator.java:80)
at org.hl7.fhir.r4.utils.NPMPackageGenerator.<init>(NPMPackageGenerator.java:60)
at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:1620)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:509)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:477)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4481)
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4491)
Erics-MacBook-Air-2:IG-Template2 ehaas$
Eric Haas (May 23 2018 at 15:20):
@Grahame Grieve ping on the this - 'current' and 'dev' dependency still is a problem in the latest build. can't get my test Ig to run.... same as above
Last updated: Apr 12 2022 at 19:14 UTC