### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/ResearchSubject.json
### ----------------------------------------------------
### -- Chunk 3 of 3
 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Identifier"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "BRIDG5.1",
        "map" : "StudySubject > Subject.identifier"
      },
      {
        "identity" : "rim",
        "map" : ".identifier"
      }]
    },
    {
      "id" : "ResearchSubject.status",
      "path" : "ResearchSubject.status",
      "short" : "candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn",
      "definition" : "The current state of the subject.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "ResearchSubject.status",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "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,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ResearchSubjectStatus"
        }],
        "strength" : "required",
        "description" : "Indicates the progression of a study subject through a study.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/research-subject-status|4.0.0"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.status"
      },
      {
        "identity" : "BRIDG5.1",
        "map" : "StudySubject.statusCode"
      },
      {
        "identity" : "rim",
        "map" : ".status"
      }]
    },
    {
      "id" : "ResearchSubject.period",
      "path" : "ResearchSubject.period",
      "short" : "Start and end of participation",
      "definition" : "The dates the subject began and ended their participation in the study.",
      "alias" : ["timing"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ResearchSubject.period",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.planned"
      },
      {
        "identity" : "BRIDG5.1",
        "map" : "PerformedStudySubjectMilestone.studyReferenceDateRange"
      }]
    },
    {
      "id" : "ResearchSubject.study",
      "path" : "ResearchSubject.study",
      "short" : "Study subject is part of",
      "definition" : "Reference to the study the subject is participating in.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "ResearchSubject.study",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ResearchStudy"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "StudySubjectProtocolVersionRelationship"
      }]
    },
    {
      "id" : "ResearchSubject.individual",
      "path" : "ResearchSubject.individual",
      "short" : "Who is part of study",
      "definition" : "The record of the person or animal who is involved in the study.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "ResearchSubject.individual",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "StudySubject"
      }]
    },
    {
      "id" : "ResearchSubject.assignedArm",
      "path" : "ResearchSubject.assignedArm",
      "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.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ResearchSubject.assignedArm",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "Arm > ExperimentalUnit > BiologicEntity > Subject > StudySubject"
      }]
    },
    {
      "id" : "ResearchSubject.actualArm",
      "path" : "ResearchSubject.actualArm",
      "short" : "What path was followed",
      "definition" : "The name of the arm in the study the subject actually followed as part of this study.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ResearchSubject.actualArm",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "Arm > ExperimentalUnit > BiologicEntity > Subject > StudySubject"
      }]
    },
    {
      "id" : "ResearchSubject.consent",
      "path" : "ResearchSubject.consent",
      "short" : "Agreement to participate in study",
      "definition" : "A record of the patient's informed agreement to participate in the study.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ResearchSubject.consent",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Consent"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "ResearchStudy.consent is related to PerformedStudySubjectMilestone.informedConsentIndicator in that the informedConsentIndicator can be derived from the data in the Consent resource."
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "ResearchSubject",
      "path" : "ResearchSubject",
      "short" : "Physical entity which is the primary unit of interest in the study",
      "definition" : "A physical entity which is the primary unit of operational and/or administrative interest in a study.",
      "comment" : "Need to make sure we encompass public health studies.",
      "alias" : ["Study Subject"],
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "StudySubject"
      },
      {
        "identity" : "v2",
        "map" : "OBX"
      },
      {
        "identity" : "rim",
        "map" : "Observation[classCode=CLNTRL, moodCode=EVN]"
      }]
    },
    {
      "id" : "ResearchSubject.identifier",
      "path" : "ResearchSubject.identifier",
      "short" : "Business Identifier for research subject in a study",
      "definition" : "Identifiers assigned to this research subject for a study.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "BRIDG5.1",
        "map" : "StudySubject > Subject.identifier"
      },
      {
        "identity" : "rim",
        "map" : ".identifier"
      }]
    },
    {
      "id" : "ResearchSubject.status",
      "path" : "ResearchSubject.status",
      "short" : "candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn",
      "definition" : "The current state of the subject.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "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,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ResearchSubjectStatus"
        }],
        "strength" : "required",
        "description" : "Indicates the progression of a study subject through a study.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/research-subject-status|4.0.0"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.status"
      },
      {
        "identity" : "BRIDG5.1",
        "map" : "StudySubject.statusCode"
      },
      {
        "identity" : "rim",
        "map" : ".status"
      }]
    },
    {
      "id" : "ResearchSubject.period",
      "path" : "ResearchSubject.period",
      "short" : "Start and end of participation",
      "definition" : "The dates the subject began and ended their participation in the study.",
      "alias" : ["timing"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.planned"
      },
      {
        "identity" : "BRIDG5.1",
        "map" : "PerformedStudySubjectMilestone.studyReferenceDateRange"
      }]
    },
    {
      "id" : "ResearchSubject.study",
      "path" : "ResearchSubject.study",
      "short" : "Study subject is part of",
      "definition" : "Reference to the study the subject is participating in.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ResearchStudy"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "StudySubjectProtocolVersionRelationship"
      }]
    },
    {
      "id" : "ResearchSubject.individual",
      "path" : "ResearchSubject.individual",
      "short" : "Who is part of study",
      "definition" : "The record of the person or animal who is involved in the study.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "StudySubject"
      }]
    },
    {
      "id" : "ResearchSubject.assignedArm",
      "path" : "ResearchSubject.assignedArm",
      "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.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "Arm > ExperimentalUnit > BiologicEntity > Subject > StudySubject"
      }]
    },
    {
      "id" : "ResearchSubject.actualArm",
      "path" : "ResearchSubject.actualArm",
      "short" : "What path was followed",
      "definition" : "The name of the arm in the study the subject actually followed as part of this study.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "Arm > ExperimentalUnit > BiologicEntity > Subject > StudySubject"
      }]
    },
    {
      "id" : "ResearchSubject.consent",
      "path" : "ResearchSubject.consent",
      "short" : "Agreement to participate in study",
      "definition" : "A record of the patient's informed agreement to participate in the study.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Consent"]
      }],
      "mapping" : [{
        "identity" : "BRIDG5.1",
        "map" : "ResearchStudy.consent is related to PerformedStudySubjectMilestone.informedConsentIndicator in that the informedConsentIndicator can be derived from the data in the Consent resource."
      }]
    }]
  }
}


