{
"$schema" : "http://json-schema.org/draft-04/schema#",
"required" : [ "batchCertificateOfAnalysis" ],
"additionalProperties" : false,
"properties" : {
"batchCertificateOfAnalysis" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"batchCertificateOfAnalysisHeader" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"documentDateTime" : {
"$ref" : "#/definitions/dateTime"
},
"description" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"note" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"batch" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"manufacturerItemIdentification" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"supplierItemIdentification" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"manufacturingParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"location" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"address" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"addressLine" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"cityName" : {
"$ref" : "#/definitions/string"
},
"countryCode" : {
"$ref" : "#/definitions/token"
},
"postalCode" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
}
}
}
}
}
}
},
"manufactureDateTime" : {
"$ref" : "#/definitions/dateTime"
},
"supplierParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"location" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"address" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"addressLine" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"buildingNumber" : {
"$ref" : "#/definitions/string"
},
"streetName" : {
"$ref" : "#/definitions/string"
},
"floor" : {
"$ref" : "#/definitions/string"
},
"unit" : {
"$ref" : "#/definitions/string"
},
"cityName" : {
"$ref" : "#/definitions/string"
},
"countryCode" : {
"$ref" : "#/definitions/token"
},
"postalCode" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
}
}
}
}
},
"manufacturingParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"location" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"address" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"addressLine" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"buildingNumber" : {
"$ref" : "#/definitions/string"
},
"streetName" : {
"$ref" : "#/definitions/string"
},
"floor" : {
"$ref" : "#/definitions/string"
},
"unit" : {
"$ref" : "#/definitions/string"
},
"cityName" : {
"$ref" : "#/definitions/string"
},
"countryCode" : {
"$ref" : "#/definitions/token"
},
"postalCode" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
}
}
}
}
}
}
},
"batchCertificateOfAnalysisLine" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"lineNumberId" : {
"$ref" : "#/definitions/normalizedString"
},
"description" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"note" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"status" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"code" : {
"$ref" : "#/definitions/normalizedString"
},
"description" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"reasonCode" : {
"$ref" : "#/definitions/normalizedString"
},
"reason" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
}
}
}
},
"classification" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"codes" : {
"type" : "object",
"required" : [ "code" ],
"additionalProperties" : false,
"properties" : {
"code" : {
"type" : "array",
"minItems" : 1,
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"description" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"note" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
}
}
}
},
"originatorParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"dunsid" : {
"$ref" : "#/definitions/normalizedString"
},
"cageid" : {
"$ref" : "#/definitions/normalizedString"
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"location" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"address" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"addressLine" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"buildingNumber" : {
"$ref" : "#/definitions/string"
},
"buildingName" : {
"$ref" : "#/definitions/string"
},
"streetName" : {
"$ref" : "#/definitions/string"
},
"cityName" : {
"oneOf" : [ {
"type" : "null"
}, {
"$ref" : "#/definitions/string"
} ]
},
"countryCode" : {
"$ref" : "#/definitions/token"
},
"postalCode" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"contact" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"personName" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"formattedName" : {
"$ref" : "#/definitions/string"
}
}
}
}
}
}
}
}
}
},
"contact" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : { }
}
}
}
},
"sampledDateTime" : {
"$ref" : "#/definitions/dateTime"
},
"testResult" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"testDetail" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"testMethodValue" : {
"type" : "array",
"items" : {
"type" : "object",
"required" : [ "content", "name" ],
"additionalProperties" : false,
"properties" : {
"content" : {
"$ref" : "#/definitions/string"
},
"name" : {
"$ref" : "#/definitions/string"
}
}
}
},
"acceptableValue" : {
"type" : "array",
"items" : {
"type" : "object",
"required" : [ "content", "name" ],
"additionalProperties" : false,
"properties" : {
"content" : {
"$ref" : "#/definitions/string"
},
"name" : {
"$ref" : "#/definitions/string"
}
}
}
},
"testSampleQuantity" : {
"$ref" : "#/definitions/decimal"
},
"inspectionParty" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"dunsid" : {
"$ref" : "#/definitions/normalizedString"
},
"cageid" : {
"$ref" : "#/definitions/normalizedString"
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
}
}
}
}
}
},
"results" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : { }
}
},
"effectiveTimePeriod" : {
"type" : "object",
"additionalProperties" : false,
"properties" : { }
}
}
}
}
}
}
}
}
}
},
"definitions" : {
"dateTime" : {
"type" : "string",
"format" : "date-time"
},
"string" : {
"type" : "string"
},
"normalizedString" : {
"type" : "string"
},
"token" : {
"type" : "string"
},
"decimal" : {
"type" : "number"
}
}
} |