Skip to content

Tags now have userSelected = false not provided by user. #4819

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

Closed
michaelabuckley opened this issue May 4, 2023 · 0 comments · Fixed by #4813
Closed

Tags now have userSelected = false not provided by user. #4819

michaelabuckley opened this issue May 4, 2023 · 0 comments · Fixed by #4813

Comments

@michaelabuckley
Copy link
Contributor

michaelabuckley commented May 4, 2023

Describe the bug
Tags now have a new property not present in the input data: userSelected.

To Reproduce

Patient patient1 = new Patient();
patient1.getMeta().addTag().setSystem("http://foo").setCode("bar");
IIdType pid1 = myPatientDao.create(patient1).getId();

// when
var patientReadback = myPatientDao.read(pid1);
System.out.println(myFhirContext.newJsonParser().setPrettyPrint(true).encodeResourceToString(patientReadback));

On 6_4, and HEAD, this prints

{
  "resourceType": "Patient",
  "id": "1",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-05-04T10:37:14.596-04:00",
    "tag": [ {
      "system": "http://foo",
      "code": "bar",
      "userSelected": false
    } ]
  },
}

Note the "userSelected": false bit. This was not passed in.

Expected behavior

Print

{
  "resourceType": "Patient",
  "id": "1",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-05-04T10:37:14.596-04:00",
    "tag": [ {
      "system": "http://foo",
      "code": "bar"
    } ]
  },
}
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

Successfully merging a pull request may close this issue.

1 participant