ehealth-ua / api-spec

Apache License 2.0
30 stars 24 forks source link

Помилка при створенні декларації на пре-проді #196

Closed ytrrty closed 6 years ago

ytrrty commented 6 years ago

Request:

{  
  "declaration_request":{  
    "person":{  
      "first_name":"Сергій",
      "last_name":"Миколайчук",
      "second_name":"В'ячеславович",
      "birth_date":"1992-12-12",
      "birth_country":"Україна",
      "birth_settlement":"Хмельницький",
      "gender":"MALE",
      "tax_id":"3067305998",
      "secret":"121212124",
      "documents":[  
        {  
          "type":"PASSPORT",
          "number":"306730"
        }
      ],
      "addresses":[  
        {  
          "type":"RESIDENCE",
          "country":"UA",
          "area":"ПОЛТАВСЬКА",
          "settlement_type":"CITY",
          "settlement_id":"e3fc90c9-1704-48a8-97a3-40f8bca461d8",
          "street_type":"HIGHWAY",
          "street":"Вулична",
          "building":"12",
          "zip":"21001",
          "settlement":"ПОЛТАВА"
        },
        {  
          "type":"REGISTRATION",
          "country":"UA",
          "area":"ПОЛТАВСЬКА",
          "settlement_type":"CITY",
          "settlement_id":"e3fc90c9-1704-48a8-97a3-40f8bca461d8",
          "street_type":"HIGHWAY",
          "street":"Вулична",
          "building":"12",
          "zip":"21001",
          "settlement":"ПОЛТАВА"
        }
      ],
      "phones":[  
        {  
          "type":"MOBILE",
          "number":"+380936157463"
        }
      ],
      "authentication_methods":[  
        {  
          "type":"OTP",
          "phone_number":"+380936157463"
        }
      ],
      "emergency_contact":{  
        "first_name":"Анна",
        "last_name":"Уава",
        "second_name":"Миколаївна",
        "phones":[  
          {  
            "type":"MOBILE",
            "number":"+380963259659"
          }
        ]
      },
      "patient_signed":false,
      "process_disclosure_data_consent":true
    },
    "scope":"family_doctor",
    "employee_id":"fd581587-fb49-4595-a53e-3bf02a6f9b32",
    "division_id":"117d22df-8fca-414f-9bd9-21933c1b61d0"
  }
}

Actual result:

{  
  "meta":{  
    "url":"http://api.ehealth.world/api/declaration_requests",
    "type":"object",
    "request_id":"isqu624rgd2hk8bht0umtabih5aj7goc",
    "code":500
  },
  "error":{  
    "errors":{  
      "detail":"Internal server error"
    }
  },
  "code":500
}

Expected result:

Успішно зареєстрована декларація

pzhuk commented 6 years ago

@lymychp @gmile are you guys going to have a look?

lymychp commented 6 years ago

for sure

svetavedmed commented 6 years ago

Fixed.