mskcc / LimsRest

the restful service used by the IGO LIMS
2 stars 2 forks source link

Adding source Sample/Request #173

Closed DavidStreid closed 4 years ago

DavidStreid commented 4 years ago

Adds a field sourceProjects to the request's metaData. Also adds a field sourceSampleId to each sample in the hierarchy tree from which sourceProjects is derived

{
   "request": {
   "summary": {},
   "metaData": {
      "ProjectName": "FIELD NOT IN ILABS",
      "sourceProjects": [
         "06302_X"
      ],
      "QcAccessEmails": "",
      "LaboratoryHead": "Michael Berger",
      "RequestName": "MSK-ACCESS_v1",
      "TATFromInProcessing": "16 days 05 hours and 19 min.",
      "Investigator": "Michael Berger",
      "ProjectManager": "",
      "ReceivedDate": null,
      "TATFromReceiving": "",
      "GroupLeader": "Kety Huberman",
      "LabHeadEmail": "bergerm1@mskcc.org",
      "DataAccessEmails": ""
   },
   "requestId": "06302_AG",
   "bankedSampleId": "",
   "stages": [ ... ],
   "samples": [
      {
         "sampleId": 6632496,
         "root": {
            "recordId": 6632496,
            "children": [],
            "recordName": "06302_AG_1358",
            "attributes": {
               "stage": "Library Preparation",
               "totalSamples": 0,
               "startTime": 1580409421055,
               "updateTime": 1580852906325,
               "failed": false,
               "sourceSampleId": "06302_X_1358_1_1",
               "complete": true,
               "status": "Completed - MSK Access Normalization Plate Setup"
            }
         },
        ...
}
mskbot commented 4 years ago

Can one of the admins verify this patch?