{
  "resourceType": "StructureDefinition",
  "id": "apispecifikation-logical-er",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://electronichealth.se/fhir/NDI/StructureDefinition/apispecifikation-logical-er",
  "name": "APIspecifikationLogicalEr",
  "title": "API-specifikation",
  "status": "active",
  "description": "Klassen API-specifikation håller information om en specifikation som beskriver de krav och regler som ett API ska följa.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "APIspecifikationToAPISpecificationEr",
      "uri": "APISpecificationEr"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://electronichealth.se/fhir/NDI/StructureDefinition/apispecifikation-logical-er",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "apispecifikation-logical-er",
        "path": "apispecifikation-logical-er",
        "short": "API-specifikation",
        "definition": "Klassen API-specifikation håller information om en specifikation som beskriver de krav och regler som ett API ska följa.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "apispecifikation-logical-er",
          "min": 0,
          "max": "*"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.id",
        "path": "apispecifikation-logical-er.id",
        "short": "id",
        "definition": "Angivelse av en URL som unikt identifierar en API-specifikation.",
        "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.id",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.url"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "apispecifikation-logical-er.status",
        "short": "status",
        "definition": "Angivelse av kod som anger status för API-specifikation.",
        "comment": "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "cod-1",
            "severity": "warning",
            "human": "A Coding SHOULD NOT have a display unless a code is also present.  Computation on Coding.display alone is generally unsafe.  Consider using CodeableConcept.text",
            "expression": "code.exists().not() implies display.exists().not()",
            "source": "http://hl7.org/fhir/StructureDefinition/Coding"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
          },
          {
            "identity": "rim",
            "map": "CV"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding rdfs:subClassOf dt:CDCoding"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.status"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.maskinlasbartNamn",
        "path": "apispecifikation-logical-er.maskinlasbartNamn",
        "short": "maskinläsbartNamn",
        "definition": "Angivelse av maskinläsbart namn för API-specifikation.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.maskinlasbartNamn",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.name"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.version",
        "path": "apispecifikation-logical-er.version",
        "short": "version",
        "definition": "Angivelse av API-specifikationens version.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.version",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.version"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.referensTillKalla",
        "path": "apispecifikation-logical-er.referensTillKalla",
        "short": "referensTillKälla",
        "definition": "Angivelse av URL som refererar till källan för API-specifikationen.",
        "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.referensTillKalla",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "url"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.reference"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.kategori",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "apispecifikation-logical-er.kategori",
        "short": "kategori",
        "definition": "Angivelse av kod som identifierar API-specifikationens kategori.",
        "comment": "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.kategori",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "cod-1",
            "severity": "warning",
            "human": "A Coding SHOULD NOT have a display unless a code is also present.  Computation on Coding.display alone is generally unsafe.  Consider using CodeableConcept.text",
            "expression": "code.exists().not() implies display.exists().not()",
            "source": "http://hl7.org/fhir/StructureDefinition/Coding"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
          },
          {
            "identity": "rim",
            "map": "CV"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding rdfs:subClassOf dt:CDCoding"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.useContext[domain]"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.titel",
        "path": "apispecifikation-logical-er.titel",
        "short": "titel",
        "definition": "Angivelse av benämning (titel) för API-specifikation.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.titel",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.title"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.beskrivning",
        "path": "apispecifikation-logical-er.beskrivning",
        "short": "beskrivning",
        "definition": "Angivelse av beskrivning av API-specifikation.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.beskrivning",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.description"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.ansvarigUtgivare",
        "path": "apispecifikation-logical-er.ansvarigUtgivare",
        "short": "ansvarigUtgivare",
        "definition": "Angivelse av ansvarig utgivare för API-specifikation.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.ansvarigUtgivare",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.publisher"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.utgivningsdatum",
        "path": "apispecifikation-logical-er.utgivningsdatum",
        "short": "utgivningsdatum",
        "definition": "Angivelse av det datum då API-specifikationen fastställdes i denna version.",
        "comment": "UTC offset is allowed for dates and partial dates",
        "min": 1,
        "max": "1",
        "base": {
          "path": "apispecifikation-logical-er.utgivningsdatum",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "APIspecifikationToAPISpecificationEr"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "apispecifikation-logical-er",
        "path": "apispecifikation-logical-er",
        "short": "API-specifikation",
        "definition": "Klassen API-specifikation håller information om en specifikation som beskriver de krav och regler som ett API ska följa."
      },
      {
        "id": "apispecifikation-logical-er.id",
        "path": "apispecifikation-logical-er.id",
        "short": "id",
        "definition": "Angivelse av en URL som unikt identifierar en API-specifikation.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.url"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.status",
        "path": "apispecifikation-logical-er.status",
        "short": "status",
        "definition": "Angivelse av kod som anger status för API-specifikation.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.status"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.maskinlasbartNamn",
        "path": "apispecifikation-logical-er.maskinlasbartNamn",
        "short": "maskinläsbartNamn",
        "definition": "Angivelse av maskinläsbart namn för API-specifikation.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.name"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.version",
        "path": "apispecifikation-logical-er.version",
        "short": "version",
        "definition": "Angivelse av API-specifikationens version.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.version"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.referensTillKalla",
        "path": "apispecifikation-logical-er.referensTillKalla",
        "short": "referensTillKälla",
        "definition": "Angivelse av URL som refererar till källan för API-specifikationen.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "url"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.reference"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.kategori",
        "path": "apispecifikation-logical-er.kategori",
        "short": "kategori",
        "definition": "Angivelse av kod som identifierar API-specifikationens kategori.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.useContext[domain]"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.titel",
        "path": "apispecifikation-logical-er.titel",
        "short": "titel",
        "definition": "Angivelse av benämning (titel) för API-specifikation.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.title"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.beskrivning",
        "path": "apispecifikation-logical-er.beskrivning",
        "short": "beskrivning",
        "definition": "Angivelse av beskrivning av API-specifikation.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.description"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.ansvarigUtgivare",
        "path": "apispecifikation-logical-er.ansvarigUtgivare",
        "short": "ansvarigUtgivare",
        "definition": "Angivelse av ansvarig utgivare för API-specifikation.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr",
            "map": "APISpecificationEr.publisher"
          }
        ]
      },
      {
        "id": "apispecifikation-logical-er.utgivningsdatum",
        "path": "apispecifikation-logical-er.utgivningsdatum",
        "short": "utgivningsdatum",
        "definition": "Angivelse av det datum då API-specifikationen fastställdes i denna version.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "APIspecifikationToAPISpecificationEr"
          }
        ]
      }
    ]
  }
}