You do your thing –
FMD is our job

grouping
    pack information
    pack information
           :
    pack information
pack information
    date and time of scan
    unique identifier
    pack details
	product code
	serial number
	expiry date
	batch number
	national health reimbursement number
    FMD request
	FMD operation
	FMD result
	pack status
	NMVS original response
	NMVS response time
    alarm handling 
	detailed alarm message
	comment field
	solved
<Shipment snr=“Grouping Name“>
  <Content dfi=“IFA“>
    <PPN>111234567842</PPN>
    <LOT>1A234B5</LOT>
    <EXP>151231</EXP>
    <SN>1234567890123456</SN>
  </Content>
  <Content dfi=“GS1“>
    <GTIN>04150123456792</GTIN>
    <LOT>1A234B6</LOT>
    <EXP>151232</EXP>
    <SN>1234567890123457</SN>
</Content>
<Shipment>
REQUEST

https://service-v10.medaspis.org/get/PRIMARY_KEY
RESPONSE

Body[
  {
    History: [
      {
        "ProductCode": "05000456013482",
        "Exp": "201200",
        "Batch": "00001",
        "SerialNo": "0000000158"
      },
      {
        "ProductCode": "05000456013482",
        "Exp": "201200",
        "Batch": "00001",
        "SerialNo": "0000000161"
      },
      {
        "ProductCode": "05000456013482",
        "Exp": "201200",
        "Batch": "00001",
        "SerialNo": "0000000167"
      },
      {
        "ProductCode": "05000456013482",
        "Exp": "201200",
        "Batch": "00001",
        "SerialNo": "0000000164"
      }
    ]
  }
]
aggregation
    pack information
    pack information
           :
    pack information
parent aggregation
    child aggregation
    child aggregation
           :
    child aggregation
        grand child aggregation
        grand child aggregation
             pack information
             pack information
01041500671116151722123110299192△2115013467084563
(01)04150067111615(17)221231(10)299192△(21)15013467084563
PC  (01)04150067111615
EXP (17)221231
LOT (10)299192
SN  (21)15013467084563
{
"res": {
"cod": "SP-002",
"mes": "Decommission action DISPENSE successful",
"hid": ""
},
"tx": {
"ctx": "3fff696a-040a-4ec0-8eb7-cd684b7b3054",
"stx": "c8f9533c-de23-4026-8868-b66821f53f64"
},
"prod": {
"pc": "04150067111615",
"pcs": "GTIN",
"lot": "299192",
"exp": "221231",
"expNMVS": "2022-12-31",
"nhrn": "07611161"
},
"pack": {
"sn":
"15013467084563",
"state": "INACTIVE",
"reasons": [
"SUPPLIED"
]
},
"prods": null
}
{
  "Header": {
    "Auth": {
     "ClientLoginId": "WHSTEST",
     "UserId": "MEDASTEST",
     "SubUserId": null
    },
    "Transaction": {
     "Language": "eng",
     "ClientTrxId": "33223fbba24f40c196e96302adca315f",
     "NMVSTrxId": "34510b6de5ea4ca1a52e7e1e773d01de",
     "Timestamp": "2021-01-12T19:25:58.83+01:00"
    },
    "Notification": null
  },
  "Body": {
    "Product": {
      "ProductCode": {
        "scheme": 0,
        "Value": "15412345678905"
      },
      "IntermarketFlagSpecified": false,
      "NHRN": "15412345678905",
      "ProductInfoRef": null,
      "Batch": {
        "Id": "LT150.ZAY-QWM/I",
        "ExpDate": "210900",
        "ExpDateNMVS": "2021-09-30T00:00:00",
        "ExpDateNMVSSpecified": true
      }
    },
    "Pack": {
      "Reason": null,
      "sn": "SNZAYQWM05044",
      "state": 0
    },
    "ReturnCode": {
      "code": 58,
      "desc": "Successfully processed."
      }
   }
}
{
  "Uprc": null,
  "Information": "The pack has been supplied.",
  "OperationCode": "11210200",
  "State": {
    "value": "Supplied",
    "displayName": "Supplied"
  },
  "StatusCode": 200,
  "Warning": null
}