FHIR / FHIR/GoFSH

How to specify base profiles?

Aperta
#201 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
40
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm using `fhirToFsh(fhir[, options])` to convert a JSON resource to an FSH string...
It's returning an error: `Cannot reliably export top-level caret rules for XXX because GoFSH cannot find a definition for its parent: https://YYYY.`
I looked through the options for a way to provide the base/parent profile definition, but there doesn't seem to be a way. The only way I can see is to specify a dependency to an IG... But, in this case, the profile I'm converting to FSH is part of the same IG as the base/parent profile, and the IG isn't published.
Is it possible to provide `fhirToFsh()` the definition of the parent profile to avoid this error? If not, can I request that a change be made to support this?

Perhaps, for example:

```
const options = {
dependencies: ['uscore@1.0.1'],
relatedProfiles: [ profile2, profile ],
};
const fsh = fhirToFsh(profile1, options);
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.