Skip to content

Strip out _text field of resources stored in the local database #1992

Open

Description

Is your feature request related to a problem? Please describe.
The _text field is a narrative (typically encoded in HTML(!!!)) for rendering the resource on screen. It's not something we can use on Android easily, and it's typically not something the user cases about and wants to edit. It can be large, especially for resources originated from external systems (can be auto generated).

Describe the solution you'd like
We might want to strip out the _text field from resources downloaded from a server.

This will result in correct behaviour in syncing, only because we sync the patches rather than the whole resources... therefore, we also need to block changes to _text.

Describe alternatives you've considered

  • Keep the status quo
  • Make this optional so that developers can choose if to strip this out?
  • Make this generic so that developers can choose to strip any field(s) out, this can be very powerul. And we can provide a default setting which is to strip out _text

Additional context
https://www.hl7.org/fhir/domainresource-definitions.html#DomainResource.text

This is releated to #1990

Would you like to work on the issue?
NA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

P1High priority issueeffort:mediumMedium effort - 3 to 5 days

Type

No type

Projects

  • Status

    In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions