{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.ComprehendMedical.Types.ICD10CMAttribute
-- 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.ICD10CMAttribute where

import Amazonka.ComprehendMedical.Types.ICD10CMAttributeType
import Amazonka.ComprehendMedical.Types.ICD10CMEntityType
import Amazonka.ComprehendMedical.Types.ICD10CMRelationshipType
import Amazonka.ComprehendMedical.Types.ICD10CMTrait
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | The detected attributes that relate to an entity. This includes an
-- extracted segment of the text that is an attribute of an entity, or
-- otherwise related to an entity. InferICD10CM detects the following
-- attributes: @Direction@, @System, Organ or Site@, and @Acuity@.
--
-- /See:/ 'newICD10CMAttribute' smart constructor.
data ICD10CMAttribute = ICD10CMAttribute'
  { -- | The 0-based character offset in the input text that shows where the
    -- attribute begins. The offset returns the UTF-8 code point in the string.
    ICD10CMAttribute -> Maybe Int
beginOffset :: Prelude.Maybe Prelude.Int,
    -- | The category of attribute. Can be either of @DX_NAME@ or
    -- @TIME_EXPRESSION@.
    ICD10CMAttribute -> Maybe ICD10CMEntityType
category :: Prelude.Maybe ICD10CMEntityType,
    -- | The 0-based character offset in the input text that shows where the
    -- attribute ends. The offset returns the UTF-8 code point in the string.
    ICD10CMAttribute -> Maybe Int
endOffset :: Prelude.Maybe Prelude.Int,
    -- | The numeric identifier for this attribute. This is a monotonically
    -- increasing id unique within this response rather than a global unique
    -- identifier.
    ICD10CMAttribute -> Maybe Int
id :: Prelude.Maybe Prelude.Int,
    -- | The level of confidence that Amazon Comprehend Medical has that this
    -- attribute is correctly related to this entity.
    ICD10CMAttribute -> Maybe Double
relationshipScore :: Prelude.Maybe Prelude.Double,
    -- | The type of relationship between the entity and attribute. Type for the
    -- relationship can be either of @OVERLAP@ or @SYSTEM_ORGAN_SITE@.
    ICD10CMAttribute -> Maybe ICD10CMRelationshipType
relationshipType :: Prelude.Maybe ICD10CMRelationshipType,
    -- | The level of confidence that Amazon Comprehend Medical has that the
    -- segment of text is correctly recognized as an attribute.
    ICD10CMAttribute -> Maybe Double
score :: Prelude.Maybe Prelude.Double,
    -- | The segment of input text which contains the detected attribute.
    ICD10CMAttribute -> Maybe Text
text :: Prelude.Maybe Prelude.Text,
    -- | The contextual information for the attribute. The traits recognized by
    -- InferICD10CM are @DIAGNOSIS@, @SIGN@, @SYMPTOM@, and @NEGATION@.
    ICD10CMAttribute -> Maybe [ICD10CMTrait]
traits :: Prelude.Maybe [ICD10CMTrait],
    -- | The type of attribute. InferICD10CM detects entities of the type
    -- @DX_NAME@.
    ICD10CMAttribute -> Maybe ICD10CMAttributeType
type' :: Prelude.Maybe ICD10CMAttributeType
  }
  deriving (ICD10CMAttribute -> ICD10CMAttribute -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ICD10CMAttribute -> ICD10CMAttribute -> Bool
$c/= :: ICD10CMAttribute -> ICD10CMAttribute -> Bool
== :: ICD10CMAttribute -> ICD10CMAttribute -> Bool
$c== :: ICD10CMAttribute -> ICD10CMAttribute -> Bool
Prelude.Eq, ReadPrec [ICD10CMAttribute]
ReadPrec ICD10CMAttribute
Int -> ReadS ICD10CMAttribute
ReadS [ICD10CMAttribute]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ICD10CMAttribute]
$creadListPrec :: ReadPrec [ICD10CMAttribute]
readPrec :: ReadPrec ICD10CMAttribute
$creadPrec :: ReadPrec ICD10CMAttribute
readList :: ReadS [ICD10CMAttribute]
$creadList :: ReadS [ICD10CMAttribute]
readsPrec :: Int -> ReadS ICD10CMAttribute
$creadsPrec :: Int -> ReadS ICD10CMAttribute
Prelude.Read, Int -> ICD10CMAttribute -> ShowS
[ICD10CMAttribute] -> ShowS
ICD10CMAttribute -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ICD10CMAttribute] -> ShowS
$cshowList :: [ICD10CMAttribute] -> ShowS
show :: ICD10CMAttribute -> String
$cshow :: ICD10CMAttribute -> String
showsPrec :: Int -> ICD10CMAttribute -> ShowS
$cshowsPrec :: Int -> ICD10CMAttribute -> ShowS
Prelude.Show, forall x. Rep ICD10CMAttribute x -> ICD10CMAttribute
forall x. ICD10CMAttribute -> Rep ICD10CMAttribute x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ICD10CMAttribute x -> ICD10CMAttribute
$cfrom :: forall x. ICD10CMAttribute -> Rep ICD10CMAttribute x
Prelude.Generic)

