ncpi-fhir-ig::fire:NCPI FHIR实施指南

  • v0_655725
    了解作者
  • 133.1KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-06 20:44
    上传日期
NCPI FHIR实施指南 快速开始 安装以下依赖项(请参阅): Node.js> = v10.0.0 SUSHI> = v1.2.0 Jekyll> = v4.2.0 克隆此存储库。 $ git clone git@github.com:ncpi-fhir/ncpi-fhir-ig.git $ cd ncpi-fhir-ig 运行SUSHI。 $ sushi . 更新HL7 FHIR IG Publisher。 这将下载该工具的最新版本。 如果1)该命令最近已经运行过,或者2)您不想对其进行更新,则可以跳过此步骤。 $ ./_updatePublisher.sh 生成IG。 $ ./_genonce.sh 打开文件./output/index.html以浏览生成的IG。 码头工人 作为在主机上安装依赖项的替代方法,您可能希望利用Docker容器。 创建Docker
ncpi-fhir-ig-main.zip
  • ncpi-fhir-ig-main
  • .dockerignore
    26B
  • _updatePublisher.sh
    3.6KB
  • _gencontinuous.bat
    36B
  • .github
  • workflows
  • continuous_integration.yml
    1.1KB
  • _genonce.bat
    671B
  • _gencontinuous.sh
    33B
  • Dockerfile
    1.1KB
  • _updatePublisher.bat
    6.5KB
  • input
  • fsh
  • Instance-Patient.fsh
    7KB
  • Profile-DRSDocumentReference.fsh
    329B
  • Instance-Task.fsh
    414B
  • Profile-Phenotype.fsh
    231B
  • Instance-Specimen.fsh
    2KB
  • Instance-FamilyRelationship.fsh
    1.6KB
  • Instance-Organization.fsh
    687B
  • ValueSet-DiseaseCodes.fsh
    242B
  • ValueSet-PhenotypeCodes.fsh
    247B
  • Profile-Disease.fsh
    232B
  • Profile-FamilyRelationship.fsh
    374B
  • Instance-PractitionerRole.fsh
    539B
  • Instance-DRSAttachment.fsh
    301B
  • Alias.fsh
    1.7KB
  • Instance-DRSDocumentReference.fsh
    316B
  • Instance-Phenotype.fsh
    1017B
  • Instance-Disease.fsh
    1.2KB
  • Instance-Practitioner.fsh
    725B
  • Profile-DRSAttachment.fsh
    796B
  • CodeSystem-HumanPhenotypeOntology.fsh
    71.8KB
  • images
  • ncpi-cloud.png
    83.7KB
  • ignoreWarnings.txt
    270B
  • pagecontent
  • use_cases.md
    222B
  • index.md
    67B
  • downloads.md
    551B
  • contact.md
    176B
  • StructureDefinition-disease-notes.md
    1.3KB
  • StructureDefinition-phenotype-intro.md
    367B
  • StructureDefinition-phenotype-notes.md
    1.3KB
  • authors.md
    949B
  • background.md
    208B
  • StructureDefinition-disease-intro.md
    210B
  • LICENSE
    6.4KB
  • README.md
    2.6KB
  • _genonce.sh
    911B
  • sushi-config.yaml
    2.3KB
  • .gitignore
    71B
  • ig.ini
    127B
内容介绍
# NCPI FHIR Implementation Guide ## Quick Start 1. Install the following dependencies (See [the instructions](https://fshschool.org/docs/sushi/installation/)): - Node.js >= v10.0.0 - SUSHI >= v1.2.0 - Jekyll >= v4.2.0 2. Clone this repository. ```bash $ git clone git@github.com:ncpi-fhir/ncpi-fhir-ig.git $ cd ncpi-fhir-ig ``` 3. Run SUSHI. ```bash $ sushi . ``` 4. Update the HL7 FHIR IG Publisher. This will download the latest version of the tool. This step can be skipped if 1) the command already has been run recently or 2) you don't want to update it. ```bash $ ./_updatePublisher.sh ``` 5. Generate the IG. ```bash $ ./_genonce.sh ``` 6. Open the file `./output/index.html` to browse the resulting IG. ## Docker As an alternative to installing dependencies on the host computer, you may wish to leverage a docker container. ### Create Docker image - Assuming you have [Docker](https://docs.docker.com/get-docker/) installed locally. - First create an image tagged `fsh` - The docker file will create an image with jekyll, java, node, sushi and the publisher jar file pre-installed. ``` # build docker build -t fsh . # double check dependency installation docker run --rm -it -v $(pwd)/:/src fsh sh -c "java -version && node --version && sushi --version && jekyll --version && java -jar input-cache/publisher.jar --help 2>&1 | head -1" ``` - Should produce output similar to: > openjdk version "1.8.0_242" > OpenJDK Runtime Environment (IcedTea 3.15.0) (Alpine 8.242.08-r0) > OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode) > v12.15.0 > SUSHI v1.2.0 (implements FHIR Shorthand specification v1.1.0) > ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux-musl] > jekyll 4.1.0 > FHIR IG Publisher Version 1.1.59 (Git# f189dab98e15). Built 2021-01-24T15:18:07.236Z (30 days old) ### Create shorthand alias ``` alias fsh='docker run -v $(pwd)/:/src --rm -it fsh' ``` ### Run development tools ``` fsh sushi . ``` #### Generate IG html ``` fsh ./_genonce.sh ``` ### Optimized for multiple commands You may need to run sushi or \_gen\* scripts several times in development mode. ``` # start image named `fsh` in background docker run -d -v $(pwd)/:/src -it --entrypoint "/bin/bash" --name fsh fsh # show running container docker ps >>> CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 69759e4336b7 fsh "/bin/bash" 4 seconds ago Up 3 seconds 4000/tcp, 35729/tcp fsh # create alias referencing the running container alias fsh='docker exec fsh' # run commands per above on running container ``` ### View the output of the IG ``` ls -l output/*.zip ```
评论
    相关推荐