fhir-py icon indicating copy to clipboard operation
fhir-py copied to clipboard

Override __eq__ for resource

Open ruscoder opened this issue 5 years ago • 3 comments

Repeat Django's behaviour, just check resource_type and id

ruscoder avatar Jan 31 '20 01:01 ruscoder

Workaround - use explicitly a.reference == b.reference

ruscoder avatar Feb 09 '20 17:02 ruscoder

It is needed for sets

ruscoder avatar Feb 25 '20 07:02 ruscoder

Let's implement __eq__ as resourceType and id check only.

ir4y avatar Apr 17 '23 05:04 ir4y