Updates to registration of specimen handled by external lab
The registration of specimen handled by external lab has been implemented in ticket #1349, #1347 and #1295. There is still a problem with the ordering. The current implementation requires that JSON files are imported first before the pathology referral form can be registered. The first version that used FutureSpecimen required the opposite order.
To provide more flexibility the registration should be re-designed to be independent of the order. The FutureSpecimen solution was a bit complex so we need something simpler. The suggestion is:
- The pathology referral form should be used to register NoSpecimen items with a special option that data is expected to come in later. A special value should be set on the ReasonIfNoSpecimen annotation. In this "mode" it should also be possible to register more information that is normally not available when registering a NoSpecimen (RNA later date+time, Other path. note, etc.).
- When a JSON-file with data arrives it can be matched against an existing NoSpecimen item. Values that are missing in the JSON file can be taken from the NoSpecimen item. If there are values in both places it should be verified that they are equal. The NoSpecimen item is converted to a Specimen item.
Some changes are required in other parts:
- NoSpecimen items that are waiting for data should not be included in data releases. This is because it is not possible to change the type of an item on the relax server.
- The case summary should probably have some indication that data is expected to come in later.