Closed radver closed 5 years ago
Hi there,
You can add example schemas here: https://github.com/bobby-brennan/fhir-swagger/tree/master/schemas
The schemas that are there came from this page. It's possible they've added new schemas since the last download. Happy to accept a PR with ActivityDefinition or any other schema examples.
Hello,
Thank you so much for the reply. Unfortunately, the application is giving me ETIMEOUT error now:
[cid:image001.png@01D4A285.C7E3EB60]
Any suggestions to resolve this?
Also, is it possible to start with few resources, instead of all of them? I want to convert say 4-5 JSON files (such as Patient, Practitioner, Organization, etc. ) to Swagger format. Not sure if the tool will allow, if yes, next question is how and where?
Thank you in advance for looking into the issues. Appreciate your response.
Kind regards, Radhika
From: Bobby Brennan notifications@github.com Sent: Wednesday, January 2, 2019 10:19 AM To: bobby-brennan/fhir-swagger fhir-swagger@noreply.github.com Cc: Verma, Radhika radhika.verma@ehealthontario.on.ca; Author author@noreply.github.com Subject: Re: [bobby-brennan/fhir-swagger] Failed to find schema examples (#11)
Hi there,
You can add example schemas here: https://github.com/bobby-brennan/fhir-swagger/tree/master/schemashttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_bobby-2Dbrennan_fhir-2Dswagger_tree_master_schemas&d=DwMFaQ&c=JZUmuHfvZaOkNOGiUpQbGyGsM8Jf9oFbjpAib-DiM1Q&r=uvzbDYZhCCnIUq86Jdwe6NfXsmCVeFnCqsYsVg9lvZC3aHmeI950ryi0wBp22rkT&m=wj3gdZZIQgndhoL_15vrZf3Z7x-qRZQHB2vOYg8D-8o&s=NVL8B4D18-A8rr1vMU6kB9WyPV2ElA_9CCI8wBMJB0o&e=
The schemas that are there came from this pagehttps://urldefense.proofpoint.com/v2/url?u=https-3A__www.hl7.org_fhir_downloads.html&d=DwMFaQ&c=JZUmuHfvZaOkNOGiUpQbGyGsM8Jf9oFbjpAib-DiM1Q&r=uvzbDYZhCCnIUq86Jdwe6NfXsmCVeFnCqsYsVg9lvZC3aHmeI950ryi0wBp22rkT&m=wj3gdZZIQgndhoL_15vrZf3Z7x-qRZQHB2vOYg8D-8o&s=HvZipXfRqV9Fxb5sSkDq8aT6VdGqz_yU5uiRMbuqrsA&e=. It's possible they've added new schemas since the last download. Happy to accept a PR with ActivityDefinition or any other schema examples.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_bobby-2Dbrennan_fhir-2Dswagger_issues_11-23issuecomment-2D450890276&d=DwMFaQ&c=JZUmuHfvZaOkNOGiUpQbGyGsM8Jf9oFbjpAib-DiM1Q&r=uvzbDYZhCCnIUq86Jdwe6NfXsmCVeFnCqsYsVg9lvZC3aHmeI950ryi0wBp22rkT&m=wj3gdZZIQgndhoL_15vrZf3Z7x-qRZQHB2vOYg8D-8o&s=CLClmvnTpHmh-7MnLic-2NYyZOTrEZ-oZFuVIJQ69wI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_Ap9qXPaX1uurT1WR0nAUSS4tdDboIAGZks5u-5FM3MgaJpZM4ZkCUz&d=DwMFaQ&c=JZUmuHfvZaOkNOGiUpQbGyGsM8Jf9oFbjpAib-DiM1Q&r=uvzbDYZhCCnIUq86Jdwe6NfXsmCVeFnCqsYsVg9lvZC3aHmeI950ryi0wBp22rkT&m=wj3gdZZIQgndhoL_15vrZf3Z7x-qRZQHB2vOYg8D-8o&s=1NwV1muk4G2HPYe9NAEyZ6BNA5WbaDT5cFe6-bqNzz4&e=.
Here is the description of the error message:
C:\Users[username]\AppData\Roaming\npm\node_modules\fhir-swagger\bin\fhir-swagger:7 if (err) throw err; ^
Error: connect ETIMEDOUT 54.87.74.90:80 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
Sounds like that URL (54.87.74.90:80
) is either unavailable or unresponsive.
There's currently no option to do a partial conversion, but I'd accept a PR that adds it.
Thank you! Appreciate your help and response.
Hi. I am getting the same error with a list of missing examples. However, I see that (e.g.) ActivityDefinition is in the examples...
Do you know why there's a discrepancy between it being in the repo and it not being able to find it?
Dug into this a little bit more. I was able to get more recent definitions by specifying the latest commit.
"fhir-swagger": "https://github.com/bobby-brennan/fhir-swagger#666e26b5ce8738b99deaa6406315448c3dab679e"
Looks like the latest needs to be included in the next version. Thoughts on when that will be? Thanks!
Published as 2.3.0
, thanks!
I still have get error:
C:\Users[username]\AppData\Roaming\npm\node_modules\fhir-swagger\bin\fhir-swagger:7
if (err) throw err;
^
Error: connect ETIMEDOUT 54.87.74.90:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
example usage: fhir-swagger fhir_url "http://localhost:8084/api/fhir/" conformance_path="/metadata?_format=application/json" r4 output swagger.json
@rbren do you know error reason?
Hello,
Whenever I execute the fhir-seagger \ command I get a lot of errors saying:
Failed to find schema example for <e.g. ActivityDefinition>
I'm not sure which file from the package do i need to modify so that the tool can generate Swagger for fhir json files.
Thank you!