synthetichealth / synthea

Synthetic Patient Population Simulator
https://synthetichealth.github.io/synthea
Apache License 2.0
2.14k stars 644 forks source link

ICD-10 and/or CPT code inclusion #403

Closed SQLDataNinja closed 4 years ago

SQLDataNinja commented 6 years ago

Hello, Is there a chancee that inclusion of ICD-10 and/or CPT Codes to patient encounter and procedure data might be on the roadmap for this awesome project?

Thanks!

jawalonoski commented 6 years ago

Short answer is "only if it is included by the user as part of a value set."

See #347 and #380.

In general, the idea is that inside a module a user may specify a FHIR ValueSet instead of a single code and the system will randomly use different codes from that value set in the records. That value set can be provided locally or from a service like VSAC (https://vsac.nlm.nih.gov).

We do not plan to embed ICD-10 or CPT in the repository due to licensing issues (both real and/or perceived).

jawalonoski commented 4 years ago

Closed with #709.

In order for ValueSets to be used, you need to specify a FHIR terminology server using the generate.terminology_service_url property and have a module with ValueSet specified.

ValueSets can be specified in any State that contains a code. Just add a value_set attribute in addition to the system, code, and display.

For example:

{
  "system": "SNOMED-CT",
  "code": "2501000087107",
  "display": "MRI of right knee with contrast",
  "value_set": "http://snomed.info/sct?fhir_vs=ecl/<<2491000087104"
}
jerrydeng commented 6 months ago

The example value_set: "http://snomed.info/sct?fhir_vs=ecl/<<2491000087104" links to a 404 page. I was wondering if you can give an example of local value_set or what would a terminology server/service link look like. Does the server need to be specific query URL and give a simple txt/json/xml response? What would be the lowest hanging fruit approach? Modify all modules to include some ICD directly on value_set attribute for each encounter codes?