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

individuals.measures.measurementValue scema mismatch #3

Open
redmitry opened this issue Jun 17, 2022 · 0 comments
Open

individuals.measures.measurementValue scema mismatch #3

redmitry opened this issue Jun 17, 2022 · 0 comments
Assignees
Labels
beacon v2 spec issues Issues derived from the Beacon v2 specification and not from the software

Comments

@redmitry
Copy link

Hello,

In the individuals.json we can find:

"measures" : [
         {
            "assayCode" : {
               "id" : "LOINC:35925-4",
               "label" : "BMI"
            },
            "date" : "2021-09-24",
            "measurementValue" : {
               "quantity" : {
                  "unit" : {
                     "id" : "NCIT:C49671",
                     "label" : "Kilogram per Square Meter"
                  },
                  "value" : 26.63838307
               }
            }
         },

measurementValue is the array of either value or complexValue:

"oneOf": [{ "$ref": "./value.json" }, { "$ref": "./complexValue.json" }]

where value is:

  "oneOf": [
    { "$ref" : "./quantity.json" },
    { "$ref" : "https://raw.githubusercontent.com/ga4gh-beacon/beacon-framework-v2/main/common/ontologyTerm.json" }
  ]

the quantity is the object with "unit", "value" and optional "referenceRange" property.

There is no "quantity" property in the schema.

The data should look like:

"measures" : [
         {
            "assayCode" : {
               "id" : "LOINC:35925-4",
               "label" : "BMI"
            },
            "date" : "2021-09-24",
            "measurementValue" : {
                  "unit" : {
                     "id" : "NCIT:C49671",
                     "label" : "Kilogram per Square Meter"
                  },
                  "value" : 26.63838307
            }
         },

Cheers,

Dmitry

@mrueda mrueda added question Further information is requested beacon v2 spec issues Issues derived from the Beacon v2 specification and not from the software and removed question Further information is requested labels Aug 3, 2022
@mrueda mrueda self-assigned this Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beacon v2 spec issues Issues derived from the Beacon v2 specification and not from the software
Projects
None yet
Development

No branches or pull requests

2 participants