Surveillance Report Controller

Create or update one or multiple entities.

Changed on

A uuid will be generated for any entity that doesn't have one yet. Posting entities without uuid multiple times will also create them multiple times.

post/surveillancereports/push

Request

  • Base URL
    /sormas-rest (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /sormas-rest/surveillancereports/push
  • Auth
    none declared

Request body

changeDatestring date-time
creationDatestring date-time
dateOfDiagnosisstring date-time
externalIdstring
facilityDetailsstring
facilityType'ASSOCIATION' | 'BUSINESS' | 'BAR' | 'CAMPSITE' | 'CANTINE' | 'CHILDRENS_DAY_CARE' | 'CHILDRENS_HOME' | 'CORRECTIONAL_FACILITY' | 'CRUISE_SHIP' | 'ELDERLY_DAY_CARE' | 'EVENT_VENUE' | 'FOOD_STALL' | 'HOLIDAY_CAMP' | 'HOMELESS_SHELTER' | 'HOSPITAL' | 'HOSTEL' | 'HOTEL' | 'KINDERGARTEN' | 'LABORATORY' | 'MASS_ACCOMMODATION' | 'MILITARY_BARRACKS' | 'MOBILE_NURSING_SERVICE' | 'NIGHT_CLUB' | 'OTHER_ACCOMMODATION' | 'OTHER_CARE_FACILITY' | 'OTHER_CATERING_OUTLET' | 'OTHER_EDUCATIONAL_FACILITY' | 'OTHER_LEISURE_FACILITY' | 'OTHER_MEDICAL_FACILITY' | 'OTHER_RESIDENCE' | 'OTHER_WORKING_PLACE' | 'OTHER_COMMERCE' | 'OUTPATIENT_TREATMENT_FACILITY' | 'PLACE_OF_WORSHIP' | 'PUBLIC_PLACE' | 'REFUGEE_ACCOMMODATION' | 'REHAB_FACILITY' | 'RESTAURANT' | 'RETIREMENT_HOME' | 'RETAIL' | 'WHOLESALE' | 'SCHOOL' | 'SWIMMING_POOL' | 'THEATER' | 'UNIVERSITY' | 'ZOO' | 'AMBULATORY_SURGERY_FACILITY' | 'DIALYSIS_FACILITY' | 'DAY_HOSPITAL' | 'MATERNITY_FACILITY' | 'MEDICAL_PRACTICE' | 'DENTAL_PRACTICE' | 'OTHER_MEDICAL_PRACTICE' | 'DIAGNOSTIC_PREVENTATIVE_THERAPEUTIC_FACILITY' | 'EMERGENCY_MEDICAL_SERVICES' | 'ELDERLY_CARE_FACILITY' | 'DISABLED_PERSON_HABITATION' | 'CARE_RECIPIENT_HABITATION' | 'VISITING_AMBULATORY_AID' | 'AFTER_SCHOOL'
inJurisdictionboolean
notificationDetailsstring
ownershipHandedOverboolean
pseudonymizedboolean
reportDatestring date-time required
reportingType'DOCTOR' | 'LABORATORY' | 'FORWARDING' | 'HOSPITAL_OR_STATIONARY_CARE' | 'COMMUNITY_FACILITY' | 'COMMUNITY_FACILITY_IFSG_ARTICLE_34' | 'OWN_DETERMINATION' | 'NOT_DETERMINABLE' | 'NOT_RAISED' | 'PHONE_NOTIFICATION' | 'OTHER' required
treatmentNotApplicableboolean
treatmentStartDatestring date-time
treatmentStarted'YES' | 'NO' | 'UNKNOWN'
uuidstring

Response

Array of responses, matching the posted array of entities. Provides an HTML status code for every entity and an optional body (e.g. a string with an error message).

bodyobject
statusCodeinteger

Changes

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new PHONE_NOTIFICATION enum value to the request property /

    • breaking

      removed the enum value PHONE_NOTIFICATION of the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /