Data Model Libraries
    Preparing search index...

    ResearchSubject Class

    A ResearchSubject is a participant or object which is the recipient of investigative activities in a research study.

    FHIR Specification

    • Short: Participant or object which is the recipient of investigative activities in a study
    • Definition: A ResearchSubject is a participant or object which is the recipient of investigative activities in a research study.
    • Comment: Need to make sure we encompass public health studies.
    • FHIR Version: 5.0.0

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    parse getIdentifier setIdentifier addIdentifier hasIdentifier getStatusEnumType setStatusEnumType hasStatusEnumType getStatusElement setStatusElement hasStatusElement getStatus setStatus hasStatus getProgress setProgress addProgress hasProgress getPeriod setPeriod hasPeriod getStudy setStudy hasStudy getSubject setSubject hasSubject getAssignedComparisonGroupElement setAssignedComparisonGroupElement hasAssignedComparisonGroupElement getAssignedComparisonGroup setAssignedComparisonGroup hasAssignedComparisonGroup getActualComparisonGroupElement setActualComparisonGroupElement hasActualComparisonGroupElement getActualComparisonGroup setActualComparisonGroup hasActualComparisonGroup getConsent setConsent addConsent hasConsent fhirType isEmpty isRequiredFieldsEmpty copy toJSON getText setText hasText getContained setContained addContained hasContained getExtension setExtension hasExtension getExtensionByUrl addExtension removeExtension getModifierExtension setModifierExtension hasModifierExtension getModifierExtensionByUrl addModifierExtension removeModifierExtension resourceType getIdElement setIdElement hasIdElement getId setId hasId getMeta setMeta hasMeta getImplicitRulesElement setImplicitRulesElement hasImplicitRulesElement getImplicitRules setImplicitRules hasImplicitRules getLanguageElement setLanguageElement hasLanguageElement getLanguage setLanguage hasLanguage isResource isDataType isComplexDataType isPrimitive isBooleanPrimitive isStringPrimitive isNumberPrimitive isBigIntPrimitive isDateTimePrimitive copyValues initIdentifier initProgress initConsent

    Constructors

    Properties

    identifier?: Identifier[]

    ResearchSubject.identifier Element

    FHIR Specification

    • Short: Business Identifier for research subject in a study
    • Definition: Identifiers assigned to this research subject for a study.
    • FHIR Type: Identifier
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    publicationStatusEnum: PublicationStatusEnum

    FHIR CodeSystem: PublicationStatus

    status: null | EnumCodeType

    ResearchSubject.status Element

    FHIR Specification

    • Short: draft | active | retired | unknown
    • Definition: The publication state of the resource (not of the subject).
    • FHIR Type: code
    • Cardinality: 1..1
    • isModifier: true
    • isModifierReason: This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
    • isSummary: true

    CodeSystem Enumeration: PublicationStatusEnum

    ResearchSubject.progress Element

    FHIR Specification

    • Short: Subject status
    • Definition: The current state (status) of the subject and resons for status change where appropriate.
    • Comment: This is intended to deal with the confusion routinely created by haing two conflated concepts of being in a particular state and having achieved a particular milestone. In strict terms a milestone is a point of time event that results in a change from one state to another. The state before the milestone is achieved is often given the same name as the milestone, and sometimes the state may have the same description. For instance "Randomised" and "Visit 1" may be different milestones but the state remains at "on study" after each of them. It is likely that more than one "state" pattern will be recorded for a subject and a type has been introduced to allow this simultaneous recording.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false
    period?: Period

    ResearchSubject.period Element

    FHIR Specification

    • Short: Start and end of participation
    • Definition: The dates the subject began and ended their participation in the study.
    • FHIR Type: Period
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    study: null | Reference

    ResearchSubject.study Element

    FHIR Specification

    subject: null | Reference

    ResearchSubject.subject Element

    FHIR Specification

    assignedComparisonGroup?: IdType

    ResearchSubject.assignedComparisonGroup Element

    FHIR Specification

    • Short: What path should be followed
    • Definition: The name of the arm in the study the subject is expected to follow as part of this study.
    • Comment: Maybe this is really PlanDefinition.
    • FHIR Type: id
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    actualComparisonGroup?: IdType

    ResearchSubject.actualComparisonGroup Element

    FHIR Specification

    • Short: What path was followed
    • Definition: The name of the arm in the study the subject actually followed as part of this study.
    • FHIR Type: id
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    consent?: Reference[]

    ResearchSubject.consent Element

    FHIR Specification

    • Short: Agreement to participate in study
    • Definition: A record of the patient's informed agreement to participate in the study.
    • FHIR Type: Reference
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false

    Methods

    • Parse the provided ResearchSubject JSON to instantiate the ResearchSubject data model.

      Parameters

      • sourceJson: Value

        JSON representing FHIR ResearchSubject

      • OptionaloptSourceField: string

        Optional data source field (e.g. <complexTypeName>.<complexTypeFieldName>); defaults to ResearchSubject

      Returns undefined | ResearchSubject

      ResearchSubject data model or undefined for ResearchSubject

      JsonError if the provided JSON is not a valid JSON object

    • Assigns the provided Subject object value to the subject property.

      Parameters

      • value: undefined | null | Reference

        the subject object value

      Returns this

      this

      @ReferenceTargets('ResearchSubject.subject', ['Patient','Group','Specimen','Device','Medication','Substance','BiologicallyDerivedProduct',])

      InvalidTypeError for invalid data type or reference value

    • Assigns the provided value to the text property.

      Parameters

      Returns this

      this

    • Returns boolean

      true if the text property exists and has a value; false otherwise

    • Assigns the provided Resource array value to the contained property.

      Parameters

      • value: undefined | IResource[]

        the contained array value

      Returns this

      this

    • Returns boolean

      true if the contained property exists and has a value; false otherwise

    • Assigns the provided array of Extension values to the extension property.

      Parameters

      • extension: undefined | IExtension[]

        array of Extensions

      Returns this

      this

    • Determines if the extension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has the provided url; false otherwise

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the extension property exists and has any values.

      AssertionError for invalid url

    • Adds the provided Extension to the extension property array.

      Parameters

      • extension: undefined | IExtension

        the Extension value to add to the extension property array

      Returns this

      this

    • Removes the Extension having the provided url from the extension property array.

      Parameters

      • url: string

        the url that identifies a specific Extension to remove

      Returns void

      AssertionError for invalid url

    • Determines if the modifierExtension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has the provided url

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the modifierExtension property exists and has any values.

      AssertionError for invalid url

    • Assigns the provided PrimitiveType value to the id property.

      Parameters

      • element: undefined | IdType

        the id value

      Returns this

      this

    • Returns undefined | string

      the id property value as a primitive value

    • Assigns the provided primitive value to the id property.

      Parameters

      • value: undefined | string

        the id value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the id property exists and has a value; false otherwise

    • Assigns the provided value to the meta property.

      Parameters

      • value: undefined | Meta

        the meta value

      Returns this

      this

    • Returns boolean

      true if the meta property exists and has a value; false otherwise

    • Assigns the provided primitive value to the implicitRules property.

      Parameters

      • value: undefined | string

        the implicitRules value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns undefined | string

      the language property value as a primitive value

    • Assigns the provided primitive value to the language property.

      Parameters

      • value: undefined | string

        the language value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the language property exists and has a value; false otherwise

    • Returns boolean

      true if the instance is a FHIR complex or primitive datatype; false otherwise