### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Person.json
### ----------------------------------------------------
### -- Chunk 4 of 4
 the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Person.link.extension",
      "path" : "Person.link.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Person.link.modifierExtension",
      "path" : "Person.link.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Person.link.target",
      "path" : "Person.link.target",
      "short" : "The resource to which this actual person is associated",
      "definition" : "The resource to which this actual person is associated.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Person.link.target",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Person"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "id"
      }]
    },
    {
      "id" : "Person.link.assurance",
      "path" : "Person.link.assurance",
      "short" : "level1 | level2 | level3 | level4",
      "definition" : "Level of assurance that this link is associated with the target resource.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Person.link.assurance",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "IdentityAssuranceLevel"
        }],
        "strength" : "required",
        "description" : "The level of confidence that this link represents the same actual person, based on NIST Authentication Levels.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/identity-assuranceLevel|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "priorityNumber?"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "Person",
      "path" : "Person",
      "short" : "A generic person record",
      "definition" : "Demographics and administrative information about a person independent of a specific health-related context.",
      "comment" : "The Person resource does justice to person registries that keep track of persons regardless of their role. The Person resource is also a primary resource to point to for people acting in a particular role such as SubjectofCare, Practitioner, and Agent. Very few attributes are specific to any role and so Person is kept lean. Most attributes are expected to be tied to the role the Person plays rather than the Person himself. Examples of that are Guardian (SubjectofCare), ContactParty (SubjectOfCare, Practitioner), and multipleBirthInd (SubjectofCare).",
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "rim",
        "map" : "Person(classCode=\"PSN\" and determinerCode=\"INST\" and quantity=\"1\")"
      }]
    },
    {
      "id" : "Person.identifier",
      "path" : "Person.identifier",
      "short" : "A human identifier for this person",
      "definition" : "Identifier for a person within a particular scope.",
      "requirements" : "People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the person. Examples are national person identifier and local identifier.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "v2",
        "map" : "PID-3"
      },
      {
        "identity" : "rim",
        "map" : ".plays:Role(classCode='IDENT').id"
      }]
    },
    {
      "id" : "Person.name",
      "path" : "Person.name",
      "short" : "A name associated with the person",
      "definition" : "A name associated with the person.",
      "comment" : "Person may have multiple names with different uses or applicable periods.",
      "requirements" : "Need to be able to track the person by multiple names. Examples are your official name and a partner name.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "HumanName"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "PID-5, PID-9"
      },
      {
        "identity" : "rim",
        "map" : "./name"
      }]
    },
    {
      "id" : "Person.telecom",
      "path" : "Person.telecom",
      "short" : "A contact detail for the person",
      "definition" : "A contact detail for the person, e.g. a telephone number or an email address.",
      "comment" : "Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently and also to help with identification.",
      "requirements" : "People have (primary) ways to contact them in some way such as phone, email.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "ContactPoint"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "PID-13, PID-14"
      },
      {
        "identity" : "rim",
        "map" : "./telecom"
      }]
    },
    {
      "id" : "Person.gender",
      "path" : "Person.gender",
      "short" : "male | female | other | unknown",
      "definition" : "Administrative Gender.",
      "comment" : "The gender might not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though a clear majority of systems and contexts only support M and F.",
      "requirements" : "Needed for identification of the person, in combination with (at least) name and birth date. Gender of person drives many clinical processes.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AdministrativeGender"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "required",
        "description" : "The gender of a person used for administrative purposes.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PID-8"
      },
      {
        "identity" : "rim",
        "map" : "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
      }]
    },
    {
      "id" : "Person.birthDate",
      "path" : "Person.birthDate",
      "short" : "The date on which the person was born",
      "definition" : "The birth date for the person.",
      "comment" : "At least an estimated year should be provided as a guess if the real DOB is unknown.",
      "requirements" : "Age of person drives many clinical processes, and is often used in performing identification of the person. Times are not included so as to not confuse things with potential timezone issues.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "date"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "PID-7"
      },
      {
        "identity" : "rim",
        "map" : "./birthTime"
      }]
    },
    {
      "id" : "Person.address",
      "path" : "Person.address",
      "short" : "One or more addresses for the person",
      "definition" : "One or more addresses for the person.",
      "comment" : "Person may have multiple addresses with different uses or applicable periods.",
      "requirements" : "May need to keep track of person's addresses for contacting, billing or reporting requirements and also to help with identification.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Address"
      }],
      "mapping" : [{
        "identity" : "v2",
        "map" : "PID-11"
      },
      {
        "identity" : "rim",
        "map" : "./addr"
      }]
    },
    {
      "id" : "Person.photo",
      "path" : "Person.photo",
      "short" : "Image of the person",
      "definition" : "An image that can be displayed as a thumbnail of the person to enhance the identification of the individual.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Attachment"
      }],
      "mapping" : [{
        "identity" : "v2",
        "map" : "OBX-5 - needs a profile"
      },
      {
        "identity" : "rim",
        "map" : "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"
      }]
    },
    {
      "id" : "Person.managingOrganization",
      "path" : "Person.managingOrganization",
      "short" : "The organization that is the custodian of the person record",
      "definition" : "The organization that is the custodian of the person record.",
      "requirements" : "Need to know who recognizes this person record, manages and updates it.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "scoper"
      }]
    },
    {
      "id" : "Person.active",
      "path" : "Person.active",
      "short" : "This person's record is in active use",
      "definition" : "Whether this person's record is in active use.",
      "requirements" : "Need to be able to mark a person record as not to be used because it was created in error.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }],
      "isModifier" : true,
      "isModifierReason" : "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.status"
      },
      {
        "identity" : "rim",
        "map" : "statusCode"
      }]
    },
    {
      "id" : "Person.link",
      "path" : "Person.link",
      "short" : "Link to a resource that concerns the same actual person",
      "definition" : "Link to a resource that concerns the same actual person.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "outboundLink"
      }]
    },
    {
      "id" : "Person.link.target",
      "path" : "Person.link.target",
      "short" : "The resource to which this actual person is associated",
      "definition" : "The resource to which this actual person is associated.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Person"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "id"
      }]
    },
    {
      "id" : "Person.link.assurance",
      "path" : "Person.link.assurance",
      "short" : "level1 | level2 | level3 | level4",
      "definition" : "Level of assurance that this link is associated with the target resource.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "IdentityAssuranceLevel"
        }],
        "strength" : "required",
        "description" : "The level of confidence that this link represents the same actual person, based on NIST Authentication Levels.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/identity-assuranceLevel|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "priorityNumber?"
      }]
    }]
  }
}


