{
  "resourceType": "StructureDefinition",
  "id": "EPCodeableConcept-ced4b350-0d54-4fc7-a27b-ad62acf818f0",
  "url": "https://www.esante.lu/fhir-spec/StructureDefinition/EPCodeableConcept",
  "version": "1.2.0",
  "name": "EPCodeableConcept",
  "status": "active",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "orim",
      "uri": "http://hl7.org/orim",
      "name": "Ontological RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "CodeableConcept",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CodeableConcept",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CodeableConcept",
        "path": "CodeableConcept",
        "comment": "There are 3 ways to use this ressource: (see examples)\r\n- 1: If only a textual representation is possible, use text and don't use coding. This is also how to prescribe something which is not in the referential\r\n- 2: If there is a code and the referential doesn't ask for \"additionalText\", use only coding and not text\r\n- 3: If there is a code and the referential does ask for \"additionalText\", use coding and provide information in text",
        "example": [
          {
            "label": "Case 1",
            "valueCodeableConcept": {
              "text": "Patient bélonéphobie"
            }
          },
          {
            "label": "Case 2",
            "valueCodeableConcept": {
              "coding": [
                {
                  "code": "127",
                  "system": "urn:oid:1.3.182.5.53"
                }
              ]
            }
          },
          {
            "label": "Case 3",
            "valueCodeableConcept": {
              "coding": [
                {
                  "code": "143",
                  "system": "urn:oid:1.3.182.5.53"
                }
              ],
              "text": "narine gauche"
            }
          }
        ]
      },
      {
        "id": "CodeableConcept.id",
        "path": "CodeableConcept.id",
        "max": "0"
      },
      {
        "id": "CodeableConcept.coding",
        "path": "CodeableConcept.coding",
        "max": "1"
      },
      {
        "id": "CodeableConcept.coding.id",
        "path": "CodeableConcept.coding.id",
        "max": "0"
      },
      {
        "id": "CodeableConcept.coding.system",
        "path": "CodeableConcept.coding.system",
        "min": 1
      },
      {
        "id": "CodeableConcept.coding.version",
        "path": "CodeableConcept.coding.version",
        "max": "0"
      },
      {
        "id": "CodeableConcept.coding.code",
        "path": "CodeableConcept.coding.code",
        "min": 1
      },
      {
        "id": "CodeableConcept.coding.display",
        "path": "CodeableConcept.coding.display",
        "max": "0"
      },
      {
        "id": "CodeableConcept.coding.userSelected",
        "path": "CodeableConcept.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CodeableConcept.text",
        "path": "CodeableConcept.text",
        "definition": "Can also serve as details if the code need precision"
      }
    ]
  }
}