Skip to content

Use ServiceRequest.reasonCode for "Diagnostic" (free-text now, coded later) #481

@lionel-cremer

Description

@lionel-cremer

The “Diagnostic” field is currently a free-text input and is mapped to ServiceRequest.note.

According to the IG, the diagnosis (or justification) of the requested service is expected in ServiceRequest.reasonCode (see IG extract).

The BeSafeShare team’s intention is to move this field to a coded value set (as already mentioned in the IG > see screenshot), but we’d like to avoid changing the target FHIR element later on.

Suggested approach

Always map Diagnostic to ServiceRequest.reasonCode, even when the content is free-text.

Proposed structure:

"reasonCode":[
  {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "261004008",
        "display": "Diagnostic intent (qualifier value)"
      }
    ],
    "text": "Prescriber free-text input"
  }
]

Why this helps

  • Keeps the mapping aligned with the IG from day one
  • Avoids a breaking change for integrators when switching to coded diagnostics
  • Keeps note for actual narrative comments instead of clinical intent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions