{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ComprehendMedical.Types.RxNormAttributeType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ComprehendMedical.Types.RxNormAttributeType
  ( RxNormAttributeType
      ( ..,
        RxNormAttributeType_DOSAGE,
        RxNormAttributeType_DURATION,
        RxNormAttributeType_FORM,
        RxNormAttributeType_FREQUENCY,
        RxNormAttributeType_RATE,
        RxNormAttributeType_ROUTE_OR_MODE,
        RxNormAttributeType_STRENGTH
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype RxNormAttributeType = RxNormAttributeType'
  { RxNormAttributeType -> Text
fromRxNormAttributeType ::
      Core.Text
  }
  deriving stock
    ( Int -> RxNormAttributeType -> ShowS
[RxNormAttributeType] -> ShowS
RxNormAttributeType -> String
(Int -> RxNormAttributeType -> ShowS)
-> (RxNormAttributeType -> String)
-> ([RxNormAttributeType] -> ShowS)
-> Show RxNormAttributeType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RxNormAttributeType] -> ShowS
$cshowList :: [RxNormAttributeType] -> ShowS
show :: RxNormAttributeType -> String
$cshow :: RxNormAttributeType -> String
showsPrec :: Int -> RxNormAttributeType -> ShowS
$cshowsPrec :: Int -> RxNormAttributeType -> ShowS
Prelude.Show,
      ReadPrec [RxNormAttributeType]
ReadPrec RxNormAttributeType
Int -> ReadS RxNormAttributeType
ReadS [RxNormAttributeType]
(Int -> ReadS RxNormAttributeType)
-> ReadS [RxNormAttributeType]
-> ReadPrec RxNormAttributeType
-> ReadPrec [RxNormAttributeType]
-> Read RxNormAttributeType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RxNormAttributeType]
$creadListPrec :: ReadPrec [RxNormAttributeType]
readPrec :: ReadPrec RxNormAttributeType
$creadPrec :: ReadPrec RxNormAttributeType
readList :: ReadS [RxNormAttributeType]
$creadList :: ReadS [RxNormAttributeType]
readsPrec :: Int -> ReadS RxNormAttributeType
$creadsPrec :: Int -> ReadS RxNormAttributeType
Prelude.Read,
      RxNormAttributeType -> RxNormAttributeType -> Bool
(RxNormAttributeType -> RxNormAttributeType -> Bool)
-> (RxNormAttributeType -> RxNormAttributeType -> Bool)
-> Eq RxNormAttributeType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RxNormAttributeType -> RxNormAttributeType -> Bool
$c/= :: RxNormAttributeType -> RxNormAttributeType -> Bool
== :: RxNormAttributeType -> RxNormAttributeType -> Bool
$c== :: RxNormAttributeType -> RxNormAttributeType -> Bool
Prelude.Eq,
      Eq RxNormAttributeType
Eq RxNormAttributeType
-> (RxNormAttributeType -> RxNormAttributeType -> Ordering)
-> (RxNormAttributeType -> RxNormAttributeType -> Bool)
-> (RxNormAttributeType -> RxNormAttributeType -> Bool)
-> (RxNormAttributeType -> RxNormAttributeType -> Bool)
-> (RxNormAttributeType -> RxNormAttributeType -> Bool)
-> (RxNormAttributeType
    -> RxNormAttributeType -> RxNormAttributeType)
-> (RxNormAttributeType
    -> RxNormAttributeType -> RxNormAttributeType)
-> Ord RxNormAttributeType
RxNormAttributeType -> RxNormAttributeType -> Bool
RxNormAttributeType -> RxNormAttributeType -> Ordering
RxNormAttributeType -> RxNormAttributeType -> RxNormAttributeType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: RxNormAttributeType -> RxNormAttributeType -> RxNormAttributeType
$cmin :: RxNormAttributeType -> RxNormAttributeType -> RxNormAttributeType
max :: RxNormAttributeType -> RxNormAttributeType -> RxNormAttributeType
$cmax :: RxNormAttributeType -> RxNormAttributeType -> RxNormAttributeType
>= :: RxNormAttributeType -> RxNormAttributeType -> Bool
$c>= :: RxNormAttributeType -> RxNormAttributeType -> Bool
> :: RxNormAttributeType -> RxNormAttributeType -> Bool
$c> :: RxNormAttributeType -> RxNormAttributeType -> Bool
<= :: RxNormAttributeType -> RxNormAttributeType -> Bool
$c<= :: RxNormAttributeType -> RxNormAttributeType -> Bool
< :: RxNormAttributeType -> RxNormAttributeType -> Bool
$c< :: RxNormAttributeType -> RxNormAttributeType -> Bool
compare :: RxNormAttributeType -> RxNormAttributeType -> Ordering
$ccompare :: RxNormAttributeType -> RxNormAttributeType -> Ordering
$cp1Ord :: Eq RxNormAttributeType
Prelude.Ord,
      (forall x. RxNormAttributeType -> Rep RxNormAttributeType x)
-> (forall x. Rep RxNormAttributeType x -> RxNormAttributeType)
-> Generic RxNormAttributeType
forall x. Rep RxNormAttributeType x -> RxNormAttributeType
forall x. RxNormAttributeType -> Rep RxNormAttributeType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RxNormAttributeType x -> RxNormAttributeType
$cfrom :: forall x. RxNormAttributeType -> Rep RxNormAttributeType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> RxNormAttributeType -> Int
RxNormAttributeType -> Int
(Int -> RxNormAttributeType -> Int)
-> (RxNormAttributeType -> Int) -> Hashable RxNormAttributeType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RxNormAttributeType -> Int
$chash :: RxNormAttributeType -> Int
hashWithSalt :: Int -> RxNormAttributeType -> Int
$chashWithSalt :: Int -> RxNormAttributeType -> Int
Prelude.Hashable,
      RxNormAttributeType -> ()
(RxNormAttributeType -> ()) -> NFData RxNormAttributeType
forall a. (a -> ()) -> NFData a
rnf :: RxNormAttributeType -> ()
$crnf :: RxNormAttributeType -> ()
Prelude.NFData,
      Text -> Either String RxNormAttributeType
(Text -> Either String RxNormAttributeType)
-> FromText RxNormAttributeType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RxNormAttributeType
$cfromText :: Text -> Either String RxNormAttributeType
Core.FromText,
      RxNormAttributeType -> Text
(RxNormAttributeType -> Text) -> ToText RxNormAttributeType
forall a. (a -> Text) -> ToText a
toText :: RxNormAttributeType -> Text
$ctoText :: RxNormAttributeType -> Text
Core.ToText,
      RxNormAttributeType -> ByteString
(RxNormAttributeType -> ByteString)
-> ToByteString RxNormAttributeType
forall a. (a -> ByteString) -> ToByteString a
toBS :: RxNormAttributeType -> ByteString
$ctoBS :: RxNormAttributeType -> ByteString
Core.ToByteString,
      RxNormAttributeType -> ByteStringBuilder
(RxNormAttributeType -> ByteStringBuilder)
-> ToLog RxNormAttributeType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RxNormAttributeType -> ByteStringBuilder
$cbuild :: RxNormAttributeType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> RxNormAttributeType -> [Header]
(HeaderName -> RxNormAttributeType -> [Header])
-> ToHeader RxNormAttributeType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RxNormAttributeType -> [Header]
$ctoHeader :: HeaderName -> RxNormAttributeType -> [Header]
Core.ToHeader,
      RxNormAttributeType -> QueryString
(RxNormAttributeType -> QueryString) -> ToQuery RxNormAttributeType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RxNormAttributeType -> QueryString
$ctoQuery :: RxNormAttributeType -> QueryString
Core.ToQuery,
      Value -> Parser [RxNormAttributeType]
Value -> Parser RxNormAttributeType
(Value -> Parser RxNormAttributeType)
-> (Value -> Parser [RxNormAttributeType])
-> FromJSON RxNormAttributeType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RxNormAttributeType]
$cparseJSONList :: Value -> Parser [RxNormAttributeType]
parseJSON :: Value -> Parser RxNormAttributeType
$cparseJSON :: Value -> Parser RxNormAttributeType
Core.FromJSON,
      FromJSONKeyFunction [RxNormAttributeType]
FromJSONKeyFunction RxNormAttributeType
FromJSONKeyFunction RxNormAttributeType
-> FromJSONKeyFunction [RxNormAttributeType]
-> FromJSONKey RxNormAttributeType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RxNormAttributeType]
$cfromJSONKeyList :: FromJSONKeyFunction [RxNormAttributeType]
fromJSONKey :: FromJSONKeyFunction RxNormAttributeType
$cfromJSONKey :: FromJSONKeyFunction RxNormAttributeType
Core.FromJSONKey,
      [RxNormAttributeType] -> Encoding
