﻿{"$schema": "http://json-schema.org/draft-04/schema#",
	"id": "http://www.paprosinc.com/jschemas/fully_modular_draftver_9_1753jschema.json",
	"title": "MaterialDeclaration-Laboratory Report 1753 std",
	"description": "revision dated 14March2026",
	"type": "object",
	"allOf": [
		{
			"$ref": "1751B.json"
		}
	],

	"definitions": {
			"MaterialDeclaration": {
		"type": "object",
		"additionalProperties": true,
		"properties": {
			"version": {
				"type": "string",
				"enum": [
					"2.00"
				]
			},
			"BusinessInfo": {
				"$ref": "#/definitions/BusinessInfo"
			},
			"Include": {
				"anyOf": [
					{
						"$ref": "#/definitions/Include"
					},
					{
						"type": "array",
						"items": {
							"$ref": "#/definitions/Include"
						}
					}
				]
			}
		}
	},
		"Response": {
			"type": "object",
			"additionalProperties": {
				"$ref": "1751B.json#/definitions/Response"
			},
			"Laboratory": {
				"$ref": "#/definitions/Company"
			},
			"Product": {
				"additionalProperties": {
					"$ref": "1751B.json#/definitions/Product"
				},
				           "properties": {
				"ProductID": {
					"anyOf": [
						{
							"$ref": "#/definitions/ProductID"
						},
						{
							"type": "array",
							"items": {
								"$ref": "#/definitions/ProductID"
							}
						}
					]
				},
				"SampleID": {
					"anyOf": [
						{
							"$ref": "#/definitions/ProductID"
						},
						{
							"type": "array",
							"items": {
								"$ref": "#/definitions/ProductID"
							}
						}
					]
				},
				"TestRequested": {
					"anyOf": [
						{
							"$ref": "#/definitions/TestRequested"
						},
						{
							"type": "array",
							"items": {
								"$ref": "#/definitions/TestRequested"
							}
						}
					]
				},
				"Analyte": {
					"anyOf": [
						{
							"$ref": "#/definitions/Analyte"
						},
						{
							"type": "array",
							"items": {
								"$ref": "#/definitions/Analyte"
							}
						}
					]
				},
				"SubProduct": {
					"anyOf": [
						{
							"$ref": "#/definitions/Product"
						},
						{
							"type": "array",
							"items": {
								"$ref": "#/definitions/Product"
							}
						}
					]
				},
				"Sample": {
					"anyOf": [
						{
							"$ref": "#/definitions/Product"
						},
						{
							"type": "array",
							"items": {
								"$ref": "#/definitions/Product"
							}
						}
					]
				}
			}
			},
			"TestRequested": {
				"type": "object",
				"additionalProperties": true,
				"properties": {
					"identity": {
						"type": [
							"string",
							"number",
							"boolean"
						]
					},
					"version": {
						"type": "string"
					},
					"authority": {
						"type": "string"
					},
					"summary": {
						"type": "string"
					},
					"conclusion": {
						"type": "string",
						"enum": [
							"Pass",
							"Fail"
						]
					},
					"Analyte": {
						"anyOf": [
							{
								"$ref": "#/definitions/Analyte"
							},
							{
								"type": "array",
								"items": {
									"$ref": "#/definitions/Analyte"
								}
							}
						]
					}
				},
				"required": [
					"identity"
				]
			}
			},
			"Analyte": {
				"type": "object",
				"additionalProperties": true,
				"properties": {
					"name": {
						"type": "string"
					},
					"comment": {
						"type": "string"
					},
					"AnalyteID": {
						"type": "array",
						"items": {
							"$ref": "1751B.json#/definitions/UniqueIDExtended"
						}
					},
					"ReportedAmount": {
						"type": "array",
						"items": {
							"$ref": "#/definitions/ReportedAmount"
						}
					}
				},
				"required": [
					"name"
				]
			},
			"Include": {
				"type": "object",
				"additionalProperties": {
					"$ref": "1751B.json#/definitions/Include"
				},
				"properties": {
					"dataType": {
						"type": "string",
						"enum": [
							"1753WAM-2"
						]
					},
					"Sectional": {
						"type": "array",
						"minItems": 1,
						"items": {
							"$ref": "#/definitions/Sectional"
						}
					},
					"sectionalVersion": {
						"type": "string",
						"enum": [
							"2.00"
						]
					},
					"encrypted": {
						"type": "boolean"
					},
					"EncryptionMethod": {
						"$ref": "#/definitions/EncryptionMethod"
					},
					"Response": {
						"$ref": "#/definitions/Response"
					},
					"Request": {
						"$ref": "#/definitions/Request"
					},
					"Product": {
						"$ref": "1751B.json#/definitions/Product"
					}
				}
			
		},
			"EncryptionMethod": {
				"type": "object",
				"additionalProperties": true,
				"properties": {
					"standard": {
						"type": "string",
						"enum": [
							"AES",
							"DES",
							"RSA",
							"TKIP",
							"MD5",
							"other"
						]
					},
					"numberOfBits": {
						"type": "string",
						"enum": [
							"64",
							"128",
							"192",
							"256",
							"512",
							"1024",
							"2048",
							"4096"
						]
					},
					"mode": {
						"type": [
							"string",
							"number",
							"boolean"
						]
					},
					"cipherType": {
						"type": [
							"string",
							"number",
							"boolean"
						]
					},
					"output": {
						"type": "string",
						"enum": [
							"base64",
							"hex"
						]
					},
					"comment": {
						"type": "string"
					}
				},
				"required": [
					"standard",
					"numberOfBits"
				]
			},
			"Sectional": {
				"type": "object",
				"additionalProperties": true,
				"properties": {
					"name": {
						"type": "string",
						"enum": [
							"LaboratoryReport"
						]
					}
				},
				"required": [
					"name"
				]
			},
			"ReportedAmount": {
				"type": "object",
				"additionalProperties": true,
				"properties": {
					"subSampleID": {
						"type": "string"
					},
					"UOM": {
						"type": "string",
						"enum": [
							"ppm",
							"ppb",
							"massPercent",
							"ug/kg",
							"mg/kg",
							"mg/l",
							"w/w%",
							"mg",
							"g",
							"kg",
							"ug/square cm",
							"pg/square cm",
							"ug/square m",
							"mg/square cm"
						]
					},
					"value": {
						"type": "string"
					},
					"testMethod": {
						"type": "string"
					},
					"testSequence": {
						"type": "string"
					},
					"dateOfAnalysis": {
						"type": "string"
					},
					"dateOfSampleReceipt": {
						"type": "string"
					},
					"samplePreparationProcedure": {
						"type": "string"
					},
					"qualifiers": {
						"type": "string"
					},
					"laboratoryReportConclusion": {
						"type": "string"
					},
					"description": {
						"type": "string"
					},
					"LaboratoryReportingLimit": {
						"$ref": "#/definitions/LaboratoryReportingLimit"
					}
				},
				"required": [
					"subSampleID",
					"UOM",
					"value"
				]
			},
			"LaboratoryReportingLimit": {
				"type": "object",
				"additionalProperties": true,
				"properties": {
					"value": {
						"type": "string"
					},
					"typeOfLimit": {
						"type": "string",
						"enum": [
							"methodDetectionLimit",
							"reportingLimit",
							"practicalQuantitationLimit"
						]
					},
					"typeOfLimitReference": {
						"type": [
							"string",
							"number",
							"boolean"
						]
					},
					"quantitative": {
						"type": "boolean"
					},
					"UOM": {
						"type": "string",
						"enum": [
							"ppm",
							"ppb",
							"massPercent",
							"ug/kg",
							"mg/kg",
							"mg/l",
							"w/w%",
							"mg",
							"g",
							"kg",
							"ug/square cm",
							"pg/square cm",
							"ug/square m",
							"mg/square cm"
						]
					}
				},
				"required": [
					"value",
					"UOM",
					"typeOfLimit"
				]
			},
			"ProductID": {
				"type": "object",
				"additionalProperties": {
					"$ref": "1751B.json#/definitions/ProductID"
				},
				"properties": {
					"encrypted": {
						"type": "boolean"
					}
				}
			},
			"Company": {
				"type": "object",
				"additionalProperties": {
					"$ref": "1751B.json#/definitions/Company"
				},
				"properties": {
					"encrypted": {
						"type": "boolean"
					}
				}
			},
			"Contact": {
				"type": "object",
				"additionalProperties": {
					"$ref": "1751B.json#/definitions/Contact"
				},
				"properties": {
					"encrypted": {
						"type": "boolean"
					}
				}
			},
			"Manufacturer": {
				"$ref": "#/definitions/Company"
			},
			"docID": {
				"type": "string"
			},
			"docIDEncrypted": {
				"type": "boolean"
			},
			"ResponseDate": {
				"type": "string"
			},
			"responseDateEncrypted": {
				"type": "boolean"
			},
			"Attachment": {
				"type": "object",
				"additionalProperties": {
					"$ref": "1751B.json#/definitions/Attachment"
				},
				"properties": {
					"encrypted": {
						"type": "boolean"
					}
				}
			},
			"BusinessInfo": {
				"type": "object",
				"additionalProperties": {
					"$ref": "1751B.json#/definitions/BusinessInfo"
				},
				"properties": {
					"encrypted": {
						"type": "boolean"
					}
				}
			},
			"Request": {
				"type": "object",
				"additionalProperties": {
					"$ref": "1751B.json#/definitions/Request"
				},
				"properties": {
					"encrypted": {
						"type": "boolean"
					}
				}
			}
		}
	}