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

Is there an API to handle the ValueSet resource? #102

Open
anibal2j opened this issue Apr 12, 2023 · 2 comments
Open

Is there an API to handle the ValueSet resource? #102

anibal2j opened this issue Apr 12, 2023 · 2 comments

Comments

@anibal2j
Copy link

I need to generate ValueSet in JSON from some data that's stored in Excel. I can read the Excel data no problem (using pandas), but I'd like to have an API to be able to build a ValueSet and then have that resource export it to JSON, so that we can import it into some other system. I've been looking at this library - but can't find any classes nor API to deal with ValueSet.

If the ValueSet resource is not available in the FHIR-PY, is there another module out there that I can use?

@ruscoder
Copy link
Member

Hi @anibal2j! This library provides general resource wrappers, so it means that you can use low-level API:

my_vs = client.resource("ValueSet", {
    # Content of ValueSet resource
})
my_vs.save()

@ruscoder
Copy link
Member

If you need to execute ValueSet operations, like $expand it can be done using execute(), e.g.:

my_vs.execute('$expand')

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

2 participants