/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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