### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Patient.json
### ----------------------------------------------------
### -- Chunk 9 of 9
" : "cda",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Patient.contact.organization",
      "path" : "Patient.contact.organization",
      "short" : "Organization that is associated with the contact",
      "definition" : "Organization on behalf of which the contact is acting or for which the contact is working.",
      "requirements" : "For guardians or business related contacts, the organization is relevant.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "condition" : ["pat-1"],
      "mapping" : [{
        "identity" : "v2",
        "map" : "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41"
      },
      {
        "identity" : "rim",
        "map" : "scoper"
      },
      {
        "identity" : "cda",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Patient.contact.period",
      "path" : "Patient.contact.period",
      "short" : "The period during which this contact person or organization is valid to be contacted relating to this patient",
      "definition" : "The period during which this contact person or organization is valid to be contacted relating to this patient.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "effectiveTime"
      },
      {
        "identity" : "cda",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Patient.communication",
      "path" : "Patient.communication",
      "short" : "A language which may be used to communicate with the patient about his or her health",
      "definition" : "A language which may be used to communicate with the patient about his or her health.",
      "comment" : "If no language is specified, this *implies* that the default local language is spoken.  If you need to convey proficiency for multiple modes, then you need multiple Patient.Communication associations.   For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.",
      "requirements" : "If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency are important things to keep track of both for patient and other persons of interest.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "LanguageCommunication"
      },
      {
        "identity" : "cda",
        "map" : "patient.languageCommunication"
      }]
    },
    {
      "id" : "Patient.communication.language",
      "path" : "Patient.communication.language",
      "short" : "The language which can be used to communicate with the patient about his or her health",
      "definition" : "The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.",
      "comment" : "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.",
      "requirements" : "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Language"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "preferred",
        "description" : "A human language.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PID-15, LAN-2"
      },
      {
        "identity" : "rim",
        "map" : "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"
      },
      {
        "identity" : "cda",
        "map" : ".languageCode"
      }]
    },
    {
      "id" : "Patient.communication.preferred",
      "path" : "Patient.communication.preferred",
      "short" : "Language preference indicator",
      "definition" : "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).",
      "comment" : "This language is specifically identified for communicating healthcare information.",
      "requirements" : "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }],
      "mapping" : [{
        "identity" : "v2",
        "map" : "PID-15"
      },
      {
        "identity" : "rim",
        "map" : "preferenceInd"
      },
      {
        "identity" : "cda",
        "map" : ".preferenceInd"
      }]
    },
    {
      "id" : "Patient.generalPractitioner",
      "path" : "Patient.generalPractitioner",
      "short" : "Patient's nominated primary care provider",
      "definition" : "Patient's nominated care provider.",
      "comment" : "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles.  It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.",
      "alias" : ["careProvider"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole"]
      }],
      "mapping" : [{
        "identity" : "v2",
        "map" : "PD1-4"
      },
      {
        "identity" : "rim",
        "map" : "subjectOf.CareEvent.performer.AssignedEntity"
      },
      {
        "identity" : "cda",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Patient.managingOrganization",
      "path" : "Patient.managingOrganization",
      "short" : "Organization that is the custodian of the patient record",
      "definition" : "Organization that is the custodian of the patient record.",
      "comment" : "There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).",
      "requirements" : "Need to know who recognizes this patient 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"
      },
      {
        "identity" : "cda",
        "map" : ".providerOrganization"
      }]
    },
    {
      "id" : "Patient.link",
      "path" : "Patient.link",
      "short" : "Link to another patient resource that concerns the same actual person",
      "definition" : "Link to another patient resource that concerns the same actual patient.",
      "comment" : "There is no assumption that linked patient records have mutual links.",
      "requirements" : "There are multiple use cases:   \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and \n* Distribution of patient information across multiple servers.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "outboundLink"
      },
      {
        "identity" : "cda",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Patient.link.other",
      "path" : "Patient.link.other",
      "short" : "The other patient or related person resource that the link refers to",
      "definition" : "The other patient resource that the link refers to.",
      "comment" : "Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean" : false
        }],
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "v2",
        "map" : "PID-3, MRG-1"
      },
      {
        "identity" : "rim",
        "map" : "id"
      },
      {
        "identity" : "cda",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Patient.link.type",
      "path" : "Patient.link.type",
      "short" : "replaced-by | replaces | refer | seealso",
      "definition" : "The type of link between this patient resource and another patient resource.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "LinkType"
        }],
        "strength" : "required",
        "description" : "The type of link between this patient resource and another patient resource.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/link-type|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "typeCode"
      },
      {
        "identity" : "cda",
        "map" : "n/a"
      }]
    }]
  }
}


