{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype RxNormAttributeType = RxNormAttributeType'
  { RxNormAttributeType -> Text
fromRxNormAttributeType ::
      Data.Text
  }
  deriving stock
    ( Int -> RxNormAttributeType -> ShowS
[RxNormAttributeType] -> ShowS
RxNormAttributeType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq RxNormAttributeType
Int -> RxNormAttributeType -> Int
RxNormAttributeType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: RxNormAttributeType -> ()
$crnf :: RxNormAttributeType -> ()
Prelude.NFData,
      Text -> Either String RxNormAttributeType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RxNormAttributeType
$cfromText :: Text -> Either String RxNormAttributeType
Data.FromText,
      RxNormAttributeType -> Text
forall a. (a -> Text) -> ToText a
toText :: RxNormAttributeType -> Text
$ctoText :: RxNormAttributeType -> Text
Data.ToText,
      RxNormAttributeType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: RxNormAttributeType -> ByteString
$ctoBS :: RxNormAttributeType -> ByteString
Data.ToByteString,
      RxNormAttributeType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RxNormAttributeType -> ByteStringBuilder
$cbuild :: RxNormAttributeType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> RxNormAttributeType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RxNormAttributeType -> [Header]
$ctoHeader :: HeaderName -> RxNormAttributeType -> [Header]
Data.ToHeader,
      RxNormAttributeType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RxNormAttributeType -> QueryString
$ctoQuery :: RxNormAttributeType -> QueryString
Data.ToQuery,
      Value -> Parser [RxNormAttributeType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [RxNormAttributeType]
FromJSONKeyFunction RxNormAttributeType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RxNormAttributeType]
$cfromJSONKeyList :: FromJSONKeyFunction [RxNormAttributeType]
fromJSONKey :: FromJSONKeyFunction RxNormAttributeType
$cfromJSONKey :: FromJSONKeyFunction RxNormAttributeType
Data.FromJSONKey,
      [RxNormAttributeType] -> Encoding
[RxNormAttributeType] -> Value
RxNormAttributeType -> Encoding
RxNormAttributeType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [RxNormAttributeType]
ToJSONKeyFunction RxNormAttributeType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RxNormAttributeType]
$ctoJSONKeyList :: ToJSONKeyFunction [RxNormAttributeType]
toJSONKey :: ToJSONKeyFunction RxNormAttributeType
$ctoJSONKey :: ToJSONKeyFunction RxNormAttributeType
Data.ToJSONKey,
      [Node] -> Either String RxNormAttributeType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RxNormAttributeType
$cparseXML :: [Node] -> Either String RxNormAttributeType
Data.FromXML,
      RxNormAttributeType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: RxNormAttributeType -> XML
$ctoXML :: RxNormAttributeType -> XML
Data.ToXML
    )

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

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

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

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

pattern RxNormAttributeType_RATE :: RxNormAttributeType
pattern $bRxNormAttributeType_RATE :: RxNormAttributeType
$mRxNormAttributeType_RATE :: forall {r}.
RxNormAttributeType -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
RxNormAttributeType_ROUTE_OR_MODE = RxNormAttributeType' "ROUTE_OR_MODE"

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

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