HL7 Version 2 to FHIR
1.0.0-ballot - ballot International flag

HL7 Version 2 to FHIR, published by HL7 International / Orders and Observations. This guide is not an authorized publication; it is the continuous build for version 1.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/v2-to-fhir/ and changes regularly. See the Directory of published versions

: Segment DG1 to EpisodeOfCare Map - JSON Representation

Active as of 2024-04-24

Raw json | Download


{
  "resourceType" : "ConceptMap",
  "id" : "segment-dg1-to-episodeofcare",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ConceptMap segment-dg1-to-episodeofcare</b></p><a name=\"segment-dg1-to-episodeofcare\"> </a><a name=\"hcsegment-dg1-to-episodeofcare\"> </a><a name=\"segment-dg1-to-episodeofcare-en-US\"> </a><p>Mapping from DG1 to <a href=\"http://hl7.org/fhir/R4/episodeofcare.html\">EpisodeOfCare</a></p><p>ACTIVE (not intended for production usage). Published on 2024-04-24 by HL7 International / Orders and Observations  (HL7 Orders and Observations Workgroup: <a href=\"http://www.hl7.org/Special/committees/orders\">http://www.hl7.org/Special/com...</a>, Keith W. Boone: <a href=\"mailto:kboone@ainq.com\">kboone@ainq.com</a>, Rob Hausam: <a href=\"mailto:rrhausam@gmail.com\">rrhausam@gmail.com</a>). Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.</p><div><p>This ConceptMap represents a mapping from the HL7 V2 Segment DG1 to the FHIR EpisodeOfCare Resource.</p>\n</div><br/><p><b>Group 1 </b>Mapping from <code>unspecified code system</code> to <code>unspecified code system</code></p><table class=\"grid\"><tr><td colspan=\"5\"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan=\"2\"><b>Target Concept Details</b></td><td><b>Comment</b></td><td colspan=\"2\"><b>Properties</b></td></tr><tr><td colspan=\"2\"><b>Codes</b> from </td><td><b>vocabularymap</b></td><td><b>datatypemap</b></td><td><b>value</b></td><td/><td colspan=\"2\"><b>Codes</b> from </td><td/></tr><tr><td style=\"border-right-width: 0px\">DG1-3</td><td style=\"border-left-width: 0px\">Diagnosis Code</td><td/><td>CWE[CodeableConcept]</td><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.code)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.code)</td><td/></tr><tr><td style=\"border-right-width: 0px\">DG1-4</td><td style=\"border-left-width: 0px\">Diagnosis Description</td><td/><td/><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.code.text)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.code.text)</td><td>Doesn't warrant mapping</td></tr><tr><td style=\"border-right-width: 0px\">DG1-5</td><td style=\"border-left-width: 0px\">Diagnosis Date/Time</td><td/><td/><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.onsetDateTime)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.onsetDateTime)</td><td>Should confirm that these two concepts are equivalent. Condition.recordedDate is also available</td></tr><tr><td style=\"border-right-width: 0px\">DG1-6</td><td style=\"border-left-width: 0px\">Diagnosis Type</td><td>DiagnosisType</td><td>CWE[CodeableConcept]</td><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.role</td><td style=\"border-left-width: 0px\">diagnosis.role</td><td/></tr><tr><td style=\"border-right-width: 0px\">DG1-15</td><td style=\"border-left-width: 0px\">Diagnosis Priority</td><td/><td/><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.rank</td><td style=\"border-left-width: 0px\">diagnosis.rank</td><td>Could contribute to Condition.category or be a new extension</td></tr><tr><td style=\"border-right-width: 0px\">DG1-16</td><td style=\"border-left-width: 0px\">Diagnosing Clinician</td><td/><td>XCN[Practitioner]</td><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.asserter(Practitioner)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.asserter(Practitioner)</td><td>While DG1-16 can repeat, we are not aware of instances where this is used.  Until such time, we will not yet establish an agreed to method to communicate the extra repeats in FHIR.</td></tr><tr><td style=\"border-right-width: 0px\">DG1-19</td><td style=\"border-left-width: 0px\">Attestation Date/Time</td><td/><td/><td>&quot;http://hl7.org/fhir/StructureDefinition/condition-assertedDate&quot;</td><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.extension[1].url)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.extension[1].url)</td><td/></tr><tr><td style=\"border-right-width: 0px\">DG1-19</td><td style=\"border-left-width: 0px\">Attestation Date/Time</td><td/><td/><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.extension[1].valueDateTime)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.extension[1].valueDateTime)</td><td>It is unclear whether to use recorded or asserted date.  What is your opinion?</td></tr><tr><td style=\"border-right-width: 0px\">DG1-19</td><td style=\"border-left-width: 0px\">Attestation Date/Time</td><td/><td/><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.recordedDate)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.recordedDate)</td><td>It is unclear whether to use recorded or asserted date.  What is your opinion?</td></tr><tr><td style=\"border-right-width: 0px\">DG1-20</td><td style=\"border-left-width: 0px\">Diagnosis Identifier</td><td/><td>EI[Identifier-Extension]</td><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.identifier)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.identifier)</td><td>We should confirm that this is truly a unique ID before it gets used as .id. It may need to be combined with a visit ID to make it fully unique.</td></tr><tr><td style=\"border-right-width: 0px\">DG1-21</td><td style=\"border-left-width: 0px\">Diagnosis Action Code</td><td/><td/><td>&quot;entered-in-error&quot;</td><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.verificationStatus.coding.code)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.verificationStatus.coding.code)</td><td>Other values (A and U) don't map to anything</td></tr><tr><td style=\"border-right-width: 0px\">DG1-21</td><td style=\"border-left-width: 0px\">Diagnosis Action Code</td><td/><td/><td>&quot;http://terminology.hl7.org/CodeSystem/condition-ver-status&quot;</td><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.verificationStatus.coding.system)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.verificationStatus.coding.system)</td><td/></tr><tr><td style=\"border-right-width: 0px\">DG1-22</td><td style=\"border-left-width: 0px\">Parent Diagnosis</td><td/><td/><td>&quot;http://hl7.org/fhir/StructureDefinition/condition-dueTo&quot;</td><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.extension[2].url)</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.extension[2].url)</td><td/></tr><tr><td style=\"border-right-width: 0px\">DG1-22</td><td style=\"border-left-width: 0px\">Parent Diagnosis</td><td/><td>EI[Condition]</td><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">diagnosis.condition(Condition.extension[2].valueReference(Condition))</td><td style=\"border-left-width: 0px\">diagnosis.condition(Condition.extension[2].valueReference(Condition))</td><td>Extensions for occurredFollowing and related also exist</td></tr></table></div>"
  },
  "extension" : [
    {
      "extension" : [
        {
          "url" : "type",
          "valueCode" : "derived-from"
        },
        {
          "url" : "label",
          "valueString" : "Segment DG1 to EpisodeOfCare.fsh"
        },
        {
          "url" : "url",
          "valueUri" : "https://docs.google.com/spreadsheets/d/1seZccIaX-x7-8vVxT1JiiG5Hm1dtWgYcI2RxiiKzh-o/edit#gid=0"
        }
      ],
      "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact"
    }
  ],
  "url" : "http://hl7.org/fhir/uv/v2mappings/segment-dg1-to-episodeofcare",
  "version" : "1.0.0-ballot",
  "name" : "SegmentDG1ToEpisodeOfCare",
  "title" : "Segment DG1 to EpisodeOfCare Map",
  "status" : "active",
  "experimental" : true,
  "date" : "2024-04-24",
  "publisher" : "HL7 International / Orders and Observations",
  "contact" : [
    {
      "name" : "HL7 Orders and Observations Workgroup",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders"
        }
      ]
    },
    {
      "name" : "Keith W. Boone",
      "telecom" : [
        {
          "system" : "email",
          "value" : "kboone@ainq.com"
        }
      ]
    },
    {
      "name" : "Rob Hausam",
      "telecom" : [
        {
          "system" : "email",
          "value" : "rrhausam@gmail.com"
        }
      ]
    }
  ],
  "description" : "This ConceptMap represents a mapping from the HL7 V2 Segment DG1 to the FHIR EpisodeOfCare Resource.",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "copyright" : "Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.",
  "sourceUri" : "DG1",
  "targetUri" : "EpisodeOfCare",
  "group" : [
    {
      "element" : [
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "CWE"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-3",
          "display" : "Diagnosis Code",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "CodeableConcept"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.code)",
              "display" : "diagnosis.condition(Condition.code)",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "data-type-map",
                  "value" : "CWE[CodeableConcept]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "ST"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-4",
          "display" : "Diagnosis Description",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.code.text)",
              "display" : "diagnosis.condition(Condition.code.text)",
              "equivalence" : "equivalent",
              "comment" : "Doesn't warrant mapping"
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "DTM"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-5",
          "display" : "Diagnosis Date/Time",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "dateTime"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.onsetDateTime)",
              "display" : "diagnosis.condition(Condition.onsetDateTime)",
              "equivalence" : "equivalent",
              "comment" : "Should confirm that these two concepts are equivalent. Condition.recordedDate is also available"
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "CWE"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-6",
          "display" : "Diagnosis Type",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "CodeableConcept"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.role",
              "display" : "diagnosis.role",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "data-type-map",
                  "value" : "CWE[CodeableConcept]"
                },
                {
                  "property" : "vocabulary-map",
                  "value" : "DiagnosisType"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "NM"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-15",
          "display" : "Diagnosis Priority",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "positiveInt"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.rank",
              "display" : "diagnosis.rank",
              "equivalence" : "equivalent",
              "comment" : "Could contribute to Condition.category or be a new extension"
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "XCN"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : -1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : -1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-16",
          "display" : "Diagnosing Clinician",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "Reference"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.asserter(Practitioner)",
              "display" : "diagnosis.condition(Condition.asserter(Practitioner)",
              "equivalence" : "equivalent",
              "comment" : "While DG1-16 can repeat, we are not aware of instances where this is used.  Until such time, we will not yet establish an agreed to method to communicate the extra repeats in FHIR.",
              "dependsOn" : [
                {
                  "property" : "data-type-map",
                  "value" : "XCN[Practitioner]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "DTM"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-19",
          "display" : "Attestation Date/Time",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "uri"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 1
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.extension[1].url)",
              "display" : "diagnosis.condition(Condition.extension[1].url)",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "value",
                  "value" : "\"http://hl7.org/fhir/StructureDefinition/condition-assertedDate\""
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "DTM"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-19",
          "display" : "Attestation Date/Time",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "dateTime"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 1
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.extension[1].valueDateTime)",
              "display" : "diagnosis.condition(Condition.extension[1].valueDateTime)",
              "equivalence" : "equivalent",
              "comment" : "It is unclear whether to use recorded or asserted date.  What is your opinion?"
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "DTM"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-19",
          "display" : "Attestation Date/Time",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "dateTime"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.recordedDate)",
              "display" : "diagnosis.condition(Condition.recordedDate)",
              "equivalence" : "equivalent",
              "comment" : "It is unclear whether to use recorded or asserted date.  What is your opinion?"
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "EI"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-20",
          "display" : "Diagnosis Identifier",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "identifier"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : -1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.identifier)",
              "display" : "diagnosis.condition(Condition.identifier)",
              "equivalence" : "equivalent",
              "comment" : "We should confirm that this is truly a unique ID before it gets used as .id. It may need to be combined with a visit ID to make it fully unique.",
              "dependsOn" : [
                {
                  "property" : "data-type-map",
                  "value" : "EI[Identifier-Extension]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "ID"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-21",
          "display" : "Diagnosis Action Code",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "code"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.verificationStatus.coding.code)",
              "display" : "diagnosis.condition(Condition.verificationStatus.coding.code)",
              "equivalence" : "equivalent",
              "comment" : "Other values (A and U) don't map to anything",
              "dependsOn" : [
                {
                  "property" : "value",
                  "value" : "\"entered-in-error\""
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "ID"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-21",
          "display" : "Diagnosis Action Code",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "uri"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.verificationStatus.coding.system)",
              "display" : "diagnosis.condition(Condition.verificationStatus.coding.system)",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "value",
                  "value" : "\"http://terminology.hl7.org/CodeSystem/condition-ver-status\""
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "EI"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-22",
          "display" : "Parent Diagnosis",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.extension[2].url)",
              "display" : "diagnosis.condition(Condition.extension[2].url)",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "value",
                  "value" : "\"http://hl7.org/fhir/StructureDefinition/condition-dueTo\""
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "type",
                  "valueCode" : "EI"
                },
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "DG1-22",
          "display" : "Parent Diagnosis",
          "target" : [
            {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "type",
                      "valueCode" : "Reference"
                    },
                    {
                      "url" : "cardinalityMin",
                      "valueInteger" : 0
                    },
                    {
                      "url" : "cardinalityMax",
                      "valueInteger" : 1
                    }
                  ],
                  "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "diagnosis.condition(Condition.extension[2].valueReference(Condition))",
              "display" : "diagnosis.condition(Condition.extension[2].valueReference(Condition))",
              "equivalence" : "equivalent",
              "comment" : "Extensions for occurredFollowing and related also exist",
              "dependsOn" : [
                {
                  "property" : "data-type-map",
                  "value" : "EI[Condition]"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}