This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-comprehendmedical/source/model/RxNormConcept.cpp

92 lines
1.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/RxNormConcept.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
RxNormConcept::RxNormConcept() :
m_descriptionHasBeenSet(false),
m_codeHasBeenSet(false),
m_score(0.0),
m_scoreHasBeenSet(false)
{
}
RxNormConcept::RxNormConcept(JsonView jsonValue) :
m_descriptionHasBeenSet(false),
m_codeHasBeenSet(false),
m_score(0.0),
m_scoreHasBeenSet(false)
{
*this = jsonValue;
}
RxNormConcept& RxNormConcept::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Score"))
{
m_score = jsonValue.GetDouble("Score");
m_scoreHasBeenSet = true;
}
return *this;
}
JsonValue RxNormConcept::Jsonize() const
{
JsonValue payload;
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_scoreHasBeenSet)
{
payload.WithDouble("Score", m_score);
}
return payload;
}
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws