newIdIfNoId method

Resource newIdIfNoId()

returns the same resource with a new ID if there is no current ID

Implementation

Resource newIdIfNoId() => fhirId == null ? _newId(this) : this;