fhir-fi / finnish-base-profiles

Finnish FHIR Base Profiles
https://hl7.fi/fhir/finnish-base-profiles/
Creative Commons Zero v1.0 Universal
1 stars 1 forks source link

Condition.code.display improperly constrained to codeset value #79

Closed jpriebe-epic closed 1 year ago

jpriebe-epic commented 1 year ago

When name differs from code.display

code.display MUST be the original name from the codesystem and code.text MAY contain adjusted name for the diagnosis.

In Epic's current FHIR implementation of conditon, we build code.display from the user-facing display name and do not constrain it to the codeset value. We do not populate code.name. Do we really need to constrain the display name if there's a codeset?

jpriebe-epic commented 1 year ago

When using Finnish ICD-10, code MUST NOT contain special characters (+ after the code and * before code indicates symptom)

Also, it's a bit weird that we exclude special characters in a FHIR specification. We're already constrained to the codeset do we need to call out that codeset values can't include special characters?

mrinnetmaki commented 1 year ago

When using Finnish ICD-10, code MUST NOT contain special characters (+ after the code and * before code indicates symptom)

Also, it's a bit weird that we exclude special characters in a FHIR specification. We're already constrained to the codeset do we need to call out that codeset values can't include special characters?

I think this refers to (or attempts to refer to?) the dagger and asterix syntax, some insights here: http://hl7.org/fhir/R4/icd.html#4.3.11.3.1.

I personally don't have any more detailed view on this. Agree the description should be clearer.

jpriebe-epic commented 1 year ago

Dual coding - might be better to say that the FI FHIR profile doesn't support dual coding as defined in the R4 spec you listed

Any response on the display name? This constraint seems unneeded and outside the spec, and will be burdensome to support.

mrinnetmaki commented 1 year ago

Regarding code.coding.display vs. code.text, see https://www.hl7.org/fhir/datatypes.html#codeableconcept.

text should be the more liberal one. display should match what's in the value set.

jpriebe-epic commented 1 year ago

Yeah you're totally right that the standard says display matches codeset.

On further review Epic does in fact import the codeset names into the database field that ends up populating our condition resource. So the name served in FHIR should match what's in the original codeset when imported.

It's not super strictly controlled that name conforms to codeset, system admins can override it but they rarely do so.

No further issues in this ticket.