Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse HL7's CDA core xsd #33

Open
leite08 opened this issue Apr 18, 2024 · 0 comments
Open

Failed to parse HL7's CDA core xsd #33

leite08 opened this issue Apr 18, 2024 · 0 comments

Comments

@leite08
Copy link

leite08 commented Apr 18, 2024

Failed to parse https://github.com/HL7/CDA-core-2.1/blob/master/schemas/normative/CDA.xsd

Output:

~/code/tmp/cxsd > npm run cxsd https://github.com/HL7/CDA-core-2.1/blob/master/schemas/normative/CDA.xsd

> cxsd
> cxsd https://github.com/HL7/CDA-core-2.1/blob/master/schemas/normative/CDA.xsd

TypeError: Cannot read properties of undefined (reading 'id')
    at ContextBase.copyNamespace (/Users/rafael/code/tmp/cxsd/node_modules/cxml/dist/xml/ContextBase.js:33:50)
    at Object.exportNamespace (/Users/rafael/code/tmp/cxsd/node_modules/cxsd/dist/xsd/Exporter.js:142:32)
    at /Users/rafael/code/tmp/cxsd/node_modules/cxsd/dist/cli.js:40:35
    at tryCatcher (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/async.js:102:5)
    at Async.drainQueues [as _onImmediate] (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/async.js:15:14)
    at process.processImmediate (node:internal/timers:476:21)
Stack:
TypeError: Cannot read properties of undefined (reading 'id')
    at ContextBase.copyNamespace (/Users/rafael/code/tmp/cxsd/node_modules/cxml/dist/xml/ContextBase.js:33:50)
    at Object.exportNamespace (/Users/rafael/code/tmp/cxsd/node_modules/cxsd/dist/xsd/Exporter.js:142:32)
    at /Users/rafael/code/tmp/cxsd/node_modules/cxsd/dist/cli.js:40:35
    at tryCatcher (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/async.js:102:5)
    at Async.drainQueues [as _onImmediate] (/Users/rafael/code/tmp/cxsd/node_modules/bluebird/js/release/async.js:15:14)
    at process.processImmediate (node:internal/timers:476:21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant