You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

能否指定已解压的FHIR包目录运行IG Publisher工具?

Can I Use a Pre-Extracted FHIR Package Directory with IG Publisher?

Absolutely! This approach is completely feasible and is a smart optimization to cut out the repetitive 1-2 minute decompression step—you’re totally right that the static FHIR package files don’t need unpacking every time you run the publisher.

Here’s how to implement this smoothly:

  1. Manually extract the package.tgz file first
    Use your system’s built-in tools or a utility to unpack the archive into a dedicated directory. For Unix-like systems (Linux/macOS), run this command:

    tar -xzf package.tgz -C ./package/
    

    On Windows, you can use tools like 7-Zip to extract the contents into a folder named package in your working directory.

  2. Update your IG Publisher command
    Replace the -spec package.tgz argument with the path to your extracted directory. Your command will look like this:

    java -jar org.hl7.fhir.igpublisher.jar -spec ./package/ -ig ig.json
    
  3. Verify the setup
    Run the updated command and confirm your static documentation generates correctly. It should produce identical output to when you used the .tgz file, but with a much faster start time.

A few key notes to keep in mind:

  • Keep the extracted directory’s full structure intact—don’t delete or modify any files inside. The IG Publisher depends on the complete set of FHIR specification resources and metadata files.
  • When you need to update to a newer FHIR STU3 version, re-download the corresponding package.tgz and extract it over your existing package directory (avoid patching individual files).
  • Ensure the path you pass to -spec points to the root of the extracted package (where the package.json file resides)—this is required for the publisher to locate all resources correctly.

内容的提问来源于stack exchange,提问作者tbsalling

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.13 06:22:44