### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/BodyStructure.json
### ----------------------------------------------------
### -- Chunk 3 of 3
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"
      }
    },
    {
      "id" : "BodyStructure.text",
      "path" : "BodyStructure.text",
      "short" : "Text summary of the resource, for human interpretation",
      "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "alias" : ["narrative",
      "html",
      "xhtml",
      "display"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DomainResource.text",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Narrative"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Act.text?"
      }]
    },
    {
      "id" : "BodyStructure.contained",
      "path" : "BodyStructure.contained",
      "short" : "Contained, inline Resources",
      "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "alias" : ["inline resources",
      "anonymous resources",
      "contained resources"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.contained",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Resource"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "BodyStructure.extension",
      "path" : "BodyStructure.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 resource. 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" : "DomainResource.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "BodyStructure.modifierExtension",
      "path" : "BodyStructure.modifierExtension",
      "short" : "Extensions that cannot be ignored",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "BodyStructure.identifier",
      "path" : "BodyStructure.identifier",
      "short" : "Bodystructure identifier",
      "definition" : "Identifier for this instance of the anatomical structure.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BodyStructure.identifier",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Identifier"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      },
      {
        "identity" : "openehr",
        "map" : "Specific location  Cluster Optional (0..1) Cardinality: Mandatory, repeating, unordered (1..*)"
      }]
    },
    {
      "id" : "BodyStructure.active",
      "path" : "BodyStructure.active",
      "short" : "Whether this record is in active use",
      "definition" : "Whether this body site is in active use.",
      "comment" : "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
      "requirements" : "Need to be able to mark a body site entry as not to be used because it was created in error.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "BodyStructure.active",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      }],
      "meaningWhenMissing" : "This resource is generally assumed to be active if no value is provided for the active element",
      "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" : "BodyStructure.morphology",
      "path" : "BodyStructure.morphology",
      "short" : "Kind of Structure",
      "definition" : "The kind of structure being represented by the body structure at `BodyStructure.location`.  This can define both normal and abnormal morphologies.",
      "comment" : "The minimum cardinality of 0 supports the use case of specifying a location without defining a morphology.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "BodyStructure.morphology",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "BodyStructureCode"
        }],
        "strength" : "example",
        "description" : "Codes describing anatomic morphology.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/bodystructure-code"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "SPM-4/SPM-5"
      }]
    },
    {
      "id" : "BodyStructure.location",
      "path" : "BodyStructure.location",
      "short" : "Body site",
      "definition" : "The anatomical location or region of the specimen, lesion, or body structure.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "BodyStructure.location",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "BodySite"
        }],
        "strength" : "example",
        "description" : "Codes describing anatomical locations. May include laterality.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "OBX-20/SPM-8/SPM-10"
      },
      {
        "identity" : "rim",
        "map" : ".targetSiteCode"
      },
      {
        "identity" : "openehr",
        "map" : "Name of location"
      }]
    },
    {
      "id" : "BodyStructure.locationQualifier",
      "path" : "BodyStructure.locationQualifier",
      "short" : "Body site modifier",
      "definition" : "Qualifier to refine the anatomical location.  These include qualifiers for laterality, relative location, directionality, number, and plane.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BodyStructure.locationQualifier",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "BodyStructureQualifier"
        }],
        "strength" : "example",
        "description" : "Concepts modifying the anatomic location.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/bodystructure-relative-location"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "No distinct element defined in V2.x. The IHE Radiology Technical Framework directs the use of OBR-15-specimen source to contain laterality for imaging studies./SPM-9"
      },
      {
        "identity" : "rim",
        "map" : ".targetSiteCode"
      },
      {
        "identity" : "openehr",
        "map" : "Combines Side, Numerical identifier, Anatomical plane,and Aspect"
      }]
    },
    {
      "id" : "BodyStructure.description",
      "path" : "BodyStructure.description",
      "short" : "Text description",
      "definition" : "A summary, characterization or explanation of the body structure.",
      "comment" : "This description could include any visual markings used to orientate the viewer e.g. external reference points, special sutures, ink markings.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "BodyStructure.description",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "NTE"
      },
      {
        "identity" : "rim",
        "map" : ".text"
      },
      {
        "identity" : "openehr",
        "map" : "Description of anatomical location/Visual markings/orientation"
      }]
    },
    {
      "id" : "BodyStructure.image",
      "path" : "BodyStructure.image",
      "short" : "Attached images",
      "definition" : "Image or images used to identify a location.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BodyStructure.image",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Attachment"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "OBX"
      },
      {
        "identity" : "rim",
        "map" : "outboundRelationship[typeCode=COMP].target"
      },
      {
        "identity" : "openehr",
        "map" : "Image"
      }]
    },
    {
      "id" : "BodyStructure.patient",
      "path" : "BodyStructure.patient",
      "short" : "Who this is about",
      "definition" : "The person to which the body site belongs.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "BodyStructure.patient",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "v2",
        "map" : "PID-3"
      },
      {
        "identity" : "rim",
        "map" : ".scoper or .scoper.playsRole"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "BodyStructure",
      "path" : "BodyStructure",
      "short" : "Specific and identified anatomical structure",
      "definition" : "Record details about an anatomical structure.  This resource may be used when a coded concept does not provide the necessary detail needed for the use case.",
      "alias" : ["anatomical location"],
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "rim",
        "map" : "ActSIte"
      },
      {
        "identity" : "openehr",
        "map" : "Archetype ID   openEHR-EHR-CLUSTER.anatomical_location.v1      Concept name   Anatomical Location      Concept description   Record details about an anatomical location.      Keywords   location, site, anatomical      Copyright   © openEHR Foundation      Purpose   To record details about anatomical location.      Misuse   Not for specifiying unilateral/bilateral occurrence - this is related to an evaluation which perhaps includes multiple locations.      Author   Author name: Heather Leslie Organization: Ocean Informatics Email: heather.leslie@oceaninformatics.com Date of Origination: 2008-11-10       Translator   Norwegian Bokmål: Lars Bitsch-Larsen, Haukeland University Hospital of Bergen, Norway, MD, DEAA, MBA, spec in anesthesia, spec in tropical medicine. Arabic (Syria): Mona Saleh       Other contributors   Heather Leslie, Ocean Informatics, Australia (Editor) Ian McNicoll, freshEHR Clinical Informatics, United Kingdom (Editor) Dunmail Hodkinson, Black Pear Software Ltd, UK      References   Use cases: - 5LICS, midclavicular line - L forearm, 2cm anterior to the cubital fossa - Right iliac fossa - 5 cm below L tibial tuberosity - 2 cm medial to R nipple - 4 cm below R costal margin in midclavicular line - R femur - midline nose - medial aspect of R great toe nail."
      }]
    },
    {
      "id" : "BodyStructure.identifier",
      "path" : "BodyStructure.identifier",
      "short" : "Bodystructure identifier",
      "definition" : "Identifier for this instance of the anatomical structure.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      },
      {
        "identity" : "openehr",
        "map" : "Specific location  Cluster Optional (0..1) Cardinality: Mandatory, repeating, unordered (1..*)"
      }]
    },
    {
      "id" : "BodyStructure.active",
      "path" : "BodyStructure.active",
      "short" : "Whether this record is in active use",
      "definition" : "Whether this body site is in active use.",
      "comment" : "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
      "requirements" : "Need to be able to mark a body site entry as not to be used because it was created in error.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }],
      "meaningWhenMissing" : "This resource is generally assumed to be active if no value is provided for the active element",
      "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" : "BodyStructure.morphology",
      "path" : "BodyStructure.morphology",
      "short" : "Kind of Structure",
      "definition" : "The kind of structure being represented by the body structure at `BodyStructure.location`.  This can define both normal and abnormal morphologies.",
      "comment" : "The minimum cardinality of 0 supports the use case of specifying a location without defining a morphology.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "BodyStructureCode"
        }],
        "strength" : "example",
        "description" : "Codes describing anatomic morphology.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/bodystructure-code"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "SPM-4/SPM-5"
      }]
    },
    {
      "id" : "BodyStructure.location",
      "path" : "BodyStructure.location",
      "short" : "Body site",
      "definition" : "The anatomical location or region of the specimen, lesion, or body structure.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "BodySite"
        }],
        "strength" : "example",
        "description" : "Codes describing anatomical locations. May include laterality.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "OBX-20/SPM-8/SPM-10"
      },
      {
        "identity" : "rim",
        "map" : ".targetSiteCode"
      },
      {
        "identity" : "openehr",
        "map" : "Name of location"
      }]
    },
    {
      "id" : "BodyStructure.locationQualifier",
      "path" : "BodyStructure.locationQualifier",
      "short" : "Body site modifier",
      "definition" : "Qualifier to refine the anatomical location.  These include qualifiers for laterality, relative location, directionality, number, and plane.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "BodyStructureQualifier"
        }],
        "strength" : "example",
        "description" : "Concepts modifying the anatomic location.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/bodystructure-relative-location"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "No distinct element defined in V2.x. The IHE Radiology Technical Framework directs the use of OBR-15-specimen source to contain laterality for imaging studies./SPM-9"
      },
      {
        "identity" : "rim",
        "map" : ".targetSiteCode"
      },
      {
        "identity" : "openehr",
        "map" : "Combines Side, Numerical identifier, Anatomical plane,and Aspect"
      }]
    },
    {
      "id" : "BodyStructure.description",
      "path" : "BodyStructure.description",
      "short" : "Text description",
      "definition" : "A summary, characterization or explanation of the body structure.",
      "comment" : "This description could include any visual markings used to orientate the viewer e.g. external reference points, special sutures, ink markings.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "NTE"
      },
      {
        "identity" : "rim",
        "map" : ".text"
      },
      {
        "identity" : "openehr",
        "map" : "Description of anatomical location/Visual markings/orientation"
      }]
    },
    {
      "id" : "BodyStructure.image",
      "path" : "BodyStructure.image",
      "short" : "Attached images",
      "definition" : "Image or images used to identify a location.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Attachment"
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "OBX"
      },
      {
        "identity" : "rim",
        "map" : "outboundRelationship[typeCode=COMP].target"
      },
      {
        "identity" : "openehr",
        "map" : "Image"
      }]
    },
    {
      "id" : "BodyStructure.patient",
      "path" : "BodyStructure.patient",
      "short" : "Who this is about",
      "definition" : "The person to which the body site belongs.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "v2",
        "map" : "PID-3"
      },
      {
        "identity" : "rim",
        "map" : ".scoper or .scoper.playsRole"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    }]
  }
}


