{
  "$schema": "https://cara.iatfglobaloversight.org/schema/auditReportJsonSchema.json",
  "type": "object",
  "description": "Full audit report schema some fields may only apply in a specific report. Additional not specified fields will be kept in the object in CARA though never used.",
  "required": [
    "uuid",
    "DataType"
  ],
  "definitions": {
    "FileObject": {
      "type": "object",
      "description": "file object ",
      "required": [
        "Name",
        "Size",
        "Type",
        "Extension",
        "Data"
      ],
      "properties": {
        "Name": {
          "type": "string",
          "description": "Name"
        },
        "Size": {
          "type": "integer",
          "description": "Size of file in byte"
        },
        "Type": {
          "type": "string",
          "description": "file type"
        },
        "Extension": {
          "type": "string",
          "description": "file extension"
        },
        "Data": {
          "type": "string",
          "description": "file data base64 encoded including mime filetype",
          "examples": "data:application/pdf;base64,JVBER...."
        }
      }
    },
    "ShiftObject": {
      "type": "object",
      "description": "shift entry details with name and start/end time",
      "properties": {
        "ExtendedSite": {
          "type": "string"
        },
        "ShiftName": {
          "type": "string"
        },
        "StartTime": {
          "type": "integer"
        },
        "EndTime": {
          "type": "integer"
        },
        "Audited": {
          "$ref": "#/definitions/AuditCycleObject"
        },
        "required": [
          "ShiftName",
          "StartTime",
          "EndTime",
          "Audited"
        ]
      }
    },
    "AuditCycleObject": {
      "type": "object",
      "description": "boolean list of cycles the parant element was audited in",
      "required": [
        "1Surveillance"
      ],
      "properties": {
        "Stage2": {
          "type": "boolean",
          "description": ""
        },
        "1Surveillance": {
          "type": "boolean",
          "description": ""
        },
        "2Surveillance": {
          "type": "boolean",
          "description": ""
        },
        "3Surveillance": {
          "type": "boolean",
          "description": ""
        },
        "4Surveillance": {
          "type": "boolean",
          "description": ""
        },
        "5Surveillance": {
          "type": "boolean",
          "description": ""
        },
        "Recertification": {
          "type": "boolean",
          "description": ""
        }
      }
    },
    "AddressObject": {
      "type": "object",
      "description": "address object standard in CARA",
      "required": [
        "City",
        "Country",
        "Street1"
      ],
      "properties": {
        "Division": {
          "type": "string",
          "description": "",
          "examples": [
            "Division"
          ]
        },
        "State": {
          "type": "string",
          "description": "",
          "examples": [
            "State"
          ]
        },
        "City": {
          "type": "string",
          "description": "",
          "examples": [
            "Prag"
          ]
        },
        "Country": {
          "type": "string",
          "description": "",
          "examples": [
            "Czechia"
          ]
        },
        "PostalCode": {
          "type": "string",
          "description": "",
          "examples": [
            "64222"
          ]
        },
        "Street1": {
          "type": "string",
          "description": "",
          "examples": [
            "Glavna"
          ]
        },
        "Street2": {
          "type": "string",
          "description": "",
          "examples": [
            "Nová"
          ]
        }
      }
    },
    "ProcessOptionsObject": {
      "type": "object",
      "description": "container for results of specific process reference object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "value is selecetd"
        },
        "Ncs": {
          "type": "integer",
          "description": "amount of NCs integer is also accepted"
        }
      }
    },
    "ProcessValueObject": {
      "type": "object",
      "description": "process value object",
      "required": [
        "TextValue"
      ],
      "properties": {
        "0": {
          "$ref": "#/definitions/ProcessOptionsObject"
        },
        "1": {
          "$ref": "#/definitions/ProcessOptionsObject"
        },
        "2": {
          "$ref": "#/definitions/ProcessOptionsObject"
        },
        "3": {
          "$ref": "#/definitions/ProcessOptionsObject"
        },
        "4": {
          "$ref": "#/definitions/ProcessOptionsObject"
        },
        "5": {
          "$ref": "#/definitions/ProcessOptionsObject"
        },
        "6": {
          "$ref": "#/definitions/ProcessOptionsObject"
        },
        "TextValue": {
          "type": "string",
          "description": "",
          "examples": [
            "X"
          ]
        }
      }
    },
    "ActivityObject": {
      "type": "object",
      "description": "selected activities for process",
      "required": [
        "Activities",
        "ProcessId"
      ],
      "properties": {
        "Activities": {
          "type": "array",
          "description": "array of activities",
          "items": {
            "type": "integer",
            "description": "activity id from activitiesOptions",
            "examples": [
              12,
              9,
              15,
              16,
              13
            ]
          }
        },
        "ProcessId": {
          "type": "string",
          "description": "reference to process id of audit processes",
          "examples": [
            "1578422057268"
          ]
        }
      }
    },
    "OfiPAObject": {
      "type": "object",
      "description": "object used for Ofi and Positive Aspects",
      "required": [
        "Id",
        "No",
        "Statement"
      ],
      "properties": {
        "Id": {
          "type": [
            "number",
            "string"
          ],
          "description": "id of Ofi",
          "examples": [
            "1578422057268"
          ]
        },
        "No": {
          "type": "integer",
          "description": "",
          "examples": [
            "1578422057268"
          ]
        },
        "StandardClause": {
          "type": "string",
          "description": "selected clause",
          "examples": [
            "4.1"
          ]
        },
        "Process": {
          "type": "string",
          "description": "id of referenced process"
        },
        "Statement": {
          "type": "string",
          "description": "statement for ofi or positive aspect"
        },
        "CreatedBy": {
          "type": "string",
          "description": "adp number of auditor"
        }
      }
    }
  },
  "properties": {
    "uuid": {
      "type": "string",
      "description": "id for the report (#CARA: generated uuid)",
      "examples": [
        "80c1ef6b-8033-4393-bacf-30bcb360a5f5"
      ]
    },
    "ReportPdf": {
      "type": "string",
      "description": "file data base64 encoded including mime filetype",
      "examples": "data:application/pdf;base64,JVBER...."
    },
    "created": {
      "type": "integer",
      "description": "date of creation as unixtimestamp",
      "examples": [
        1578416688127
      ]
    },
    "createdBy": {
      "type": "string",
      "description": "ADP number of auditor who created the report",
      "examples": [
        "0-ADP-00-00-0000"
      ]
    },
    "changed": {
      "type": "integer",
      "description": "date of last creation of file export",
      "examples": [
        1578416688127
      ]
    },
    "exportedBy": {
      "type": "string",
      "description": "ADP number for auditor who exported the report",
      "examples": [
        "0-ADP-00-00-0000"
      ]
    },
    "DataType": {
      "type": "string",
      "description": "DataType definition for import (essential for recognition)",
      "enum": [
        "Stage1ReadinessReview",
        "AuditReport",
        "RemoteAuditReport",
        "SpecialReport",
        "NcManagement"
      ]
    },
    "CbInternal": {
      "type": "string",
      "description": "cb specific text printed"
    },
    "InternalNotes": {
      "type": "string",
      "description": "internal notes not printed"
    },
    "CertificationBody": {
      "type": "string",
      "description": "certification body id",
      "examples": [
        "100"
      ]
    },
    "AuditData": {
      "type": "object",
      "description": "All entries on audit data page",
      "properties": {
        "ReportName": {
          "type": "string",
          "description": "ReportName",
          "examples": [
            "67"
          ]
        },
        "AuditType": {
          "type": "string",
          "description": "AuditType from (#CARA auditTypeOptions)",
          "examples": [
            "4"
          ]
        },
        "LastPerformedAuditCycle": {
          "type": "string",
          "description": "Last performed audit cycle of type auditTypeOptions",
          "examples": [
            "4"
          ]
        },
        "AuditDateWaiver": {
          "type": "string",
          "description": "Waiver approved for extended audit timeline"
        },
        "SurveillanceIntervalDesired": {
          "type": "string",
          "description": "Suveillance Intervall Option Value",
          "enum": [
            "6",
            "9",
            "12"
          ]
        },
        "IsRemoteAudit": {
          "type": "string",
          "description": "audit was executed remotely",
          "enum": [
            "0",
            "1"
          ]
        },
        "IsRemoteSupportLocation": {
          "type": "boolean",
          "description": "is remote support location"
        },
        "ReasonRemoteAudit": {
          "type": "string",
          "description": "reason for remote audit"
        },
        "Standard": {
          "type": "array",
          "description": "selected Standards (#CARA empty 0 index needs false)",
          "items": {
            "type": "boolean",
            "description": "value of selected standard option",
            "examples": [
              [
                false,
                false,
                true
              ]
            ],
            "default": [
              false
            ]
          }
        },
        "CbIdentificationNo": {
          "type": "string",
          "description": "",
          "examples": [
            "23"
          ]
        },
        "CbCertificateNo": {
          "type": "string",
          "description": "",
          "examples": [
            "09"
          ]
        },
        "IATFCertificateNo": {
          "type": "string",
          "description": "",
          "examples": [
            "12"
          ]
        },
        "AuditDate": {
          "type": "object",
          "description": "start and end date of audit",
          "required": [
            "Start",
            "End"
          ],
          "properties": {
            "Start": {
              "type": "string",
              "description": "UTC DateTime as string",
              "examples": [
                "2020-05-09T00:00:00.000Z"
              ]
            },
            "End": {
              "type": "string",
              "description": "UTC DateTime as string",
              "examples": [
                "2020-05-19T00:00:00.000Z"
              ]
            }
          }
        },
        "AuditDays": {
          "type": "number",
          "description": "AuditDays as double or double as string",
          "examples": [
            11.00
          ]
        },
        "ReasonForSpecialAudit": {
          "type": "string",
          "description": "reason for special audit only in special audit (#CARA reasonsForSpecialAuditOptions)",
          "examples": [
            "1"
          ]
        },
        "ReasonForSpecialAuditOther": {
          "type": "string",
          "description": "other reason for special audit only in special audit",
          "examples": [
            "some text"
          ]
        },
        "AuditTeam": {
          "type": "array",
          "description": "list of audit team members and times on site",
          "items": {
            "type": "object",
            "description": "audit team members and times on site",
            "properties": {
              "AuditDaysPerformed": {
                "type": [
                  "string",
                  "number"
                ],
                "description": "calculated value for audit days"
              },
              "AuditorId": {
                "type": "string",
                "description": "AuditorId",
                "examples": [
                  "5-GFD-54-36-5436"
                ]
              },
              "Name": {
                "type": "string",
                "description": "Name",
                "examples": [
                  "Harry Oldman"
                ]
              },
              "DatesOnSite": {
                "type": "array",
                "description": "DatesOnSite list",
                "items": {
                  "type": "object",
                  "description": "DatesOnSite element",
                  "required": [
                    "Date",
                    "Day"
                  ],
                  "properties": {
                    "Date": {
                      "type": "string",
                      "description": "UTC DateTime as string",
                      "examples": [
                        "2020-05-09T00:00:00.000Z"
                      ]
                    },
                    "Day": {
                      "type": "number",
                      "description": "Day value spend on site",
                      "minimum": 0,
                      "maximum": 1.5
                    }
                  }
                }
              },
              "CaaNo": {
                "type": "string",
                "description": "CaaNo"
              }
            }
          }
        },
        "Translators": {
          "type": "array",
          "description": "list of translators",
          "items": {
            "type": "object",
            "description": "Translator object",
            "properties": {
              "Name": {
                "type": "string",
                "description": "Name"
              },
              "Company": {
                "type": "string",
                "description": "Company"
              }
            }
          }
        },
        "TechnicalExperts": {
          "type": "array",
          "description": "List of technical experts",
          "items": {
            "type": "object",
            "description": "TechnicalExperts name",
            "properties": {
              "Name": {
                "type": "string",
                "description": "Name"
              }
            }
          }
        },
        "Observers": {
          "type": "array",
          "description": "List of observers",
          "items": {
            "type": "object",
            "description": "Observer object",
            "properties": {
              "Name": {
                "type": "string",
                "description": "",
                "examples": [
                  "Peter Prest"
                ]
              },
              "Company": {
                "type": "string",
                "description": "",
                "examples": [
                  "JOB"
                ]
              }
            }
          }
        },
        "Witnessed": {
          "type": "string",
          "description": "Yes/No (1/0)",
          "enum": [
            "0",
            "1"
          ]
        },
        "WitnessedBy": {
          "type": "array",
          "description": "WitnessedBy",
          "items": {
            "type": "object",
            "description": "Witness object",
            "properties": {
              "Name": {
                "type": "string",
                "description": "Name"
              },
              "Company": {
                "type": "string",
                "description": "Company name"
              },
              "InternalExternal": {
                "type": "string",
                "description": "internal/external option",
                "enum": [
                  "1",
                  "2"
                ]
              }
            }
          }
        },
        "AuditPlan": {
          "description": "optional audit plan",
          "$ref": "#/definitions/FileObject"
        }
      }
    },
    "OrganizationInformation": {
      "type": "object",
      "description": "audit organization information page",
      "properties": {
        "OrganizationName": {
          "type": "string",
          "description": "",
          "examples": [
            "Just do it"
          ]
        },
        "IndustryCode": {
          "type": "string"
        },
        "Usi": {
          "type": "string"
        },
        "Address": {
          "$ref": "#/definitions/AddressObject"
        },
        "AddressNative": {
          "$ref": "#/definitions/AddressObject"
        },
        "Representative": {
          "type": "string",
          "description": "",
          "examples": [
            "Malcolm Koler"
          ]
        },
        "Email": {
          "type": "string",
          "description": "",
          "examples": [
            "justdoit@web.de"
          ]
        },
        "Telephone": {
          "type": "string",
          "description": "",
          "examples": [
            "03084248237482"
          ]
        },
        "CertificateScope": {
          "type": "string",
          "description": "",
          "examples": [
            "Certificate scope"
          ]
        },
        "CertificateScopeNative": {
          "type": "string",
          "description": "",
          "examples": [
            "Certificate scope"
          ]
        },
        "Products": {
          "type": "string",
          "description": "",
          "examples": [
            "Products"
          ]
        },
        "ExclusionProductDesign": {
          "type": "string",
          "description": "Exclusion 8.3 product design",
          "enum": [
            "0",
            "1"
          ]
        },
        "CertificateIssueDate": {
          "type": "string",
          "description": "UTC DateTime as string",
          "examples": [
            "2020-01-25T00:00:00.000Z"
          ]
        },
        "CertificateExpirationDate": {
          "type": "string",
          "description": "UTC DateTime as string",
          "examples": [
            "2023-01-23T00:00:00.000Z"
          ]
        },
        "CertifiedIso9001": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "ProductDesignResponsible16949": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "ProductDesignResponsible9001": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "ProductDesign16949Outsourced": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "CommentsDesignActivity": {
          "type": "string",
          "description": "",
          "examples": [
            "Comments about the design activity"
          ]
        },
        "OutsourcedProcesses": {
          "type": "string",
          "description": "Are there any outsourced processes?",
          "enum": [
            "0",
            "1"
          ]
        },
        "CommentsOutsourcedProcesses": {
          "type": "string",
          "description": "",
          "examples": [
            "Comments about the outsourced processes"
          ]
        },
        "PartOfCorporateAuditScheme": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "CorporateSchemeConditionsMet": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "IsSingleSite": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "ExtendedManufacturingSite": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "Requirements58rAnnex4": {
          "type": "string",
          "description": "Requirements of 5.8 r and Annex 4 have been evaluated and are confirmed?",
          "enum": [
            "0",
            "1"
          ]
        },
        "HasAuditorAudited": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "HasChangesSinceLastAudit": {
          "type": "string",
          "description": "Sets if changes occured",
          "enum": [
            "0",
            "1"
          ]
        },
        "PreviousCertificate": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "PreviousCertificateState": {
          "type": "string",
          "description": "value of certificateStateOptions",
          "examples": [
            "2",
            "1"
          ]
        },
        "IatfNo": {
          "type": "string",
          "description": ""
        },
        "CB": {
          "type": "string",
          "description": "value of siteTypeOptions"
        },
        "OnWithdrawnWasSpecialAuditConducted": {
          "type": "string",
          "description": "If certificate was withdrawn by the previous CB, was a special audit conducted before stage 1 readiness review?",
          "enum": [
            "0",
            "1"
          ]
        },
        "AllPreviousNcClosed": {
          "type": "string",
          "description": "",
          "examples": [
            "1"
          ]
        },
        "AllPreviousNcClosedEvidence": {
          "type": "string",
          "description": "",
          "examples": [
            "Evidence"
          ]
        },
        "LanguageByManagementPersonnel": {
          "type": "array",
          "description": "",
          "items": {
            "type": "string",
            "description": "",
            "examples": [
              "Bengali",
              "German",
              "Polish"
            ]
          }
        },
        "LanguageBySupportingPersonnel": {
          "type": "array",
          "description": "",
          "items": {
            "type": "string",
            "description": "",
            "examples": [
              "Old Church Slavonic / Old Bulgarian"
            ]
          }
        },
        "LanguageByManufacturingPersonnel": {
          "type": "array",
          "description": "",
          "items": {
            "type": "string",
            "description": "",
            "examples": [
              "Chechen",
              "Portuguese"
            ]
          }
        },
        "showChangesSinceLastAudit": {
          "type": "boolean",
          "description": "",
          "examples": [
            true
          ]
        },
        "TotalNumberEmployees": {
          "type": "integer",
          "description": "",
          "examples": [
            45
          ]
        },
        "DedicatedToAutomotive": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "TotalNumberAutomotiveEmployees": {
          "type": "integer",
          "description": "",
          "examples": [
            45
          ]
        },
        "CbWaiverNumber": {
          "type": "string",
          "description": ""
        },
        "Rule52hValid": {
          "type": "string",
          "description": "Are Rules 5.2 h) valid?",
          "enum": [
            "0",
            "1"
          ]
        },
        "ChangesSinceLastAudit": {
          "type": "object",
          "description": "object containing bool for each selected answer",
          "properties": {
            "0": {
              "type": "boolean",
              "description": ""
            },
            "1": {
              "type": "boolean",
              "description": ""
            },
            "2": {
              "type": "boolean",
              "description": ""
            },
            "3": {
              "type": "boolean",
              "description": ""
            },
            "4": {
              "type": "boolean",
              "description": ""
            },
            "5": {
              "type": "boolean",
              "description": ""
            },
            "6": {
              "type": "boolean",
              "description": ""
            },
            "7": {
              "type": "boolean",
              "description": ""
            },
            "8": {
              "type": "boolean",
              "description": ""
            }
          }
        },
        "ChangesSinceLastAuditComments": {
          "type": "string",
          "description": "",
          "examples": [
            "Auditor to enter comments below for any changes identified above:"
          ]
        },
        "ImpactToCertificate": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "ImpactToCertificateText": {
          "type": "string",
          "description": "",
          "examples": [
            "Impact to certificate"
          ]
        },
        "ResultingScopeChanges": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "ResultingScopeChangesDescription": {
          "type": "string",
          "description": "",
          "examples": [
            "Resulting scope changes"
          ]
        },
        "FacilityTourConducted": {
          "type": "string",
          "description": "",
          "enum": [
            "0",
            "1"
          ]
        },
        "FacilityTourConductedText": {
          "type": "string",
          "description": ""
        },
        "PpeRequirements": {
          "type": "string",
          "description": ""
        }
      }
    },
    "Processes": {
      "type": "array",
      "description": "list of processes",
      "items": {
        "type": "object",
        "description": "",
        "required": [
          "Id",
          "ProcessName",
          "OnSiteProcess",
          "ManufacturingProcess",
          "RemoteProcess"
        ],
        "properties": {
          "Id": {
            "type": [
              "number",
              "string"
            ],
            "description": "Id",
            "examples": [
              "dwe3f1d2"
            ]
          },
          "Activities": {
            "type": "array",
            "description": "list of activities supported"
          },
          "ProcessName": {
            "type": "string",
            "description": "ProcessName",
            "examples": [
              "Big Business process"
            ]
          },
          "RepresentativeName": {
            "type": "string",
            "description": "RepresentativeName",
            "examples": [
              "Chris Fulman"
            ]
          },
          "OnSiteProcess": {
            "type": "string",
            "description": "OnSiteProcess from bit",
            "examples": [
              "0",
              "1"
            ]
          },
          "ManufacturingProcess": {
            "type": "string",
            "description": "ManufacturingProcess form bit",
            "examples": [
              "0",
              "1"
            ]
          },
          "RemoteProcess": {
            "type": "string",
            "description": "RemoteProcess from bit",
            "examples": [
              "0",
              "1"
            ]
          },
          "ProcessAuditTeam": {
            "type": "array",
            "description": "ProcessAuditTeam",
            "items": {
              "type": "string",
              "description": "",
              "examples": [
                "5-GFD-54-36-5436"
              ]
            }
          },
          "ProcessEntryState": {
            "type": "string",
            "description": "optional field for auditors to handle entries (added 1.3) of entryStateOptions"
          },
          "Shifts": {
            "type": "array",
            "description": "list of shifts on site",
            "items": {
              "$ref": "#/definitions/ShiftObject"
            }
          },
          "ExtendedShifts": {
            "type": "array",
            "description": "list of shifts at extended manufacturing sites",
            "items": {
              "$ref": "#/definitions/ShiftObject"
            }
          },
          "PreviouslyAudited": {
            "type": "object",
            "description": "Infromation about previsouly audited processes (added 1.3)",
            "properties": {
              "1": {
                "type": "boolean",
                "description": "Value for infromation if audited in Stage 2 cycle"
              },
              "3": {
                "type": "boolean",
                "description": "Value for infromation if audited in Surv 1 cycle"
              },
              "4": {
                "type": "boolean",
                "description": "Value for infromation if audited in Surv 2 cycle"
              },
              "5": {
                "type": "boolean",
                "description": "Value for infromation if audited in Surv 3 cycle"
              },
              "6": {
                "type": "boolean",
                "description": "Value for infromation if audited in Surv 4 cycle"
              },
              "7": {
                "type": "boolean",
                "description": "Value for infromation if audited in Surv 5 cycle"
              }
            }
          },
          "ProcessPerformance": {
            "type": "array",
            "description": "ProcessPerformance object list",
            "items": {
              "type": "object",
              "description": "ProcessPerformance object",
              "required": [
                "CurrentTarget",
                "KPI",
                "Results",
                "Achieved",
                "TrendLastAudit"
              ],
              "properties": {
                "ProcessPerformanceHistoryObject": {
                  "type": "object",
                  "description": "On Onheritance the process perfromance history is saved (added 1.3)",
                  "properties": {
                    "AuditType": {
                      "type": "string"
                    },
                    "CurrentTarget": {
                      "type": "string",
                      "description": "CurrentTarget",
                      "examples": [
                        "Current target"
                      ]
                    },
                    "Achieved": {
                      "type": "string",
                      "description": "Achieved from positiveNegativeOptions",
                      "enum": [
                        "-1",
                        "0",
                        "1"
                      ]
                    },
                    "Results": {
                      "type": "string",
                      "description": "Results",
                      "examples": [
                        "Results"
                      ]
                    },
                    "TrendLastAudit": {
                      "type": "string",
                      "description": "TrendLastAudit from positiveNegativeOptions",
                      "enum": [
                        "-1",
                        "0",
                        "1"
                      ]
                    }
                  }
                },
                "CurrentTarget": {
                  "type": "string",
                  "description": "CurrentTarget",
                  "examples": [
                    "Current target"
                  ]
                },
                "KPI": {
                  "type": "string",
                  "description": "KPI",
                  "examples": [
                    "Process KPI(s)"
                  ]
                },
                "Results": {
                  "type": "string",
                  "description": "Results",
                  "examples": [
                    "Results"
                  ]
                },
                "Achieved": {
                  "type": "string",
                  "description": "Achieved from positiveNegativeOptions",
                  "enum": [
                    "-1",
                    "0",
                    "1"
                  ]
                },
                "TrendLastAudit": {
                  "type": "string",
                  "description": "TrendLastAudit from positiveNegativeOptions",
                  "enum": [
                    "-1",
                    "0",
                    "1"
                  ]
                }
              }
            }
          },
          "AuditNotes": {
            "type": "array",
            "description": "AuditNotes",
            "required": [
              "AuditNote"
            ],
            "items": {
              "type": "object",
              "description": "list of audit notes created",
              "properties": {
                "Id": {
                  "type": "string",
                  "description": "Id for that element"
                },
                "SectionName": {
                  "type": "string",
                  "description": "optional entry headline for the note"
                },
                "AuditNote": {
                  "type": "string",
                  "description": "process notes made by auditor"
                },
                "AuditorId": {
                  "type": "string",
                  "description": "internal/external option"
                }
              }
            }
          },
          "CustomerCsrReference": {
            "type": "array",
            "description": "list of ids to customer specific requirements",
            "items": {
              "type": "number"
            }
          },
          "CustomerCsrsAudited": {
            "type": "string",
            "description": "Description of the customer CSR's audited"
          },
          "DescriptionInteractions": {
            "type": "string",
            "description": "Description of the interactions with supporting / supported processes at other sites(s) and/or remote location(s) audited"
          },
          "4.1": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "4.2": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "4.3": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "4.4": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "5.1": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "5.2": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "5.3": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "6.1": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "6.2": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "6.3": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "7.1": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "7.2": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "7.3": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "7.4": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "7.5": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "8.1": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "8.2": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "8.3": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "8.4": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "8.5": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "8.6": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "8.7": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "9.1": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "9.2": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "9.3": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "10.1": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "10.2": {
            "$ref": "#/definitions/ProcessValueObject"
          },
          "10.3": {
            "$ref": "#/definitions/ProcessValueObject"
          }
        }
      }
    },
    "ExtendedManufacturingSites": {
      "type": "array",
      "description": "list of Extended manufacturing sites",
      "items": {
        "type": "object",
        "description": "Extended manufacturing sites",
        "required": [
          "Id",
          "Address",
          "SiteName"
        ],
        "properties": {
          "Id": {
            "type": [
              "number",
              "string"
            ],
            "Usi": {
              "type": "string"
            },
            "description": "Id",
            "examples": [
              "1578422105631"
            ]
          },
          "Comments": {
            "type": "string",
            "description": "CbIdentificationNo"
          },
          "SiteName": {
            "type": "string",
            "description": "SiteName",
            "examples": [
              "Flower"
            ]
          },
          "Address": {
            "$ref": "#/definitions/AddressObject"
          },
          "Annex4RequirementComments": {
            "type": "object",
            "description": "Annex requirements",
            "required": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7"
            ],
            "properties": {
              "0": {
                "type": "string",
                "description": "Is there one single quality management system including the main site and extended manufacturing site?"
              },
              "1": {
                "type": "string",
                "description": "Does the extended manufacturing site have autonomous decision making authority?"
              },
              "2": {
                "type": "string",
                "description": "Does the extended manufacturing site receive any support from locations other than the main manufacturing site?"
              },
              "3": {
                "type": "string",
                "description": "Does top management at the main manufacturing site have authority and responsibility for the qms activities and the ability to initiate organization changes at extended manufacturing site?"
              },
              "4": {
                "type": "string",
                "description": "Does top management at the main manufacturing site have responsibility for defining, implementing and continually improving the qms at the extended manufacturing site?"
              },
              "5": {
                "type": "string",
                "description": "Does top management at the main manufacturing site conduct a single management review and reviews customer performance for all products and/or services performed at the extended manufacturing site?"
              },
              "6": {
                "type": "string",
                "description": "Is top management at the main manufacturing site responsible for corrective and preventive action for all products and/or services at the extended manufacturing site?"
              },
              "7": {
                "type": "string",
                "description": "How far away (i.e. distance / travel time) is the extended manufacturing site from the main site?"
              }
            }
          }
        }
      }
    },
    "ProvidingSupportSites": {
      "type": "array",
      "description": "providing support site object list",
      "items": {
        "type": "object",
        "description": "",
        "required": [
          "Address",
          "SiteName"
        ],
        "properties": {
          "Id": {
            "type": [
              "number",
              "string"
            ],
            "Usi": {
              "type": "string"
            },
            "description": "",
            "examples": [
              "1578422197624"
            ]
          },
          "SiteName": {
            "type": "string",
            "description": "Site name",
            "examples": [
              "Health"
            ]
          },
          "Address": {
            "$ref": "#/definitions/AddressObject"
          },
          "AddressNative": {
            "$ref": "#/definitions/AddressObject"
          },
          "CertificationBody": {
            "type": "string",
            "description": "CertificationBody",
            "examples": [
              "AC"
            ]
          },
          "LastAuditDate": {
            "type": "string",
            "description": "UTC DateTime as string",
            "examples": [
              "2020-01-29T00:00:00.000Z"
            ]
          },
          "RemoteSupportLocationIsAudited": {
            "type": "string",
            "description": "bit as string yes/no",
            "enum": [
              "0",
              "1"
            ]
          },
          "AcceptedAuditPerformed": {
            "type": "string",
            "description": "AcceptedAuditPerformed from yesNoNAOptions",
            "enum": [
              "-1",
              "0",
              "1"
            ]
          },
          "CbIdentificationNo": {
            "type": "string",
            "description": "CbIdentificationNo"
          },
          "Comments": {
            "type": "string",
            "description": "CbIdentificationNo"
          },
          "Activities": {
            "type": "array",
            "description": "list of activities supported",
            "items": {
              "$ref": "#/definitions/ActivityObject"
            }
          }
        }
      }
    },
    "ReceivingSupportSites": {
      "type": "array",
      "description": "ReceivingSupportSites",
      "items": {
        "type": "object",
        "description": "ReceivingSupportSite",
        "required": [
          "Id",
          "SiteName"
        ],
        "properties": {
          "Id": {
            "type": [
              "number",
              "string"
            ],
            "Usi": {
              "type": "string"
            },
            "description": "Id",
            "examples": [
              "1578422298454"
            ]
          },
          "NotYetAudited": {
            "type": "boolean",
            "description": "This providing support location was not yet audited"
          },
          "SiteName": {
            "type": "string",
            "description": "SiteName",
            "examples": [
              "Burk"
            ]
          },
          "Address": {
            "$ref": "#/definitions/AddressObject"
          },
          "AddressNative": {
            "$ref": "#/definitions/AddressObject"
          },
          "CbIdentificationNo": {
            "type": "string",
            "description": "CbIdentificationNo",
            "examples": [
              "1"
            ]
          },
          "Comments": {
            "type": "string",
            "description": "Comments",
            "examples": [
              "Comments"
            ]
          },
          "Activities": {
            "type": "array",
            "description": "list of activities supported",
            "items": {
              "$ref": "#/definitions/ActivityObject"
            }
          }
        }
      }
    },
    "OfisPositiveAspects": {
      "type": "object",
      "description": "",
      "required": [
        "Ofi",
        "PositiveAspects"
      ],
      "properties": {
        "Ofi": {
          "type": "array",
          "description": "list of Ofi",
          "items": {
            "$ref": "#/definitions/OfiPAObject"
          }
        },
        "PositiveAspects": {
          "type": "array",
          "description": "list of PositiveAspects",
          "items": {
            "$ref": "#/definitions/OfiPAObject"
          }
        }
      }
    },
    "CustomerInformation": {
      "type": "object",
      "description": "IATF OEM customer performance for quality, delivery and special status condition",
      "properties": {
        "Customer": {
          "type": "array",
          "desciption": "list of all customers",
          "properties": {
            "Id": {
              "type": [
                "string",
                "string"
              ],
              "description": "identifier"
            },
            "Name": {
              "type": "string",
              "description": "",
              "examples": [
                "IATF OEM customer"
              ]
            },
            "SupplierCodes": {
              "type": "string",
              "description": "supplier code"
            },
            "EmsSupplierCodes": {
              "type": "object",
              "description": "object list of supplier codes using the id of the extended manufacturing site as key",
              "properties": {
                "[string]": {
                  "type": "string",
                  "description": "supplier code for the extended manufacturing site"
                }
              }
            },
            "IatfOem": {
              "type": "boolean",
              "description": "is the customer an iatf OEM so only selectable OEMs are offered"
            },
            "NewCustomer": {
              "type": "boolean",
              "description": "was the customer added since last audit"
            },
            "Csrs": {
              "type": "array",
              "description": "Customer specific requirement list for a client",
              "items": {
                "type": "object",
                "description": "All automotive customer(s)",
                "required": [
                  "Name",
                  "NameCSRDocument",
                  "DateCSRDocument",
                  "SupplierCodes",
                  "IatfOem",
                  "AuditCycle"
                ],
                "properties": {
                  "NameCSRDocument": {
                    "type": "string",
                    "description": "",
                    "examples": [
                      "Quality document"
                    ]
                  },
                  "DateCSRDocument": {
                    "type": "string",
                    "description": "UTC DateTime as string",
                    "examples": [
                      "2020-01-21T00:00:00.000Z"
                    ]
                  },
                  "AuditCycle": {
                    "$ref": "#/definitions/AuditCycleObject"
                  }
                }
              }
            },
            "Kpis": {
              "type": "array",
              "description": "",
              "items": {
                "type": "object",
                "description": "",
                "properties": {
                  "Kpi": {
                    "type": "string"
                  },
                  "Target": {
                    "type": "string"
                  },
                  "Result": {
                    "type": "string"
                  },
                  "SpecialStatus": {
                    "type": "string",
                    "description": "",
                    "enum": [
                      "0",
                      "1"
                    ]
                  },
                  "Changes": {
                    "type": "string",
                    "description": "",
                    "enum": [
                      "-1",
                      "0",
                      "1"
                    ]
                  },
                  "TargetAchieved": {
                    "type": "string",
                    "description": "",
                    "enum": [
                      "0",
                      "1"
                    ]
                  }
                }
              }
            }
          }
        },
        "DescriptionOfActionOemCustomerPerformanceNotMet": {
          "type": "string",
          "description": "Description of actions implemented by the organization when performance to their IATF OEM customers is not met."
        }
      }
    },
    "Conclusion": {
      "type": "object",
      "description": "",
      "properties": {
        "Projects": {
          "type": "array",
          "description": "",
          "items": {
            "type": "object",
            "description": "",
            "required": [
              "Name",
              "Customer",
              "ProductType"
            ],
            "properties": {
              "Name": {
                "type": "string",
                "description": ""
              },
              "Customer": {
                "type": "string",
                "description": ""
              },
              "ProductType": {
                "type": "string",
                "description": ""
              }
            }
          }
        },
        "PreviousAuditNonconformities": {
          "type": "array",
          "description": "",
          "items": {
            "type": "object",
            "description": "",
            "required": [
              "Classification",
              "Comments",
              "IatfClause",
              "NcObservedProcess",
              "EffectivelyImplemented",
              "NcNo"
            ],
            "properties": {
              "Id": {
                "type": "string",
                "description": ""
              },
              "NcNo": {
                "type": "string",
                "description": ""
              },
              "Classification": {
                "type": "string",
                "description": "",
                "enum": [
                  "1",
                  "2"
                ]
              },
              "IatfClause": {
                "type": "string",
                "description": "value from clause Options",
                "examples": [
                  "5.1.1.1"
                ]
              },
              "NcObservedProcess": {
                "type": "string",
                "description": "Nonconformity observed in process (added 1.3)"
              },
              "SpecialAuditConducted": {
                "type": "string",
                "description": "",
                "enum": [
                  "0",
                  "1"
                ]
              },
              "EffectivelyImplemented": {
                "type": "string",
                "description": "",
                "enum": [
                  "0",
                  "1"
                ]
              },
              "Comments": {
                "type": "string",
                "description": ""
              },
              "StatementOfNonconformity": {
                "type": "string",
                "description": "Statement of nonconformity from inheritance (added 1.3)"
              },
              "ObjectiveEvidence": {
                "type": "string",
                "description": "Objective evidence from inheritance (added 1.3)"
              },
              "SystemicEvidenceOfImplementation": {
                "type": "string",
                "description": "Systemic corrective actions, including timing and responsible person (added 1.3)"
              },
              "ActionTakenVerifyImplementation": {
                "type": "string",
                "description": "Action taken to verify effective implementation of corrective actions (added 1.3)"
              },
              "ProcessAuditLead": {
                "type": "string",
                "description": "ADP no of author for the NC (added 1.3.1)"
              }
            }
          }
        },
        "ConformityEffectivenessRelevance": {
          "type": "string",
          "description": "Conformity, effectiveness and relevance over the last 3 years",
          "enum": [
            "0",
            "1"
          ]
        },
        "IatfLogoUsed": {
          "type": "string",
          "description": "Did the organization use of IATF logo?",
          "enum": [
            "0",
            "1"
          ]
        },
        "CbCertificationMarkUsed": {
          "type": "string",
          "description": "Did the organization use the CB certification mark?",
          "enum": [
            "0",
            "1"
          ]
        },
        "LogoCbMarkComments": {
          "type": "string",
          "description": ""
        }
      }
    },
    "Results": {
      "type": "object",
      "description": "",
      "properties": {
        "AuditTeamConclusion": {
          "type": "string",
          "description": "AuditTeamConclusion from auditResultOptions",
          "enum": [
            "1",
            "2",
            "3",
            "4"
          ]
        },
        "AuditTeamConclusionComment": {
          "type": "string",
          "description": ""
        },
        "SpecialAuditNeeded": {
          "type": "string",
          "description": "Is a special audit needed?",
          "enum": [
            "0",
            "1"
          ]
        },
        "SpecialAuditTargetDate": {
          "type": "string",
          "description": "UTC DateTime as string",
          "examples": [
            "2020-01-07T00:00:00.000Z"
          ]
        },
        "NumberOfNonconformitiesAudit": {
          "type": "object",
          "description": "",
          "properties": {
            "Major": {
              "type": "integer",
              "description": "amount major ncs"
            },
            "Minor": {
              "type": "integer",
              "description": "amount minor ncs"
            },
            "MinorDate": {
              "type": "string",
              "description": "UTC DateTime as string"
            },
            "MajorDate20": {
              "type": "string",
              "description": "UTC DateTime as string"
            },
            "MajorDate60": {
              "type": "string",
              "description": "UTC DateTime as string"
            }
          }
        },
        "NumberOpportunitiesImprovement": {
          "type": "integer",
          "description": "amount minor ofi"
        },
        "NumberPositiveAspects": {
          "type": "integer",
          "description": "amount minor pa"
        },
        "AuditTeamRecommendation": {
          "type": "object",
          "description": "",
          "properties": {
            "0": {
              "type": "boolean",
              "description": "Others"
            },
            "1": {
              "type": "boolean",
              "description": "New certificate decision on hold; major and/or minor nc raised"
            },
            "2": {
              "type": "boolean",
              "description": "Letter of Conformance pending corrective action acceptance"
            },
            "3": {
              "type": "boolean",
              "description": "New certificate be issued; no nonconformities raised"
            },
            "4": {
              "type": "boolean",
              "description": "Letter of Conformance be issued; no nonconformities raised"
            },
            "5": {
              "type": "boolean",
              "description": "Continued Certification; no nonconformities raised"
            },
            "6": {
              "type": "boolean",
              "description": "Suspension recommended, major nonconformities raised"
            },
            "7": {
              "type": "boolean",
              "description": "Certificate withdrawal recommended"
            },
            "8": {
              "type": "boolean",
              "description": "Continued Certification; no nonconformities raised"
            }
          }
        },
        "DateNextScheduledAudit": {
          "type": "string",
          "description": "UTC DateTime as string",
          "examples": [
            "2020-11-18T00:00:00.000Z"
          ]
        },
        "NextScheduledAuditType": {
          "type": "string",
          "description": "",
          "examples": [
            "4"
          ]
        },
        "AuditSummary": {
          "type": "string",
          "description": ""
        },
        "AuditTeamRecommendationOther": {
          "type": "string",
          "description": ""
        },
        "AuditReportDraft": {
          "type": "object",
          "description": "",
          "required": [
            "AuditorName",
            "Date"
          ],
          "properties": {
            "AuditorName": {
              "type": "string",
              "description": ""
            },
            "Date": {
              "type": "string",
              "description": "UTC DateTime as string",
              "examples": [
                "2020-01-06T00:00:00.000Z"
              ]
            }
          }
        },
        "AuditReportFinal": {
          "type": "object",
          "description": "",
          "required": [
            "AuditorName",
            "Date"
          ],
          "properties": {
            "AuditorName": {
              "type": "string",
              "description": ""
            },
            "Date": {
              "type": "string",
              "description": "UTC DateTime as string",
              "examples": [
                "2020-01-04T00:00:00.000Z"
              ]
            }
          }
        }
      }
    },
    "AttendanceLists": {
      "type": "array",
      "description": "attendance lists",
      "items": {
        "type": "object",
        "description": "attendance list",
        "required": [
          "Participants",
          "PdfAttendanceLists",
          "Id",
          "Name"
        ],
        "properties": {
          "Participants": {
            "type": "array",
            "description": "all participants",
            "items": {
              "type": "object",
              "description": "participant",
              "required": [
                "Name",
                "Department",
                "Function"
              ],
              "properties": {
                "Name": {
                  "type": "string",
                  "description": "Name",
                  "examples": [
                    "Konor Jozer"
                  ]
                },
                "Department": {
                  "type": "string",
                  "description": "Department",
                  "examples": [
                    "personnel department"
                  ]
                },
                "Function": {
                  "type": "string",
                  "description": "Function",
                  "examples": [
                    "Lawyer"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "Complaint": {
      "type": "object",
      "description": "performance complaint data",
      "properties": {
        "No": {
          "type": "number",
          "description": "Number for the complaint (since 1.3.1)"
        },
        "Title": {
          "type": "number",
          "description": "Subject of perforance complaint e-mail (since 1.3.1)"
        },
        "Text": {
          "type": "string",
          "description": "Performance Complaint text from iatfdatabase (since 1.3.1)"
        },
        "Files": {
          "type": "array",
          "description": "list of file object elements",
          "items": {
            "$ref": "#/definitions/FileObject"
          }
        }
      }
    },
    "PerformanceComplaints": {
      "type": "array",
      "description": "list of performance complaints",
      "items": {
        "type": "object",
        "description": "performance complaint object with mail and extracted text",
        "items": {
          "No": {
            "type": "integer",
            "description": "The Performance complaint number"
          },
          "Title": {
            "type": "string"
          },
          "Text": {
            "type": "string"
          },
          "Files": {
            "$ref": "#/definitions/FileObject",
            "description": "Files send with the performance complaint"
          }
        }
      }
    },
    "PdfAttendanceLists": {
      "type": "array",
      "description": "list of file object elements",
      "items": {
        "$ref": "#/definitions/FileObject"
      }
    },
    "NcManagement": {
      "$ref": "https://cara.iatfglobaloversight.org/schema/ncManagementJsonSchema.json"
    }
  }
}
