### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/DocumentReference.json
### ----------------------------------------------------
### -- Chunk 9 of 9
requirements" : "This is an important piece of metadata that providers often rely upon to quickly sort and/or filter out to find specific content.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DocumentC80PracticeSetting"
        }],
        "strength" : "example",
        "description" : "Additional details about where the content was created (e.g. clinical specialty).",
        "valueSet" : "http://hl7.org/fhir/ValueSet/c80-practice-codes"
      },
      "mapping" : [{
        "identity" : "fhircomposition",
        "map" : "usually from a mapping to a local ValueSet"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=\"LOC\"].role[classCode=\"DSDLOC\"].code"
      },
      {
        "identity" : "xds",
        "map" : "DocumentEntry.practiceSettingCode"
      },
      {
        "identity" : "cda",
        "map" : "usually from a mapping to a local ValueSet"
      }]
    },
    {
      "id" : "DocumentReference.context.sourcePatientInfo",
      "path" : "DocumentReference.context.sourcePatientInfo",
      "short" : "Patient demographics from source",
      "definition" : "The Patient Information as known when the document was published. May be a reference to a version specific, or contained.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
      }],
      "mapping" : [{
        "identity" : "fhircomposition",
        "map" : "Composition.subject"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
      },
      {
        "identity" : "xds",
        "map" : "DocumentEntry.sourcePatientInfo, DocumentEntry.sourcePatientId"
      },
      {
        "identity" : "cda",
        "map" : "ClinicalDocument/recordTarget/"
      }]
    },
    {
      "id" : "DocumentReference.context.related",
      "path" : "DocumentReference.context.related",
      "short" : "Related identifiers or resources",
      "definition" : "Related identifiers or resources associated with the DocumentReference.",
      "comment" : "May be identifiers or resources that caused the DocumentReference or referenced Document to be created.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "mapping" : [{
        "identity" : "fhircomposition",
        "map" : "Composition.event.detail"
      },
      {
        "identity" : "rim",
        "map" : "./outboundRelationship[typeCode=\"PERT\" and isNormalActRelationship()] / target[isNormalAct]"
      },
      {
        "identity" : "xds",
        "map" : "DocumentEntry.referenceIdList"
      },
      {
        "identity" : "cda",
        "map" : "ClinicalDocument/relatedDocument"
      }]
    }]
  }
}


