### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/RelatedPerson.json
### ----------------------------------------------------
### -- Chunk 5 of 5
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "RelatedPerson.communication",
      "path" : "RelatedPerson.communication",
      "short" : "A language which may be used to communicate with about the patient's health",
      "definition" : "A language which may be used to communicate with about the patient's 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 RelatedPerson.Communication associations.   If the RelatedPerson 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 related person does not speak the local language, interpreters may be required, so languages spoken and proficiency is an 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"
      }]
    },
    {
      "id" : "RelatedPerson.communication.language",
      "path" : "RelatedPerson.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" : "rim",
        "map" : "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"
      }]
    },
    {
      "id" : "RelatedPerson.communication.preferred",
      "path" : "RelatedPerson.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" : "rim",
        "map" : "preferenceInd"
      }]
    }]
  }
}


