newIdIfNoId method
returns the same resource with a new ID if there is no current ID
Implementation
Resource newIdIfNoId() => fhirId == null ? _newId(this) : this;
returns the same resource with a new ID if there is no current ID
Resource newIdIfNoId() => fhirId == null ? _newId(this) : this;