Transaction / Assets #database


satheesh
 

As a application owner and contract developer, you have the flexibility to define the structure of ledger data.
You can handle it based on application needs in the contract/chaincode method which is mentioned in submitTransaction.

If data is nested and you want to store it as a JSON in the ledger, you can define args in chaincode method accordingly.

Regards,
Satheesh

On Sunday, September 11, 2022 at 12:54:47 AM GMT+5:30, FemGeek <femgeek.massey@...> wrote:


How do I create an asset that has nested items for a property?  I have "serviceLines" listed as a parameter in the Submit Transaction function but I'm lost as to how to list the values in "await.contract.submitTransaction"? Please help if possible

Ex: ServiceLines": [
   {
    "ServiceTypeCode": "NU",
    "ServiceCode": "0250",
    "SubmittedLineItemServiceChargeAmount": "23.24",
    "LineItemProviderPaymentAmount": "2.39",
    "NUBCRevenueCode": "0250",
    "UnitsofServicePaidCount": "2",
    "ServiceDate": "20220122",
    "CAS": [
     {
      "Group Code": "CO",
      "ReasonCode": "45",
      "AdjustmentAmount": "20.85"
     }
    ],
    "ActualAllowedAmt": "2.39"
   },
   {
    "ServiceTypeCode": "HC",
    "ServiceCode": "99283",
    "SubmittedLineItemServiceChargeAmount": "826",
    "LineItemProviderPaymentAmount": "56.5",
    "NUBCRevenueCode": "0450",
    "UnitsofServicePaidCount": "1",
    "ServiceDate": "20220122",
    "CAS": [
     {
      "Group Code": "CO",
      "ReasonCode": "45",
      "AdjustmentAmount": "769.5"
     }
    ],
    "ActualAllowedAmt": "56.5"
   }