NHMDenmark / DaSSCo-Integration

This Repo will include integration of dassco storage from northtec
0 stars 0 forks source link

MOS discovery json structure #22

Open Baeist opened 7 months ago

Baeist commented 7 months ago

We need to decide on how to keep track of the individual mso assets in the database.

Which fields to include and if fields are needed in other documents in the database to reflect these.

Baeist commented 6 months ago

@bhsi-snm @PipBrewer @ThomasAlscher1991

Field Type Example Comment
_id string "0234-2344-0322-0743" This will be the same as the asset guid.
label boolean FALSE Flag used to tell if the asset is a label.
spid string "NHMD_HERBARIUM_42348791 Specimen id. Consist of institution + collection + the barcode found on the asset. This assumes no MOS MSO is possible.
label_id string "387529346" The code on the label that notes the asset as part of a MOS.
unique_label_id string "ti-ws-01_2022-08-02_387529346" Needed because labels are not necessarily unique. Assumes labels used on 1 day for a workstation are not reused. Consist of workstation name + date asset taken + label id. Which is the same as batch id + label id.
label_connections List(strings) ["0234-2344-0322-0743", "0234-2344-0322-0555"] List of guids belonging to assets connected through the same unique label id.
Baeist commented 6 months ago

Update label_id field to disposable_id

Field Type Example Comment
_id string "0234-2344-0322-0743" This will be the same as the asset guid.
label boolean FALSE Flag used to tell if the asset is a label.
spid string "NHMD_HERBARIUM_42348791 Specimen id. Consist of institution + collection + the barcode found on the asset. This assumes no MOS MSO is possible.
disposable_id string "387529346" The code on the label that notes the asset as part of a MOS.
unique_label_id string "ti-ws-01_2022-08-02_387529346" Needed because labels are not necessarily unique. Assumes labels used on 1 day for a workstation are not reused. Consist of workstation name + date asset taken + label id. Which is the same as batch id + label id.
label_connections List(strings) ["0234-2344-0322-0743", "0234-2344-0322-0555"] List of guids belonging to assets connected through the same unique label id.