-- |
-- Create a value of 'ICD10CMAttribute' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'beginOffset', 'iCD10CMAttribute_beginOffset' - The 0-based character offset in the input text that shows where the
-- attribute begins. The offset returns the UTF-8 code point in the string.
--
-- 'category', 'iCD10CMAttribute_category' - The category of attribute. Can be either of @DX_NAME@ or
-- @TIME_EXPRESSION@.
--
-- 'endOffset', 'iCD10CMAttribute_endOffset' - The 0-based character offset in the input text that shows where the
-- attribute ends. The offset returns the UTF-8 code point in the string.
--
-- 'id', 'iCD10CMAttribute_id' - The numeric identifier for this attribute. This is a monotonically
-- increasing id unique within this response rather than a global unique
-- identifier.
--
-- 'relationshipScore', 'iCD10CMAttribute_relationshipScore' - The level of confidence that Amazon Comprehend Medical has that this
-- attribute is correctly related to this entity.
--
-- 'relationshipType', 'iCD10CMAttribute_relationshipType' - The type of relationship between the entity and attribute. Type for the
-- relationship can be either of @OVERLAP@ or @SYSTEM_ORGAN_SITE@.
--
-- 'score', 'iCD10CMAttribute_score' - The level of confidence that Amazon Comprehend Medical has that the
-- segment of text is correctly recognized as an attribute.
--
-- 'text', 'iCD10CMAttribute_text' - The segment of input text which contains the detected attribute.
--
-- 'traits', 'iCD10CMAttribute_traits' - The contextual information for the attribute. The traits recognized by
-- InferICD10CM are @DIAGNOSIS@, @SIGN@, @SYMPTOM@, and @NEGATION@.
--
-- 'type'', 'iCD10CMAttribute_type' - The type of attribute. InferICD10CM detects entities of the type
-- @DX_NAME@.
newICD10CMAttribute ::
  ICD10CMAttribute
