Skip to content

Commit ae5234b

Browse files
committed
Correct Composition.attester.mode sent as array (0..1 field in R4)
In FHIR R4, Composition.attester.mode is 0..1 (scalar code). In STU3 and DSTU2 it's 0..* (array). Apply invariant sets a scalar string for R4. STU3/DSTU2 keep the array form which is correct for those versions.
1 parent 369b601 commit ae5234b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/resource_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def self.apply_invariants!(resource)
440440
when FHIR::CommunicationRequest
441441
resource.payload = nil
442442
when FHIR::Composition
443-
resource.attester.each {|a| a.mode = ['professional']}
443+
resource.attester.each {|a| a.mode = 'professional'}
444444
resource.section.each do |section|
445445
section.emptyReason = nil
446446
section.section.each do |sub|

0 commit comments

Comments
 (0)