Giter Club home page Giter Club logo

Comments (2)

Robert-W avatar Robert-W commented on June 14, 2024

Hi @shanilsasikumar,

Sorry for the delayed response. Currently extensions are supported as long as it used in the extension or modifierExtension properties.

For example, I took the US Core patient from https://www.hl7.org/fhir/us/core/Patient-example.json.html which has nested custom extensions, you could return this in your resolver, and with a query that looks something like this:

{
  Patient(identifier:"example"){
    id
    extension{
      extension{
        url
        valueCoding{
          system
          code
          display
        }
      }
    }
  }
}

You would get these results (truncated the results to keep them short):

{
  "data": {
    "Patient": {
      "id": "example",
      "extension": [
        {
          "extension": [
            {
              "url": "ombCategory",
              "valueCoding": {
                "system": "urn:oid:2.16.840.1.113883.6.238",
                "code": "2106-3",
                "display": "White"
              }
            },
            {
              "url": "ombCategory",
              "valueCoding": {
                "system": "urn:oid:2.16.840.1.113883.6.238",
                "code": "1002-5",
                "display": "American Indian or Alaska Native"
              }
            },
            {
              "url": "ombCategory",
              "valueCoding": {
                "system": "urn:oid:2.16.840.1.113883.6.238",
                "code": "2028-9",
                "display": "Asian"
              }
            },
            {
              "url": "detailed",
              "valueCoding": {
                "system": "urn:oid:2.16.840.1.113883.6.238",
                "code": "1586-7",
                "display": "Shoshone"
              }
            },
            {
              "url": "detailed",
              "valueCoding": {
                "system": "urn:oid:2.16.840.1.113883.6.238",
                "code": "2036-2",
                "display": "Filipino"
              }
            }
          ]
        }
      ]
    }
  }
}

Are you looking to allow extensions to be used or to validate them?

from graphql-fhir.

Robert-W avatar Robert-W commented on June 14, 2024

Closing due to inactivity, feel free to re open if you still have questions.

from graphql-fhir.

Related Issues (17)

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.