Facility Inspections Resource v1

Leonid Marushevkiy edited this page May 26, 2017 · 13 revisions

Facility Inspections [/facilities/{id}/inspections]

Facility Inspections [GET]

  • Response 200 (application/json)
{
  "messages": [
    {
      "type": "VALIDATION",
      "message": "string",
      "source": "string"
    }
  ],
  "inspections": [
    {
      "id": "1", 
      "href": "/facilities/1234567890/inspections/1",
      "representative_signature_date": "LocalDateTime", // FAS.RR809DN.date_signed
      "deficiencies": [
        {
          "deficiency_type": "String", // FAS.RR809DN.DefType1
          "poc_date": "LocalDateTime", // FAS.RR809DN.POC_Date
          "fac_section_violated": "String", // FAS.RR809DN.fac_SectionViolated
          "deficiency": "String", // FAS.RR809DN.Deficiency_1 + FAS.RR809DN.Deficiency_1_cont
          "correction_plan": "String", // FAS.RR809DN.Correction_Plan + FAS.RR809DN.Correction_Plan_cont
          "poc_date_cleared": "LocalDateTime", // FAS.RRCPOCPOC_DateCleared
          "poc_comments": "String" // FAS.RRCPOC.POC_Comments + FAS.RRCPOC.POC_Comments_Cont
        },
        {
          "deficiency_type": "String", // FAS.RR809DN.DefType2_AB
          "poc_date": "LocalDateTime", // FAS.RR809DN.POC_Date_1
          "fac_section_violated": "String", // FAS.RR809DN.fac_SectionViolated_1
          "deficiency": "String", // FAS.RR809DN.Deficiency_1_1 + FAS.RR809DN.Deficiency_2_cont
          "correction_plan": "String", // FAS.RR809DN.Correction_Plan_1 + FAS.RR809DN.Correction_Plan_2_cont
          "poc_date_cleared": "LocalDateTime", // FAS.RRCPOC.POC_DateCleared_1
          "poc_comments": "String" // FAS.RRCPOC.POC_Comments_1 + FAS.RRCPOC.POC_Comments_Cont_1
        },
        {
          "deficiency_type": "String", // FAS.RR809DN.DefType3_AB
          "poc_date": "LocalDateTime", // FAS.RR809DN.POC_Date_2
          "fac_section_violated": "String", // FAS.RR809DN.fac_SectionViolated_2
          "deficiency": "String", // FAS.RR809DN.Deficiency_1_2 + FAS.RR809DN.Deficiency_3_cont
          "correction_plan": "String", // FAS.RR809DN.Correction_Plan_2 + FAS.RR809DN.Correction_Plan_3_cont
          "poc_date_cleared": "LocalDateTime", // FAS.RRCPOC.POC_DateCleared_2
          "poc_comments": "String" // FAS.RRCPOC.POC_Comments_2 + FAS.RRCPOC.POC_Comments_Cont_3_cont
        },
        {
          "deficiency_type": "String", // FAS.RR809DN.DefType4_AB
          "poc_date": "LocalDateTime", // FAS.RR809DN.POC_Date_3
          "fac_section_violated": "String", // FAS.RR809DN.fac_SectionViolated_3
          "deficiency": "String", // FAS.RR809DN.Deficiency_1_3
          "correction_plan": "String", // FAS.RR809DN.Correction_Plan_3
          "poc_date_cleared": "LocalDateTime", // FAS.RRCPOC.POC_DateCleared_3
          "poc_comments": "String" // FAS.RRCPOC.POC_Comments_3
        }
      ]
  ]
}

Facility Inspection [/facilities/{facilityId}/inspection/{inspectionId}]

Facility Inspection [GET]

  • Response 200 (application/json)
{
  "messages": [
    {
      "type": "VALIDATION",
      "message": "string",
      "source": "string"
    }
  ],
  "id": "1",
  "href": "/facilities/1234567890/inspections/1",
  "representative_signature_date": "LocalDateTime", // FAS.RR809DN.date_signed
  "deficiencies": [ 
    {
      "deficiency_type": "String", // FAS.RR809DN.DefType1
      "poc_date": "LocalDateTime", // FAS.RR809DN.POC_Date
      "fac_section_violated": "String", // FAS.RR809DN.fac_SectionViolated
      "deficiency": "String", // FAS.RR809DN.Deficiency_1 + FAS.RR809DN.Deficiency_1_cont
      "correction_plan": "String", // FAS.RR809DN.Correction_Plan + FAS.RR809DN.Correction_Plan_cont
      "poc_date_cleared": "LocalDateTime", // FAS.RRCPOCPOC_DateCleared
      "poc_comments": "String" // FAS.RRCPOC.POC_Comments + FAS.RRCPOC.POC_Comments_Cont
    },
    {
      "deficiency_type": "String", // FAS.RR809DN.DefType2_AB
      "poc_date": "LocalDateTime", // FAS.RR809DN.POC_Date_1
      "fac_section_violated": "String", // FAS.RR809DN.fac_SectionViolated_1
      "deficiency": "String", // FAS.RR809DN.Deficiency_1_1 + FAS.RR809DN.Deficiency_2_cont
      "correction_plan": "String", // FAS.RR809DN.Correction_Plan_1 + FAS.RR809DN.Correction_Plan_2_cont
      "poc_date_cleared": "LocalDateTime", // FAS.RRCPOC.POC_DateCleared_1
      "poc_comments": "String" // FAS.RRCPOC.POC_Comments_1 + FAS.RRCPOC.POC_Comments_Cont_1
    },
    {
      "deficiency_type": "String", // FAS.RR809DN.DefType3_AB
      "poc_date": "LocalDateTime", // FAS.RR809DN.POC_Date_2
      "fac_section_violated": "String", // FAS.RR809DN.fac_SectionViolated_2
      "deficiency": "String", // FAS.RR809DN.Deficiency_1_2 + FAS.RR809DN.Deficiency_3_cont
      "correction_plan": "String", // FAS.RR809DN.Correction_Plan_2 + FAS.RR809DN.Correction_Plan_3_cont
      "poc_date_cleared": "LocalDateTime", // FAS.RRCPOC.POC_DateCleared_2
      "poc_comments": "String" // FAS.RRCPOC.POC_Comments_2 + FAS.RRCPOC.POC_Comments_Cont_3_cont
    },
    {
      "deficiency_type": "String", // FAS.RR809DN.DefType4_AB
      "poc_date": "LocalDateTime", // FAS.RR809DN.POC_Date_3
      "fac_section_violated": "String", // FAS.RR809DN.fac_SectionViolated_3
      "deficiency": "String", // FAS.RR809DN.Deficiency_1_3
      "correction_plan": "String", // FAS.RR809DN.Correction_Plan_3
      "poc_date_cleared": "LocalDateTime", // FAS.RRCPOC.POC_DateCleared_3
      "poc_comments": "String" // FAS.RRCPOC.POC_Comments_3
    }
  ]
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.