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

injecting concepts should also inject a vocabulary object with concept_id #8

Open
barabo opened this issue Jun 14, 2024 · 0 comments
Open

Comments

@barabo
Copy link
Owner

barabo commented Jun 14, 2024

Each vocabulary should map to a vocabulary.concept_id, which can be injected along with concept.

This is needed in classes like AllergyIntolerance and Encounter for columns like condition_source_concept_id.

For example, this coding should go from this:

...
  "code": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "232347008",
        "display": "Dander (animal) allergy"
      }
    ],
    "text": "Dander (animal) allergy"
  },
...

To this:

...
  "code": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "232347008",
        "display": "Dander (animal) allergy",
        "concept": {
...
        },
        "vocabulary": {
          "vocabulary_concept_id": 44819097,
          "vocabulary_id": "SNOMED"
        }
      }
    ],
    "text": "Dander (animal) allergy"
  },
...
@barabo barabo changed the title injecting concepts should also inject a vocabulary object with concept_id injecting concepts should also inject a vocabulary object with concept_id Jun 14, 2024
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

1 participant