newICD10CMAttribute :: ICD10CMAttribute
newICD10CMAttribute =
  ICD10CMAttribute'
    { $sel:beginOffset:ICD10CMAttribute' :: Maybe Int
beginOffset = forall a. Maybe a
Prelude.Nothing,
      $sel:category:ICD10CMAttribute' :: Maybe ICD10CMEntityType
category = forall a. Maybe a
Prelude.Nothing,
      $sel:endOffset:ICD10CMAttribute' :: Maybe Int
endOffset = forall a. Maybe a
Prelude.Nothing,
      $sel:id:ICD10CMAttribute' :: Maybe Int
id = forall a. Maybe a
Prelude.Nothing,
      $sel:relationshipScore:ICD10CMAttribute' :: Maybe Double
relationshipScore = forall a. Maybe a
Prelude.Nothing,
      $sel:relationshipType:ICD10CMAttribute' :: Maybe ICD10CMRelationshipType
relationshipType = forall a. Maybe a
Prelude.Nothing,
      $sel:score:ICD10CMAttribute' :: Maybe Double
score = forall a. Maybe a
Prelude.Nothing,
      $sel:text:ICD10CMAttribute' :: Maybe Text
text = forall a. Maybe a
Prelude.Nothing,
      $sel:traits:ICD10CMAttribute' :: Maybe [ICD10CMTrait]
traits = forall a. Maybe a
Prelude.Nothing,
      $sel:type':ICD10CMAttribute' :: Maybe ICD10CMAttributeType
type' = forall a. Maybe a
Prelude.Nothing
    }

-- | The 0-based character offset in the input text that shows where the
-- attribute begins. The offset returns the UTF-8 code point in the string.
iCD10CMAttribute_beginOffset :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe Prelude.Int)
iCD10CMAttribute_beginOffset :: Lens' ICD10CMAttribute (Maybe Int)
iCD10CMAttribute_beginOffset = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe Int
beginOffset :: Maybe Int
$sel:beginOffset:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Int
beginOffset} -> Maybe Int
beginOffset) (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe Int
a -> ICD10CMAttribute
s {$sel:beginOffset:ICD10CMAttribute' :: Maybe Int
beginOffset = Maybe Int
a} :: ICD10CMAttribute)

-- | The category of attribute. Can be either of @DX_NAME@ or
-- @TIME_EXPRESSION@.
iCD10CMAttribute_category :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe ICD10CMEntityType)
iCD10CMAttribute_category :: Lens' ICD10CMAttribute (Maybe ICD10CMEntityType)
iCD10CMAttribute_category = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe ICD10CMEntityType
category :: Maybe ICD10CMEntityType
$sel:category:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe ICD10CMEntityType
category} -> Maybe ICD10CMEntityType
category) (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe ICD10CMEntityType
a -> ICD10CMAttribute
s {$sel:category:ICD10CMAttribute' :: Maybe ICD10CMEntityType
category = Maybe ICD10CMEntityType
a} :: ICD10CMAttribute)

-- | The 0-based character offset in the input text that shows where the
-- attribute ends. The offset returns the UTF-8 code point in the string.
iCD10CMAttribute_endOffset :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe Prelude.Int)
iCD10CMAttribute_endOffset :: Lens' ICD10CMAttribute (Maybe Int)
iCD10CMAttribute_endOffset = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe Int
endOffset :: Maybe Int
$sel:endOffset:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Int
endOffset} -> Maybe Int
endOffset) (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe Int
a -> ICD10CMAttribute
s {$sel:endOffset:ICD10CMAttribute' :: Maybe Int
endOffset = Maybe Int
a} :: ICD10CMAttribute)

-- | The numeric identifier for this attribute. This is a monotonically
-- increasing id unique within this response rather than a global unique
-- identifier.
iCD10CMAttribute_id :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe Prelude.Int)
iCD10CMAttribute_id :: Lens' ICD10CMAttribute (Maybe Int)
iCD10CMAttribute_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe Int
id :: Maybe Int
$sel:id:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Int
id} -> Maybe Int
id) (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe Int
a -> ICD10CMAttribute
s {$sel:id:ICD10CMAttribute' :: Maybe Int
id = Maybe Int
a} :: ICD10CMAttribute)

-- | The level of confidence that Amazon Comprehend Medical has that this
-- attribute is correctly related to this entity.
iCD10CMAttribute_relationshipScore :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe Prelude.Double)
iCD10CMAttribute_relationshipScore :: Lens' ICD10CMAttribute (Maybe Double)
iCD10CMAttribute_relationshipScore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe Double
relationshipScore :: Maybe Double
$sel:relationshipScore:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Double
relationshipScore} -> Maybe Double
relationshipScore) (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe Double
a -> ICD10CMAttribute
s {$sel:relationshipScore:ICD10CMAttribute' :: Maybe Double
relationshipScore = Maybe Double
a} :: ICD10CMAttribute)

