{
  "resourceType": "StructureDefinition",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "TERMS-Database-Custom Schema",
      "name": "TERMS-Database Custom Schema"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "derivation": "constraint",
  "url": "https://lpr.mcc.mayo.edu/fhir/StructureDefinition/CodeSystem",
  "name": "LPR_CodeSystem",
  "type": "CodeSystem",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CodeSystem",
  "snapshot": {
    "element": [
      {
        "id": "CodeSystem.concept:0",
        "path": "CodeSystem.concept",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "See child attributes for additional mapping logic.",
            "comment": null
          }
        ],
        "sliceName": "0",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "CodeSystem.concept:0.code",
        "path": "CodeSystem.concept.code",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "DTC.TERMS_CONCEPT_CODE",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "CodeSystem.concept:0.display",
        "path": "CodeSystem.concept.display",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "DTC.TERMS_CONCEPT_NAME  AS CONCEPT_NAME",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CodeSystem.concept:0.property:0",
        "path": "CodeSystem.concept.property",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "See child attributes for additional mapping logic.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "CodeSystem.concept:0.property:0.code",
        "path": "CodeSystem.concept.property.code",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "Hard coded to constant value.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "CodeSystem.concept:0.property:0.valueDateTime",
        "path": "CodeSystem.concept.property.valueDateTime",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "CODESYS.CONCEPT_START_TIME",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "CodeSystem.concept:0.property:1",
        "path": "CodeSystem.concept.property",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "See child attributes for additional mapping logic.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "CodeSystem.concept:0.property:1.code",
        "path": "CodeSystem.concept.property.code",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "Hard coded to constant value.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "CodeSystem.concept:0.property:1.valueDateTime",
        "path": "CodeSystem.concept.property.valueDateTime",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "CODESYS.CONCEPT_END_TIME",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "CodeSystem.contact:0",
        "path": "CodeSystem.contact",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "See child attributes for additional mapping logic.",
            "comment": null
          }
        ],
        "sliceName": "0",
        "type": [
          {
            "code": "ContactDetail"
          }
        ]
      },
      {
        "id": "CodeSystem.contact:0.telecom:0",
        "path": "CodeSystem.contact.telecom",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "See child attributes for additional mapping logic.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "ContactPoint"
          }
        ]
      },
      {
        "id": "CodeSystem.contact:0.telecom:0.system",
        "path": "CodeSystem.contact.telecom.system",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "Hard coded to constant value.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "CodeSystem.contact:0.telecom:0.value",
        "path": "CodeSystem.contact.telecom.value",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "Hard coded to constant value.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CodeSystem.content",
        "path": "CodeSystem.content",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "Hard coded to constant value.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "CodeSystem.copyright",
        "path": "CodeSystem.copyright",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "TERMS_CODE_SYSTEM_LICENSE_CONDITION",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "markdown"
          }
        ]
      },
      {
        "id": "CodeSystem.date",
        "path": "CodeSystem.date",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "TERMS_CODE_SYSTEM_START_DATETIME",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "CodeSystem.description",
        "path": "CodeSystem.description",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "TERMS_CODE_SYSTEM_DESCRIPTION",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "markdown"
          }
        ]
      },
      {
        "id": "CodeSystem.identifier:0",
        "path": "CodeSystem.identifier",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "See child attributes for additional mapping logic.",
            "comment": null
          }
        ],
        "sliceName": "0",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "CodeSystem.identifier:0.system",
        "path": "CodeSystem.identifier.system",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "Hard coded to constant value.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "uri"
          }
        ]
      },
      {
        "id": "CodeSystem.identifier:0.value",
        "path": "CodeSystem.identifier.value",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "DTCS.TERMS_CODE_SYSTEM_TERMINOLOGY_REGISTRY_IDENTIFIER",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CodeSystem.name",
        "path": "CodeSystem.name",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "TERMS_CODE_SYSTEM_IDENTIFYING_FACET_NICKNAME",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CodeSystem.status",
        "path": "CodeSystem.status",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "Hard coded to constant value.",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "CodeSystem.title",
        "path": "CodeSystem.title",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "TERMS_CODE_SYSTEM_FULLY_SPECIFIED_NAME",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CodeSystem.url",
        "path": "CodeSystem.url",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "DTCS.TERMS_CODE_SYSTEM_FHIR_DESIGNATED_UNIFORM_RESOURCE_IDENTIFIER",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "uri"
          }
        ]
      },
      {
        "id": "CodeSystem.version",
        "path": "CodeSystem.version",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "TERMS-Database-Custom Schema",
            "map": "DTCS.TERMS_CODE_SYSTEM_VERSION",
            "comment": null
          }
        ],
        "sliceName": null,
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}