1

I'm wondering if there is a way to validate FHIR profiles?

By this I mean validate the xml definition of my profile/extensions are valid, not validate a resource against my profile.

I'm asking this because I've build a tool for producing profiles, and I need to test that the output is correct (and I can't find a definitive clear document that states what is right and wrong).

I'm using HAPI if that makes a difference.

Andy
  • 3,228
  • 8
  • 40
  • 65

2 Answers2

1

the best way is to use the implementation guide publisher. See http://wiki.hl7.org/index.php?title=IG_Publisher_Documentation#Command_Line_Mode - look for the alternative mode

Grahame Grieve
  • 3,538
  • 3
  • 15
  • 17
  • Any idea where you get hold of igpublisher.jar? The documentation links to the download page: http://hl7.org/fhir/downloads.html, but it doesn't appear to be listed as a download. – Andy Nov 08 '16 at 11:01
  • You need to get the IGPublisher from the current build at build.fhir.org – Grahame Grieve Dec 04 '16 at 05:23
1

Alternatively you can upload your StructureDefinition to Simplifier.net, which will do basic validation of the StructureDefinition. When it renders correctly on the Simplifier site after uploading, you'll know you're SD is valid.

Mirjam Baltus
  • 2,035
  • 9
  • 13
  • Would you not validate the structure definition against incoming resources on the server? – Thomas Johansen May 15 '18 at 13:14
  • 1
    @ThomasJohansen rather the other way around. If you have a specific SD on your server, you can/will validate incoming resources against that. But the question was how to validate your profile (=SD). Of course, if your server has basic validation, you can validate the SD on your server as well. – Mirjam Baltus May 15 '18 at 15:30