'How to correctly map FHIR JSON Schema to PyCharm?

I have downloaded the official JSON Schema from FHIR website. I tried to map it in PyCharm using this tutorial but before applying my changes I get this error message :

Warning
JSON Schema not found or contains error in 'fhir.schema.json': Cannot load code model for JSON Schema file 'fhir.schema.json'

When using a JSON Schema online validator, I can see 147 errors in the file. Some examples:

Found 147 error(s)

Message:
    JSON is valid against no schemas from 'oneOf'.
Schema path:
    http://hl7.org/fhir/json-schema/4.0#/oneOf

Message:
    Required properties are missing from object: prescriber, patient, lensSpecification, resourceType.
Schema path:
    http://hl7.org/fhir/json-schema/4.0#/definitions/VisionPrescription/required

Message:
    Required properties are missing from object: resourceType.
Schema path:
    http://hl7.org/fhir/json-schema/4.0#/definitions/VerificationResult/required

Message:
    Required properties are missing from object: resourceType.
Schema path:
    http://hl7.org/fhir/json-schema/4.0#/definitions/ValueSet/required

When I try to follow these links, they doesn't exist (404 Error).

What can I do to successfully apply the FHIR JSON Schema ? Where can I find a valid Schema ?



Solution 1:[1]

I do not have PyCharm installed, but I've done some checking on the provided JSON schema and it worked on https://www.jsonschemavalidator.net/ against the examples also provided by the FHIR website. See here for an example.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 volpato