-- | The type of relationship between the entity and attribute. Type for the
-- relationship can be either of @OVERLAP@ or @SYSTEM_ORGAN_SITE@.
iCD10CMAttribute_relationshipType :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe ICD10CMRelationshipType)
iCD10CMAttribute_relationshipType :: Lens' ICD10CMAttribute (Maybe ICD10CMRelationshipType)
iCD10CMAttribute_relationshipType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe ICD10CMRelationshipType
relationshipType :: Maybe ICD10CMRelationshipType
$sel:relationshipType:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe ICD10CMRelationshipType
relationshipType} -> Maybe ICD10CMRelationshipType
relationshipType) (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe ICD10CMRelationshipType
a -> ICD10CMAttribute
s {$sel:relationshipType:ICD10CMAttribute' :: Maybe ICD10CMRelationshipType
relationshipType = Maybe ICD10CMRelationshipType
a} :: ICD10CMAttribute)

-- | The level of confidence that Amazon Comprehend Medical has that the
-- segment of text is correctly recognized as an attribute.
iCD10CMAttribute_score :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe Prelude.Double)
iCD10CMAttribute_score :: Lens' ICD10CMAttribute (Maybe Double)
iCD10CMAttribute_score = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe Double
score :: Maybe Double
$sel:score:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Double
score} -> Maybe Double
score) (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe Double
a -> ICD10CMAttribute
s {$sel:score:ICD10CMAttribute' :: Maybe Double
score = Maybe Double
a} :: ICD10CMAttribute)

-- | The segment of input text which contains the detected attribute.
iCD10CMAttribute_text :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe Prelude.Text)
iCD10CMAttribute_text :: Lens' ICD10CMAttribute (Maybe Text)
iCD10CMAttribute_text = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe Text
text :: Maybe Text
$sel:text:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Text
text} -> Maybe Text
text) (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe Text
a -> ICD10CMAttribute
s {$sel:text:ICD10CMAttribute' :: Maybe Text
text = Maybe Text
a} :: ICD10CMAttribute)

-- | The contextual information for the attribute. The traits recognized by
-- InferICD10CM are @DIAGNOSIS@, @SIGN@, @SYMPTOM@, and @NEGATION@.
iCD10CMAttribute_traits :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe [ICD10CMTrait])
iCD10CMAttribute_traits :: Lens' ICD10CMAttribute (Maybe [ICD10CMTrait])
iCD10CMAttribute_traits = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe [ICD10CMTrait]
traits :: Maybe [ICD10CMTrait]
$sel:traits:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe [ICD10CMTrait]
traits} -> Maybe [ICD10CMTrait]
traits) (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe [ICD10CMTrait]
a -> ICD10CMAttribute
s {$sel:traits:ICD10CMAttribute' :: Maybe [ICD10CMTrait]
traits = Maybe [ICD10CMTrait]
a} :: ICD10CMAttribute) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The type of attribute. InferICD10CM detects entities of the type
-- @DX_NAME@.
iCD10CMAttribute_type :: Lens.Lens' ICD10CMAttribute (Prelude.Maybe ICD10CMAttributeType)
iCD10CMAttribute_type :: Lens' ICD10CMAttribute (Maybe ICD10CMAttributeType)
iCD10CMAttribute_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ICD10CMAttribute' {Maybe ICD10CMAttributeType
type' :: Maybe ICD10CMAttributeType
$sel:type':ICD10CMAttribute' :: ICD10CMAttribute -> Maybe ICD10CMAttributeType
type'} -> Maybe ICD10CMAttributeType
type') (\s :: ICD10CMAttribute
s@ICD10CMAttribute' {} Maybe ICD10CMAttributeType
a -> ICD10CMAttribute
s {$sel:type':ICD10CMAttribute' :: Maybe ICD10CMAttributeType
type' = Maybe ICD10CMAttributeType
a} :: ICD10CMAttribute)

