Schema: qa_result

Schema Definition

{
    "$schema": "http:\/\/json-schema.org\/schema#",
    "type": "object",
    "description": "This sample requires the reporter include their Company and Contact details.\nOnly the identifier of the Sample is required.\n\nThe Result is supplied in a complex object.\n\n * *datetime* - An ISO formatted Date and Time\n * *image* - A URL or a Base64 Encoded text-string of a sample image\n * *certificate* - A URL or a Base64 Encoded text-string of the Test Certificate\n * *metric* - Complex Data of the Test Result\n   * \\$category The Category of Tests: general, microbe, potency, solvent, terpene\n     * \\$test - And the Value of the Result in standard unit, numeric value or one of: **pass, fail, n\/a, n\/d**\n",
    "properties": {
        "metric": {
            "type": "object",
            "description": "The Result Metrics",
            "properties": {
                "microbe": {
                    "type": "object",
                    "description": "Reporting Microbe Results in ??? Format",
                    "properties": {
                        "notes": {
                            "type": "string"
                        },
                        "e-coli": {
                            "type": "number"
                        },
                        "coliforms": {
                            "type": "number"
                        },
                        "salmonella": {
                            "type": "number"
                        },
                        "mold": {
                            "type": "number"
                        },
                        "bacteria": {
                            "type": "number"
                        }
                    }
                },
                "solvent": {
                    "type": "object",
                    "properties": {
                        "benzene": {
                            "type": "number"
                        },
                        "isobutane": {
                            "type": "number"
                        },
                        "propane": {
                            "type": "number"
                        },
                        "notes": {
                            "type": "string"
                        },
                        "pentane": {
                            "type": "number"
                        },
                        "butane": {
                            "type": "number"
                        },
                        "hexane": {
                            "type": "number"
                        }
                    }
                },
                "potency": {
                    "type": "object",
                    "properties": {
                        "cbc": {
                            "type": "number"
                        },
                        "thc_a": {
                            "type": "number"
                        },
                        "cbg_a": {
                            "type": "number"
                        },
                        "cbg": {
                            "type": "number"
                        },
                        "cbd": {
                            "type": "number"
                        },
                        "notes": {
                            "type": "string"
                        },
                        "cbn": {
                            "type": "number"
                        },
                        "cbc_a": {
                            "type": "number"
                        },
                        "cbd_a": {
                            "type": "number"
                        },
                        "cbd_va": {
                            "type": "number"
                        },
                        "thc_va": {
                            "type": "number"
                        },
                        "thc_d8": {
                            "type": "number"
                        },
                        "thc_d9": {
                            "type": "number"
                        },
                        "thc_d9_a": {
                            "type": "number"
                        },
                        "thc_v": {
                            "type": "number"
                        }
                    }
                },
                "terpene": {
                    "type": "object",
                    "properties": {
                        "notes": {
                            "type": "string"
                        }
                    }
                },
                "general": {
                    "type": "object",
                    "properties": {
                        "visual": {
                            "type": "string"
                        },
                        "notes": {
                            "type": "string"
                        },
                        "moisture": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "contact": {
            "type": "object",
            "description": "The Contact Object of the Labratory Technician Submitting Results"
        },
        "company": {
            "type": "object",
            "description": "The Company Object of the Labratory Submitting Results"
        },
        "image": {
            "type": "string",
            "description": "URL of the Product Image in a image\/png or image\/jpeg format, either a public link on the internet, or a base63 encoded data URL."
        },
        "certificate": {
            "type": "string",
            "description": "URL of the Certificate in PDF format, either a public link on the internet, or a base63 encoded data URL."
        }
    }
}

Schema Samples