FHIR © HL7.org  |  Server Home  |  XIG Home  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/CovidTestCertificate

Packagehitstdio.tw.fhir.dcc
TypeStructureDefinition
IdCovidTestCertificate
FHIR VersionR4
Sourcehttp://hitstdio.ntunhs.edu.tw/fhir/file://D:\IG\dcc-tw-test\output/StructureDefinition-CovidTestCertificate.html
URLhttp://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/CovidTestCertificate
Version0.0.1
Statusdraft
Date2021-08-17T11:14:28+08:00
NameCovidTestCertificate
TitleDCC Test Result data model(TW)
DescriptionCommon standardised set of data to be included in COVID-19 test result certificates
TypeCovidTestCertificate
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

NameFlagsCard.TypeDescription & Constraintsdoco
.. CovidTestCertificate 1..1ElementCOVID-19 test result certificate
... subject 1..1BackboneElementPerson identification
.... name 1..*HumanNamePerson name
.... identifier 0..*IdentifierPerson identifier
.... birthDate 0..1dateTimePerson date of birth
... test 1..1BackboneElementTest information
.... targetDisease 1..1CodeableConceptDisease or agent targeted
.... type 1..1CodeableConceptType of test
.... name 0..1stringTest name
.... manufacturer 0..1OrganizationTest Manufacturer
.... origin 0..1CodeableConceptSample origin (optional)
.... dateTimeOfSample 1..1dateTimeDate and time of the test sample collection
.... dateTimeOfResult 0..1dateTimeDate and time of the test result production
.... value 1..1CodeableConceptResult of the test
.... testingCenter 0..1CodeableConceptTesting centre or facility
.... healthProfessional 0..1BackboneElementHealth Professional identification (optional)
.... country 1..1CodeableConceptCountry where the test was taken
... metadata 1..1BackboneElementTest certificate metadata
.... issuer 1..1BackboneElementTest result certificate issuer
.... identifier 1..1IdentifierTest result certificate identifier

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "CovidTestCertificate",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/CovidTestCertificate",
  "version": "0.0.1",
  "name": "CovidTestCertificate",
  "title": "DCC Test Result data model(TW)",
  "status": "draft",
  "experimental": true,
  "date": "2021-08-17T11:14:28+08:00",
  "publisher": "Giorgio Cangioli - modified by HITSTD Lab",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "mailto:hitstdio@gmail.com"
        }
      ]
    }
  ],
  "description": "Common standardised set of data to be included in COVID-19 test result certificates",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "158"
        }
      ],
      "text": "Taiwan"
    }
  ],
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "fhir",
      "uri": "http://hitstdio.ntunhs.edu.tw/fhir",
      "name": "FHIR"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "CovidTestCertificate",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "CovidTestCertificate",
        "path": "CovidTestCertificate",
        "short": "COVID-19 test result certificate",
        "definition": "Common standardised set of data to be included in COVID-19 test result certificates",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Element",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.id",
        "path": "CovidTestCertificate.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.extension",
        "path": "CovidTestCertificate.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. 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": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.subject",
        "path": "CovidTestCertificate.subject",
        "short": "Person identification",
        "definition": "Person identification",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.subject",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Composition.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Composition-dgc').subject"
          },
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').subject"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.subject.name",
        "path": "CovidTestCertificate.subject.name",
        "short": "Person name",
        "definition": "The legal name of the tested person. Surname(s) and forename(s), in that order.",
        "min": 1,
        "max": "*",
        "base": {
          "path": "CovidTestCertificate.subject.name",
          "min": 1,
          "max": "*"
        },
        "type": [
          {
            "code": "HumanName"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Patient.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Patient-dgc').name"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.subject.identifier",
        "path": "CovidTestCertificate.subject.identifier",
        "short": "Person identifier",
        "definition": "An identifier of the tested person, according to the policies applicable in each country. Examples: citizen ID and/or document number (ID-card/passport).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "CovidTestCertificate.subject.identifier",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Patient.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Patient-dgc').identifier"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.subject.birthDate",
        "path": "CovidTestCertificate.subject.birthDate",
        "short": "Person date of birth",
        "definition": "Tested person’s date of birth. Mandatory if no Person identifier is provided. Complete date, without time, following the ISO 8601.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.subject.birthDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Patient.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Patient-dgc').birthDate"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test",
        "path": "CovidTestCertificate.test",
        "short": "Test information",
        "definition": "COVID-19 Test information",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.targetDisease",
        "path": "CovidTestCertificate.test.targetDisease",
        "short": "Disease or agent targeted",
        "definition": "Disease or agent targeted",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.targetDisease",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').code"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.type",
        "path": "CovidTestCertificate.test.type",
        "short": "Type of test",
        "definition": "Description of the type of test that was conducted, e.g. NAAT or rapid antigen test. LOINC, NPU",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.type",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').method.coding:typeOfTest"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.name",
        "path": "CovidTestCertificate.test.name",
        "short": "Test name",
        "definition": "Commercial or brand name of the test.  (optional for NAAT)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.name",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').method.text"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.manufacturer",
        "path": "CovidTestCertificate.test.manufacturer",
        "short": "Test Manufacturer",
        "definition": "Legal manufacturer of the test.  (optional for NAAT)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.manufacturer",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Organization"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').method.coding:testManufacturer"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.origin",
        "path": "CovidTestCertificate.test.origin",
        "short": "Sample origin (optional)",
        "definition": "The type of sample that was taken (e.g. nasopharyngeal swab, oropharyngeal swab, nasal swab, saliva). SNOMED CT",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.origin",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').method.coding:sampleOrigin"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.dateTimeOfSample",
        "path": "CovidTestCertificate.test.dateTimeOfSample",
        "short": "Date and time of the test sample collection",
        "definition": "Date and time when the sample was collected. Complete date, with time and time zone, following ISO 8601",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.dateTimeOfSample",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').effectiveDateTime"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.dateTimeOfResult",
        "path": "CovidTestCertificate.test.dateTimeOfResult",
        "short": "Date and time of the test result production",
        "definition": "Date and time when the test result was produced. Complete date, with time and time zone, following ISO 8601",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.dateTimeOfResult",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').issued"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.value",
        "path": "CovidTestCertificate.test.value",
        "short": "Result of the test",
        "definition": "For example, negative, positive, inconclusive or void. SNOMED CT",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.value",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').valueCodeableConcept"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.testingCenter",
        "path": "CovidTestCertificate.test.testingCenter",
        "short": "Testing centre or facility",
        "definition": "Name/code of testing centre, facility or a health authority responsible for the testing event. Optional: address of the testing facility.  (mandatory for NAAT)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.testingCenter",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').performer.reference(Organization)"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.healthProfessional",
        "path": "CovidTestCertificate.test.healthProfessional",
        "short": "Health Professional identification (optional)",
        "definition": "Name or health professional code responsible for conducting (and validating) the test. Surname(s) and forename(s), in that order.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.healthProfessional",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').performer.reference(Practitioner)"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.country",
        "path": "CovidTestCertificate.test.country",
        "short": "Country where the test was taken",
        "definition": "The country in which the individual was tested. ISO 3166 Country Codes",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.test.country",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').performer.reference(Organization)"
          },
          {
            "identity": "fhir",
            "map": "Organization.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').address.country"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.metadata",
        "path": "CovidTestCertificate.metadata",
        "short": "Test certificate metadata",
        "definition": "Test certificate metadata",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.metadata",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.metadata.issuer",
        "path": "CovidTestCertificate.metadata.issuer",
        "short": "Test result certificate issuer",
        "definition": "Entity that issued the COVID-19 test result certificate (allowing to check the certificate).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.metadata.issuer",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Composition.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Composition-dgc').attester.party.reference(Organization)"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.metadata.identifier",
        "path": "CovidTestCertificate.metadata.identifier",
        "short": "Test result certificate identifier",
        "definition": "Reference of the COVID-19 test result certificate (unique identifier).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CovidTestCertificate.metadata.identifier",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Bundle.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Bundle-dgc').identifier"
          },
          {
            "identity": "fhir",
            "map": "Composition.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Composition-dgc').identifier"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "CovidTestCertificate",
        "path": "CovidTestCertificate",
        "short": "COVID-19 test result certificate",
        "definition": "Common standardised set of data to be included in COVID-19 test result certificates",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CovidTestCertificate.subject",
        "path": "CovidTestCertificate.subject",
        "short": "Person identification",
        "definition": "Person identification",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Composition.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Composition-dgc').subject"
          },
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').subject"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.subject.name",
        "path": "CovidTestCertificate.subject.name",
        "short": "Person name",
        "definition": "The legal name of the tested person. Surname(s) and forename(s), in that order.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "HumanName"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Patient.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Patient-dgc').name"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.subject.identifier",
        "path": "CovidTestCertificate.subject.identifier",
        "short": "Person identifier",
        "definition": "An identifier of the tested person, according to the policies applicable in each country. Examples: citizen ID and/or document number (ID-card/passport).",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Patient.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Patient-dgc').identifier"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.subject.birthDate",
        "path": "CovidTestCertificate.subject.birthDate",
        "short": "Person date of birth",
        "definition": "Tested person’s date of birth. Mandatory if no Person identifier is provided. Complete date, without time, following the ISO 8601.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Patient.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Patient-dgc').birthDate"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test",
        "path": "CovidTestCertificate.test",
        "short": "Test information",
        "definition": "COVID-19 Test information",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.targetDisease",
        "path": "CovidTestCertificate.test.targetDisease",
        "short": "Disease or agent targeted",
        "definition": "Disease or agent targeted",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').code"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.type",
        "path": "CovidTestCertificate.test.type",
        "short": "Type of test",
        "definition": "Description of the type of test that was conducted, e.g. NAAT or rapid antigen test. LOINC, NPU",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').method.coding:typeOfTest"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.name",
        "path": "CovidTestCertificate.test.name",
        "short": "Test name",
        "definition": "Commercial or brand name of the test.  (optional for NAAT)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').method.text"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.manufacturer",
        "path": "CovidTestCertificate.test.manufacturer",
        "short": "Test Manufacturer",
        "definition": "Legal manufacturer of the test.  (optional for NAAT)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Organization"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').method.coding:testManufacturer"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.origin",
        "path": "CovidTestCertificate.test.origin",
        "short": "Sample origin (optional)",
        "definition": "The type of sample that was taken (e.g. nasopharyngeal swab, oropharyngeal swab, nasal swab, saliva). SNOMED CT",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').method.coding:sampleOrigin"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.dateTimeOfSample",
        "path": "CovidTestCertificate.test.dateTimeOfSample",
        "short": "Date and time of the test sample collection",
        "definition": "Date and time when the sample was collected. Complete date, with time and time zone, following ISO 8601",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').effectiveDateTime"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.dateTimeOfResult",
        "path": "CovidTestCertificate.test.dateTimeOfResult",
        "short": "Date and time of the test result production",
        "definition": "Date and time when the test result was produced. Complete date, with time and time zone, following ISO 8601",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').issued"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.value",
        "path": "CovidTestCertificate.test.value",
        "short": "Result of the test",
        "definition": "For example, negative, positive, inconclusive or void. SNOMED CT",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').valueCodeableConcept"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.testingCenter",
        "path": "CovidTestCertificate.test.testingCenter",
        "short": "Testing centre or facility",
        "definition": "Name/code of testing centre, facility or a health authority responsible for the testing event. Optional: address of the testing facility.  (mandatory for NAAT)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').performer.reference(Organization)"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.healthProfessional",
        "path": "CovidTestCertificate.test.healthProfessional",
        "short": "Health Professional identification (optional)",
        "definition": "Name or health professional code responsible for conducting (and validating) the test. Surname(s) and forename(s), in that order.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').performer.reference(Practitioner)"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.test.country",
        "path": "CovidTestCertificate.test.country",
        "short": "Country where the test was taken",
        "definition": "The country in which the individual was tested. ISO 3166 Country Codes",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Observation.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').performer.reference(Organization)"
          },
          {
            "identity": "fhir",
            "map": "Organization.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dgc').address.country"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.metadata",
        "path": "CovidTestCertificate.metadata",
        "short": "Test certificate metadata",
        "definition": "Test certificate metadata",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.metadata.issuer",
        "path": "CovidTestCertificate.metadata.issuer",
        "short": "Test result certificate issuer",
        "definition": "Entity that issued the COVID-19 test result certificate (allowing to check the certificate).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Composition.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Composition-dgc').attester.party.reference(Organization)"
          }
        ]
      },
      {
        "id": "CovidTestCertificate.metadata.identifier",
        "path": "CovidTestCertificate.metadata.identifier",
        "short": "Test result certificate identifier",
        "definition": "Reference of the COVID-19 test result certificate (unique identifier).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Bundle.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Bundle-dgc').identifier"
          },
          {
            "identity": "fhir",
            "map": "Composition.conformsTo('http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Composition-dgc').identifier"
          }
        ]
      }
    ]
  }
}