FHIR Chat · Error running gofsh · shorthand

Stream: shorthand

Topic: Error running gofsh


view this post on Zulip saran (Aug 31 2021 at 19:22):

I don't have access to github. When i trying to convert us core patient profile to fsh files through gofsh i am getting this errors

(node:18900) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:18900) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
error Failed to load hl7.fhir.r4.core@4.0.1: unable to get local issuer certificate
info Processing StructureDefinitions...
warn Element in USCorePatientProfile references undefined SD-level mapping: argonaut-dq-dstu2. GoFSH has created a new Mapping named argonaut-dq-dstu2-for-USCorePatientProfile. Please review and edit the Mapping in your FSH files to provide additional information.
warn Cannot reliably export top-level caret rules for USCorePatientProfile because GoFSH cannot find a definition for its parent: http://hl7.org/fhir/StructureDefinition/Patient. If its parent is from another IG, run GoFSH again declaring that IG as a dependency.
error Could not process StructureDefinition at New folder\StructureDefinition-us-core-patient.json: Cannot read property 'id' of undefined
info Optimizing FSH definitions to follow best practices...

is there any other way to run gofsh ?

view this post on Zulip Chris Moesel (Sep 01 2021 at 12:42):

It looks like GoFSH can't download FHIR Core. I believe that GoFSH tries to download that from http://packages.fhir.org. Are you able to access that address?

view this post on Zulip saran (Sep 01 2021 at 12:44):

I am able to access that address

view this post on Zulip Chris Moesel (Sep 01 2021 at 12:51):

OK. It looks like maybe you are on a corporate network and/or some other network that does SSL inspection and inserts a self-signed certificate. If that's the case, you may need to tell node about that certificate by setting the NODE_EXTRA_CA_CERTS environment variable. See: https://nodejs.org/api/cli.html#cli_node_extra_ca_certs_file

view this post on Zulip Chris Moesel (Sep 01 2021 at 12:52):

You can also disable certificate validation via NODE_TLS_REJECT_UNAUTHORIZED (https://nodejs.org/api/cli.html#cli_node_tls_reject_unauthorized_value), but that is generally not recommended as it is disabling the security mechanisms of Node.


Last updated: Apr 12 2022 at 19:14 UTC