Skip to content

Conversation

@marcovisserFurore
Copy link
Contributor

@marcovisserFurore marcovisserFurore commented Mar 31, 2021

Description

Adding an extra setting IncludeMandatoryToElements to SerializeSetting . This is used during serialization with a set of elements:

var json = new FhirJsonSerializer(new SerializerSettings() { IncludeMandatoryToElements = true })
                .SerializeToDocument(obs, elements: new[] { "issued" });

In above case, not only the element issued is serialized but also the mandatory elements. For Observation is that status. So 2 elements are serialized here.

Related issues

Resolves #1653.

Testing

Unit test SerializationTests.IncludeMandatoryToElementsTest

FirelyTeam Checklist

  • Update the title of the PR to be succinct and less than 50 characters
  • Mark the PR with the label breaking change when this PR introduces breaking changes

@marcovisserFurore marcovisserFurore merged commit 6f995e1 into develop-stu3 Apr 1, 2021
@marcovisserFurore marcovisserFurore deleted the feature/1653-IncludeMandatoryToElements-stu3 branch April 1, 2021 11:30
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 this pull request may close these issues.

Elements handling during serialization

3 participants