Coder Social home page Coder Social logo

Comments (3)

anthonysena avatar anthonysena commented on July 17, 2024

Part of my question is answered in the vignette: https://ohdsi.github.io/Capr/articles/CAPR_tutorial.html#importing-existing-json-cohorts

cd2 <- readInCirce("~/Documents/NetworkStudy/COVID/inpatientCovid.json")

I didn't see the option to do this from a ConceptSet JSON but just wanted to note that part of my list above is already addressed. Also, looking at the signature for readInCirce the parameters to connect to the vocabulary is required. I'm wondering why those are required for reading in the Circe JSON?

from capr.

mdlavallee92 avatar mdlavallee92 commented on July 17, 2024

Sorry for the delay @anthonysena, github issues were linked to an old email and I missed some of this.

To answer your question about why vocabuaryDatabaseSchema is needed for the readInCirce, the function requires a lookup of the conceptId in the vocabulary tables. The reason for this is because I am using metaprogramming in R to create a series of calls to recreate the inputs of the json. In essence it is doing the getConceptIdDetails command behind the scenes to get the conceptId input in the right format to build a conceptSetExpression. Admittedly it is a bit redundant but it also provides a bug trace to check the R code is compiling properly. Does that make sense?

As for a conceptSetExpression json output, I am happy to render that if there is a standard format I can follow. I will check the circe-be structures. I will work on it in a test branch

from capr.

mdlavallee92 avatar mdlavallee92 commented on July 17, 2024

Closing issue since it will no longer apply to capr v2

from capr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.