ChallengesDocs

Q1 Solution

Submit the raw equipment catalog for each facility

Q1 Solution

POST /api/v2/q1/solution

Request Body

FieldTypeNotes
facilitiesarrayOne entry per facility, A to E
facilities[].facilitystringA, B, C, D or E
facilities[].pairsarrayEvery unique manufacturer and model pair at the facility
facilities[].pairs[].manufacturerstringManufacturer (MFG) as it appears in the records
facilities[].pairs[].modelstringModel Name as it appears in the records
facilities[].pairs[].countintegerRecords at the facility with this pair
facilities[].most_common_modelobjectThe pair with the most records: manufacturer, model, count
{
  "facilities": [
    {
      "facility": "B",
      "pairs": [
        {
          "manufacturer": "WELCH ALLYN",
          "model": "SURETEMP PLUS 690",
          "count": 1
        },
        { "manufacturer": "STRYKER MEDICAL", "model": "PROCUITY", "count": 18 }
      ],
      "most_common_model": {
        "manufacturer": "...",
        "model": "...",
        "count": 65
      }
    }
  ]
}

Names are compared ignoring case and runs of whitespace. Nothing else is normalized: punctuation, abbreviations and typos all make a different pair. If you list the same pair twice for a facility, only the first one counts. A facility you leave out scores zero.

Responses

200

{
  "challenge": "q1",
  "score": 88,
  "max_points": 100,
  "best_score": 88,
  "result": {
    "facilities": [
      {
        "facility": "A",
        "score": 0.912,
        "pairs_f1": 0.883,
        "most_common_correct": true
      }
    ]
  },
  "attempts_remaining": 4
}

Each facility's score is 75% pairs_f1 and 25% most_common_correct. The challenge score is their average.

400

{
  "error": "INVALID_SUBMISSION",
  "message": "facilities[0].facility must be one of A, B, C, D, E"
}
{
  "error": "INVALID_SUBMISSION",
  "message": "facilities[0].pairs[3] needs \"manufacturer\" and \"model\" strings, exactly as they appear in the records"
}

Invalid requests don't use a submission.

403

{
  "error": "ATTEMPT_LIMIT",
  "message": "You have used all 5 submissions for q1. Your best score of 88 is final.",
  "best_score": 88
}