Git Product home page Git Product logo

vscode-fhir-tools's Introduction

Donate

Do you like this extension? Help me to make it better with a donation, click the first button.

vscode-fhir-tools

Vscode-fhir-tools is an open-source extension for Visual Studio Code that implement some tools for the FHIR® standard created by Yannick Lagger. This project is not affiliated with, or approved or sponsored by, HL7.

FHIR® is the registered trademark of HL7 and is used with the permission of HL7. Use of the FHIR trademark does not constitute endorsement of this product by HL7.

See the release notes for the full set of changes

Features

Convert XML FHIR resource to JSON

Convert XML FHIR resource to JSON

  • Right click on xml resource
  • Select "FHIR xml to json

Convert JSON FHIR resource to XML

Convert JSON FHIR resource to XML

  • Right click on json resource
  • Select "FHIR json to xml

Validate FHIR resource (XML or JSON)

Validate FHIR resource

  • Right click on json or xml resource
  • Select "FHIR validate resource" - The terminal will launch and validate the resource

Run IGPublisher in terminal

  • Open the Command Palette (⇧⌘P)
  • and type "FHIR run IGPublisher" - The terminal will launch and run the FHIR IG Publisher with -ig ig.ini as parameter

update IG Publisher and Validator

The Java validator and IG Publisher are updated frequently. You can update the tooling by opening the Command Palette (⇧⌘P) and type "FHIR update Java Validator and IGPublisher"

Validate FHIR resource with multiple parameters

Validate FHIR resource with params

  • Right click on json or xml resource
  • Select "FHIR validate resource (with params)"
  • Set parameters to the inputbox
  • The terminal will launch and validate the resource

Fhirpath search on resource

Fhirpath tool

  • Right click on json or xml resource
  • A new panel on the right side will open
  • You can then try your fhirpath queries and immediatly see the result

Requirements

The resource validation use the official FHIR validator. For this reason you must have JAVA jre installed and in your path.

Known Issues

At the moment there are no known issues. If you find some issues please create an issue on github

Licence

Copyright (C) Yannick Lagger, Switzerland. Fhir-tools is released under the Apache-2.0

Other used open source project

vscode-fhir-tools's People

Contributors

laggery avatar oliveregger avatar

Stargazers

 avatar Joshua Unrau avatar Vikram Parimi avatar  avatar Alberto Colón Viera avatar Trevor Hedley avatar Adam De Witt avatar Chau (Joe) Nguyen avatar Ahryman40k avatar Patrick Werner avatar Richard Kavanagh avatar Jens Kristian Villadsen avatar Igor Sirkovich avatar  avatar

Watchers

James Cloos avatar  avatar  avatar Richard Kavanagh avatar  avatar

vscode-fhir-tools's Issues

Using custom jar file

we are using an older version of FHIR that requires a custom jar file. I would like to be able to indicate that the custom params are all that is to be used, and that the -jar param must be included in the user defined parameters. vs using the jar the extension retrieved.

I would also like to have the parameters/settings saved so that I don't need to copy and paste the parameters each time I want to validate a file.

FHIR validation failed

Hi,
tried the validation, but get the following error is displayed in the output:

i (FHIR validate resource): {
  "url": "https://kodjin-staging.edenlab.dev/fhir/Observation/$validate",
  "method": "POST",
  "status": 401,
  "responseText": ""
}

can i choose the fhir-server used for validation and/or it's credentials?

thanks in advance

Menu Commands

I have installed the extension and do not see the new commends in the "Edit" menu (as per your screenshots).

I have tried with both an XML and JSON file in the editor but neither work.

'FHIR validate resource' command didn’t handle the case of spaces in the file name

If the file name contains any spaces, the validation will failed.

If the file name is 'test data.json', the command will run the CL
java -jar c:\Users\XXX\.vscode\extensions\yannick-lagger.vscode-fhir-tools-1.4.0\validator_cli.jar test data.json -version 4.0.1
which will lead to the issue to parse the file name.

I think the command should run the CL with "" like:
java -jar c:\Users\XXX\.vscode\extensions\yannick-lagger.vscode-fhir-tools-1.4.0\validator_cli.jar "test data.json" -version 4.0.1

It validates only against FHIR 4.0

When validating a structure definition you can read the fhirVersion element and base the argument for -version on the HL7 validator on this value. fhirVersion is not a mandatory field so the -version can be 4.0 by default. An alternative is to have the version be configurable.

Conversion large file xml to json does nothing

Trying to convert a large FHIR file from xml to json. It is 100MB (because it contains base64 encoded documents). Is there a limitation on the size which can be converted?

(The conversion does nothing - no message, no conversion)

XML<->JSON conversion to new file

Can you add functionality to convert between XML and JSON without simply replacing the current file.
For example, I'd like to be able to select a file someFile.xml, right-click on it, select "FHIR XML to JSON", and have it create a new someFile.json, rather than replacing the .XML file with .JSON file.

Post conversion document type

Starting with a FHIR JSON file, I ran the JSON to XML conversion

The XML was created correctly, however, the language mode was still JSON - can this be flipped to XML automatically?
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.