[RxNormAttributeType] -> Value
RxNormAttributeType -> Encoding
RxNormAttributeType -> Value
(RxNormAttributeType -> Value)
-> (RxNormAttributeType -> Encoding)
-> ([RxNormAttributeType] -> Value)
-> ([RxNormAttributeType] -> Encoding)
-> ToJSON RxNormAttributeType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RxNormAttributeType] -> Encoding
$ctoEncodingList :: [RxNormAttributeType] -> Encoding
toJSONList :: [RxNormAttributeType] -> Value
$ctoJSONList :: [RxNormAttributeType] -> Value
toEncoding :: RxNormAttributeType -> Encoding
$ctoEncoding :: RxNormAttributeType -> Encoding
toJSON :: RxNormAttributeType -> Value
$ctoJSON :: RxNormAttributeType -> Value
Core.ToJSON,
      ToJSONKeyFunction [RxNormAttributeType]
ToJSONKeyFunction RxNormAttributeType
ToJSONKeyFunction RxNormAttributeType
-> ToJSONKeyFunction [RxNormAttributeType]
-> ToJSONKey RxNormAttributeType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RxNormAttributeType]
$ctoJSONKeyList :: ToJSONKeyFunction [RxNormAttributeType]
toJSONKey :: ToJSONKeyFunction RxNormAttributeType
$ctoJSONKey :: ToJSONKeyFunction RxNormAttributeType
Core.ToJSONKey,
      [Node] -> Either String RxNormAttributeType
