Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

JSON Schema

OpenAPI Spec (POST)

OpenAPI Spec (GET)

Sample Payload

Code Block
{
  "batchCertificateOfAnalysis": {
    "typeCode": "Batch Quality Report",
    "batchCertificateOfAnalysisHeader": {
      "identifier": "Non-Production Test Batch",
      "lastModificationDateTime": "2020-08-01T09:35:00-05:00",
      "documentDateTime": "2020-08-01T09:35:00-05:00",
      "description": "We're running a batch test. This is not for production.",
      "status": {
        "code": "3344"
      },
      "batch": {
        "identifier": "5432"
      },
      "manufactureDateTime": "2019-11-03T09:34:12.000",
      "manufacturingParty": {
        "identifier": [
          "12345"
        ],
        "accountIdentifier": "123456789",
        "location": {
          "identifier": "7685",
          "postalAddress": [
            {
              "identifier": [
                "12"
              ],
              "addressLine": [
                "123 Example Street"
              ],
              "cityName": "Atlanta",
              "countrySubDivisionCode": "GA",
              "postalCode": "30316"
            }
          ]
        }
      }
    },
    "batchCertificateOfAnalysisLine": [
      {
        "attachment": [
          {
            "uri": "https://help.contentmanagementsystem.ent.company.com/manufacture/item/workcenter.mov",
            "fileName": "workcenter.mov"
          }
        ],
        "status": {
          "code": "1234",
          "reasonCode": {
            "content": "4567",
            "typeCode": "Combustible"
          },
          "reason": "Quarantined"
        },
        "sampleIdentifier": "1234",
        "sampledDateTime": "2020-09-01T09:35:00-05:00",
        "testResult": [
          {
            "identifier": "1234",
            "testDetail": {
              "methodDocumentReference": {
                "identifier": "4567",
                "description": "This document describes the method of testing.",
                "uri": "https://help.contentmanagementsystem.ent.company.com/manufacture/item/workcenter.mov",
                "name": [
                  "workcenter.mov"
                ],
                "agencyName": [
                  "QIF"
                ]
              }
            },
            "performedDateTime": "2020-08-01T09:30:00-05:00",
            "results": [
              {
                "identifier": "9876",
                "quantitative": [
                  {
                    "typeCode": "Pre-Production Testing",
                    "identifier": [
                      "929292"
                    ],
                    "resultValue": "Failed",
                    "acceptableNameValueRange": [
                      {
                        "upperLimit": {
                          "content": "Peak Volume",
                          "name": "Upper Threshold",
                          "typeCode": "Full Tank",
                          "unitCode": "ML"
                        },
                        "lowerLimit": {
                          "content": "Minimum Volume",
                          "name": "Lower Threshold",
                          "typeCode": "Empty Tank",
                          "unitCode": "ML"
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}