instance Data.FromJSON ICD10CMAttribute where
  parseJSON :: Value -> Parser ICD10CMAttribute
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ICD10CMAttribute"
      ( \Object
x ->
          Maybe Int
-> Maybe ICD10CMEntityType
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe ICD10CMRelationshipType
-> Maybe Double
-> Maybe Text
-> Maybe [ICD10CMTrait]
-> Maybe ICD10CMAttributeType
-> ICD10CMAttribute
ICD10CMAttribute'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"BeginOffset")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Category")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EndOffset")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Id")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RelationshipScore")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RelationshipType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Score")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Text")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Traits" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Type")
      )

instance Prelude.Hashable ICD10CMAttribute where
  hashWithSalt :: Int -> ICD10CMAttribute -> Int
hashWithSalt Int
_salt ICD10CMAttribute' {Maybe Double
Maybe Int
Maybe [ICD10CMTrait]
Maybe Text
Maybe ICD10CMAttributeType
Maybe ICD10CMEntityType
Maybe ICD10CMRelationshipType
type' :: Maybe ICD10CMAttributeType
traits :: Maybe [ICD10CMTrait]
text :: Maybe Text
score :: Maybe Double
relationshipType :: Maybe ICD10CMRelationshipType
relationshipScore :: Maybe Double
id :: Maybe Int
endOffset :: Maybe Int
category :: Maybe ICD10CMEntityType
beginOffset :: Maybe Int
$sel:type':ICD10CMAttribute' :: ICD10CMAttribute -> Maybe ICD10CMAttributeType
$sel:traits:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe [ICD10CMTrait]
$sel:text:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Text
$sel:score:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Double
$sel:relationshipType:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe ICD10CMRelationshipType
$sel:relationshipScore:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Double
$sel:id:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Int
$sel:endOffset:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Int
$sel:category:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe ICD10CMEntityType
$sel:beginOffset:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Int
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
beginOffset
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ICD10CMEntityType
category
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
endOffset
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
id
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
relationshipScore
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ICD10CMRelationshipType
relationshipType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
score
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
text
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ICD10CMTrait]
traits
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ICD10CMAttributeType
type'

instance Prelude.NFData ICD10CMAttribute where
  rnf :: ICD10CMAttribute -> ()
rnf ICD10CMAttribute' {Maybe Double
Maybe Int
Maybe [ICD10CMTrait]
Maybe Text
Maybe ICD10CMAttributeType
Maybe ICD10CMEntityType
Maybe ICD10CMRelationshipType
type' :: Maybe ICD10CMAttributeType
traits :: Maybe [ICD10CMTrait]
text :: Maybe Text
score :: Maybe Double
relationshipType :: Maybe ICD10CMRelationshipType
relationshipScore :: Maybe Double
id :: Maybe Int
endOffset :: Maybe Int
category :: Maybe ICD10CMEntityType
beginOffset :: Maybe Int
$sel:type':ICD10CMAttribute' :: ICD10CMAttribute -> Maybe ICD10CMAttributeType
$sel:traits:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe [ICD10CMTrait]
$sel:text:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Text
$sel:score:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Double
$sel:relationshipType:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe ICD10CMRelationshipType
$sel:relationshipScore:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Double
$sel:id:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Int
$sel:endOffset:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Int
$sel:category:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe ICD10CMEntityType
$sel:beginOffset:ICD10CMAttribute' :: ICD10CMAttribute -> Maybe Int
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
beginOffset
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ICD10CMEntityType
category
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
endOffset
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
relationshipScore
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ICD10CMRelationshipType
relationshipType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
score
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
text
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ICD10CMTrait]
traits
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ICD10CMAttributeType
type'