([Node] -> Either String RxNormAttributeType)
-> FromXML RxNormAttributeType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RxNormAttributeType
$cparseXML :: [Node] -> Either String RxNormAttributeType
Core.FromXML,
      RxNormAttributeType -> XML
(RxNormAttributeType -> XML) -> ToXML RxNormAttributeType
forall a. (a -> XML) -> ToXML a
toXML :: RxNormAttributeType -> XML
$ctoXML :: RxNormAttributeType -> XML
Core.ToXML
    )

pattern RxNormAttributeType_DOSAGE :: RxNormAttributeType
pattern $bRxNormAttributeType_DOSAGE :: RxNormAttributeType
$mRxNormAttributeType_DOSAGE :: forall r. RxNormAttributeType -> (Void# -> r) -> (Void# -> r) -> r
RxNormAttributeType_DOSAGE = RxNormAttributeType' "DOSAGE"

pattern RxNormAttributeType_DURATION :: RxNormAttributeType
pattern $bRxNormAttributeType_DURATION :: RxNormAttributeType
$mRxNormAttributeType_DURATION :: forall r. RxNormAttributeType -> (Void# -> r) -> (Void# -> r) -> r
RxNormAttributeType_DURATION = RxNormAttributeType' "DURATION"

pattern RxNormAttributeType_FORM :: RxNormAttributeType
pattern $bRxNormAttributeType_FORM :: RxNormAttributeType
$mRxNormAttributeType_FORM :: forall r. RxNormAttributeType -> (Void# -> r) -> (Void# -> r) -> r
RxNormAttributeType_FORM = RxNormAttributeType' "FORM"

pattern RxNormAttributeType_FREQUENCY :: RxNormAttributeType
pattern $bRxNormAttributeType_FREQUENCY :: RxNormAttributeType
$mRxNormAttributeType_FREQUENCY :: forall r. RxNormAttributeType -> (Void# -> r) -> (Void# -> r) -> r
RxNormAttributeType_FREQUENCY = RxNormAttributeType' "FREQUENCY"

pattern RxNormAttributeType_RATE :: RxNormAttributeType
pattern $bRxNormAttributeType_RATE :: RxNormAttributeType
$mRxNormAttributeType_RATE :: forall r. RxNormAttributeType -> (Void# -> r) -> (Void# -> r) -> r
RxNormAttributeType_RATE = RxNormAttributeType' "RATE"

pattern RxNormAttributeType_ROUTE_OR_MODE :: RxNormAttributeType
pattern $bRxNormAttributeType_ROUTE_OR_MODE :: RxNormAttributeType
$mRxNormAttributeType_ROUTE_OR_MODE :: forall r. RxNormAttributeType -> (Void# -> r) -> (Void# -> r) -> r
RxNormAttributeType_ROUTE_OR_MODE = RxNormAttributeType' "ROUTE_OR_MODE"

pattern RxNormAttributeType_STRENGTH :: RxNormAttributeType
pattern $bRxNormAttributeType_STRENGTH :: RxNormAttributeType
$mRxNormAttributeType_STRENGTH :: forall r. RxNormAttributeType -> (Void# -> r) -> (Void# -> r) -> r
RxNormAttributeType_STRENGTH = RxNormAttributeType' "STRENGTH"

{-# COMPLETE
  RxNormAttributeType_DOSAGE,
  RxNormAttributeType_DURATION,
  RxNormAttributeType_FORM,
  RxNormAttributeType_FREQUENCY,
  RxNormAttributeType_RATE,
  RxNormAttributeType_ROUTE_OR_MODE,
  RxNormAttributeType_STRENGTH,
  RxNormAttributeType'
  #-}