diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/Tag.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/Tag.java index 7f12944cb2b9..c4a4f4c95f0f 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/Tag.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/Tag.java @@ -37,6 +37,8 @@ */ public class Tag extends BaseElement implements IElement { + private static final long serialVersionUID = 1L; + public static final String ATTR_LABEL = "label"; public static final String ATTR_SCHEME = "scheme"; public static final String ATTR_TERM = "term"; diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java index 8b76f16def9f..9205e7045d0e 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java @@ -633,8 +633,9 @@ public AtomPrimitiveState(IPrimitiveDatatype thePrimitive) { public void attributeValue(String theName, String theValue) throws DataFormatException { if (myJsonMode) { string(theValue); + } else { + super.attributeValue(theName, theValue); } - super.attributeValue(theName, theValue); } @Override diff --git a/hapi-fhir-cli/.gitignore b/hapi-fhir-cli/.gitignore index 76daa494e2c1..2e1356d53639 100644 --- a/hapi-fhir-cli/.gitignore +++ b/hapi-fhir-cli/.gitignore @@ -1,2 +1,3 @@ /build/ /target/ +/target/ diff --git a/hapi-fhir-cli/src/main/java/ca/uhn/fhir/cli/ValidationDataUploader.java b/hapi-fhir-cli/src/main/java/ca/uhn/fhir/cli/ValidationDataUploader.java index 6830ac81b532..3c2534989a48 100644 --- a/hapi-fhir-cli/src/main/java/ca/uhn/fhir/cli/ValidationDataUploader.java +++ b/hapi-fhir-cli/src/main/java/ca/uhn/fhir/cli/ValidationDataUploader.java @@ -31,6 +31,9 @@ private void execute() throws IOException, ClientProtocolException, UnsupportedE IGenericClient client = newClient(ctx); + int total; + int count; + // String vsContents = // IOUtils.toString(ValidationDataUploader.class.getResourceAsStream("/org/hl7/fhir/instance/model/valueset/valuesets.xml"), // "UTF-8"); @@ -50,12 +53,8 @@ private void execute() throws IOException, ClientProtocolException, UnsupportedE // // ourLog.info("Finished uploading ValueSets"); - String vsContents = IOUtils.toString(ValidationDataUploader.class.getResourceAsStream("/org/hl7/fhir/instance/model/valueset/v3-codesystems.xml"), "UTF-8"); - Bundle bundle = ctx.newXmlParser().parseResource(Bundle.class, vsContents); - - int total; - int count; - +// String vsContents = IOUtils.toString(ValidationDataUploader.class.getResourceAsStream("/org/hl7/fhir/instance/model/valueset/v3-codesystems.xml"), "UTF-8"); +// Bundle bundle = ctx.newXmlParser().parseResource(Bundle.class, vsContents); // total = bundle.getEntry().size(); // count = 1; // for (BundleEntryComponent i : bundle.getEntry()) { @@ -68,6 +67,22 @@ private void execute() throws IOException, ClientProtocolException, UnsupportedE // count++; // } + + String vsContents = IOUtils.toString(ValidationDataUploader.class.getResourceAsStream("/org/hl7/fhir/instance/model/valueset/v2-tables.xml"), "UTF-8"); + Bundle bundle = ctx.newXmlParser().parseResource(Bundle.class, vsContents); + total = bundle.getEntry().size(); + count = 1; + for (BundleEntryComponent i : bundle.getEntry()) { + if (count > 1900) { + ValueSet next = (ValueSet) i.getResource(); + next.setId(next.getIdElement().toUnqualifiedVersionless()); + + ourLog.info("Uploading v2-tables ValueSet {}/{} : {}", new Object[] { count, total, next.getIdElement().getValue() }); + client.update().resource(next).execute(); + } + count++; + } + ourLog.info("Finished uploading ValueSets"); ResourcePatternResolver patternResolver = new PathMatchingResourcePatternResolver(); @@ -75,12 +90,13 @@ private void execute() throws IOException, ClientProtocolException, UnsupportedE total = mappingLocations.length; count = 1; for (Resource i : mappingLocations) { + if (count > 140) { StructureDefinition next = ctx.newXmlParser().parseResource(StructureDefinition.class, IOUtils.toString(i.getInputStream(), "UTF-8")); next.setId(next.getIdElement().toUnqualifiedVersionless()); ourLog.info("Uploading StructureDefinition {}/{} : {}", new Object[] { count, total, next.getIdElement().getValue() }); client.update().resource(next).execute(); - + } count++; } diff --git a/hapi-fhir-jpaserver-base/db.txt b/hapi-fhir-jpaserver-base/db.txt index 12a8ad2a1455..ad13aab1d081 100644 --- a/hapi-fhir-jpaserver-base/db.txt +++ b/hapi-fhir-jpaserver-base/db.txt @@ -8,6 +8,7 @@ delete from hfj_spidx_quantity where res_id in (select res_id from hfj_resource delete from hfj_spidx_string where res_id in (select res_id from hfj_resource where sp_index_status = 2); delete from hfj_spidx_token where res_id in (select res_id from hfj_resource where sp_index_status = 2); delete from hfj_res_link where src_resource_id in (select res_id from hfj_resource where sp_index_status = 2); +delete from hfj_res_link where target_resource_id in (select res_id from hfj_resource where sp_index_status = 2); delete from hfj_res_tag where res_id in (select res_id from hfj_resource where sp_index_status = 2); delete from hfj_resource where res_id in (select res_id from hfj_resource where sp_index_status = 2); diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java index 0c7381efedac..8e75e13028ff 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java @@ -77,11 +77,13 @@ import ca.uhn.fhir.jpa.entity.ResourceEncodingEnum; import ca.uhn.fhir.jpa.entity.ResourceHistoryTable; import ca.uhn.fhir.jpa.entity.ResourceHistoryTag; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamDate; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamNumber; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri; import ca.uhn.fhir.jpa.entity.ResourceLink; import ca.uhn.fhir.jpa.entity.ResourceTable; import ca.uhn.fhir.jpa.entity.ResourceTag; @@ -255,10 +257,17 @@ protected List extractSearchParamDates(ResourceT return mySearchParamExtractor.extractSearchParamDates(theEntity, theResource); } - protected ArrayList extractSearchParamNumber(ResourceTable theEntity, IResource theResource) { + protected List extractSearchParamNumber(ResourceTable theEntity, IResource theResource) { return mySearchParamExtractor.extractSearchParamNumber(theEntity, theResource); } + protected List extractSearchParamUri(ResourceTable theEntity, IResource theResource) { + return mySearchParamExtractor.extractSearchParamUri(theEntity, theResource); + } + protected List extractSearchParamCoords(ResourceTable theEntity, IResource theResource) { + return mySearchParamExtractor.extractSearchParamCoords(theEntity, theResource); + } + protected List extractSearchParamQuantity(ResourceTable theEntity, IResource theResource) { return mySearchParamExtractor.extractSearchParamQuantity(theEntity, theResource); } @@ -611,10 +620,13 @@ protected void populateResourceIntoEntity(IResource theResource, ResourceTable t throw new InternalErrorException(e); } + Set allDefs = new HashSet(); + TagList tagList = ResourceMetadataKeyEnum.TAG_LIST.get(theResource); if (tagList != null) { for (Tag next : tagList) { TagDefinition tag = getTag(TagTypeEnum.TAG, next.getScheme(), next.getTerm(), next.getLabel()); + allDefs.add(tag); theEntity.addTag(tag); theEntity.setHasTags(true); } @@ -624,19 +636,33 @@ protected void populateResourceIntoEntity(IResource theResource, ResourceTable t if (securityLabels != null) { for (BaseCodingDt next : securityLabels) { TagDefinition tag = getTag(TagTypeEnum.SECURITY_LABEL, next.getSystemElement().getValue(), next.getCodeElement().getValue(), next.getDisplayElement().getValue()); + allDefs.add(tag); theEntity.addTag(tag); theEntity.setHasTags(true); } - } - + } + List profiles = ResourceMetadataKeyEnum.PROFILES.get(theResource); if (profiles != null) { for (IIdType next : profiles) { TagDefinition tag = getTag(TagTypeEnum.PROFILE, NS_JPA_PROFILE, next.getValue(), null); + allDefs.add(tag); theEntity.addTag(tag); theEntity.setHasTags(true); } } + + + for (ResourceTag next : new ArrayList(theEntity.getTags())) { + TagDefinition nextDef = next.getTag(); + if (!allDefs.contains(nextDef)) { + theEntity.getTags().remove(next); + } + } + if (theEntity.getTags().size() == 0) { + theEntity.setHasTags(false); + } + String title = ResourceMetadataKeyEnum.TITLE.get(theResource); if (title != null && title.length() > BaseHasResource.MAX_TITLE_LENGTH) { @@ -1065,11 +1091,22 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable entity.setVersion(entity.getVersion() + 1); } + boolean paramsStringPopulated = entity.isParamsStringPopulated(); + boolean paramsTokenPopulated = entity.isParamsTokenPopulated(); + boolean paramsNumberPopulated = entity.isParamsNumberPopulated(); + boolean paramsQuantityPopulated = entity.isParamsQuantityPopulated(); + boolean paramsDatePopulated = entity.isParamsDatePopulated(); + boolean paramsCoordsPopulated = entity.isParamsCoordsPopulated(); + boolean paramsUriPopulated = entity.isParamsUriPopulated(); + boolean hasLinks = entity.isHasLinks(); + Collection paramsString = new ArrayList(entity.getParamsString()); Collection paramsToken = new ArrayList(entity.getParamsToken()); Collection paramsNumber = new ArrayList(entity.getParamsNumber()); Collection paramsQuantity = new ArrayList(entity.getParamsQuantity()); Collection paramsDate = new ArrayList(entity.getParamsDate()); + Collection paramsUri = new ArrayList(entity.getParamsUri()); + Collection paramsCoords = new ArrayList(entity.getParamsCoords()); Collection resourceLinks = new ArrayList(entity.getResourceLinks()); List stringParams = null; @@ -1077,6 +1114,8 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable List numberParams = null; List quantityParams = null; List dateParams = null; + List uriParams = null; + List coordsParams = null; List links = null; if (theDeletedTimestampOrNull != null) { @@ -1086,6 +1125,8 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable numberParams = Collections.emptyList(); quantityParams = Collections.emptyList(); dateParams = Collections.emptyList(); + uriParams = Collections.emptyList(); + coordsParams = Collections.emptyList(); links = Collections.emptyList(); entity.setDeleted(theDeletedTimestampOrNull); entity.setUpdated(theDeletedTimestampOrNull); @@ -1100,6 +1141,8 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable numberParams = extractSearchParamNumber(entity, theResource); quantityParams = extractSearchParamQuantity(entity, theResource); dateParams = extractSearchParamDates(entity, theResource); + uriParams = extractSearchParamUri(entity, theResource); + coordsParams = extractSearchParamCoords(entity, theResource); // ourLog.info("Indexing resource: {}", entity.getId()); ourLog.trace("Storing string indexes: {}", stringParams); @@ -1115,6 +1158,7 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable links = extractResourceLinks(entity, theResource); populateResourceIntoEntity(theResource, entity); + entity.setUpdated(new Date()); entity.setLanguage(theResource.getLanguage().getValue()); entity.setParamsString(stringParams); @@ -1127,6 +1171,10 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable entity.setParamsQuantityPopulated(quantityParams.isEmpty() == false); entity.setParamsDate(dateParams); entity.setParamsDatePopulated(dateParams.isEmpty() == false); + entity.setParamsUri(uriParams); + entity.setParamsUriPopulated(uriParams.isEmpty() == false); + entity.setParamsCoords(coordsParams); + entity.setParamsCoordsPopulated(coordsParams.isEmpty() == false); entity.setResourceLinks(links); entity.setHasLinks(links.isEmpty() == false); entity.setIndexStatus(INDEX_STATUS_INDEXED); @@ -1155,7 +1203,7 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable if (thePerformIndexing) { - if (entity.isParamsStringPopulated()) { + if (paramsStringPopulated) { for (ResourceIndexedSearchParamString next : paramsString) { myEntityManager.remove(next); } @@ -1164,7 +1212,7 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable myEntityManager.persist(next); } - if (entity.isParamsTokenPopulated()) { + if (paramsTokenPopulated) { for (ResourceIndexedSearchParamToken next : paramsToken) { myEntityManager.remove(next); } @@ -1173,7 +1221,7 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable myEntityManager.persist(next); } - if (entity.isParamsNumberPopulated()) { + if (paramsNumberPopulated) { for (ResourceIndexedSearchParamNumber next : paramsNumber) { myEntityManager.remove(next); } @@ -1182,7 +1230,7 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable myEntityManager.persist(next); } - if (entity.isParamsQuantityPopulated()) { + if (paramsQuantityPopulated) { for (ResourceIndexedSearchParamQuantity next : paramsQuantity) { myEntityManager.remove(next); } @@ -1191,7 +1239,8 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable myEntityManager.persist(next); } - if (entity.isParamsDatePopulated()) { + // Store date SP's + if (paramsDatePopulated) { for (ResourceIndexedSearchParamDate next : paramsDate) { myEntityManager.remove(next); } @@ -1200,7 +1249,27 @@ protected ResourceTable updateEntity(final IResource theResource, ResourceTable myEntityManager.persist(next); } - if (entity.isHasLinks()) { + // Store URI SP's + if (paramsUriPopulated) { + for (ResourceIndexedSearchParamUri next : paramsUri) { + myEntityManager.remove(next); + } + } + for (ResourceIndexedSearchParamUri next : uriParams) { + myEntityManager.persist(next); + } + + // Store Coords SP's + if (paramsCoordsPopulated) { + for (ResourceIndexedSearchParamCoords next : paramsCoords) { + myEntityManager.remove(next); + } + } + for (ResourceIndexedSearchParamCoords next : coordsParams) { + myEntityManager.persist(next); + } + + if (hasLinks) { for (ResourceLink next : resourceLinks) { myEntityManager.remove(next); } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java index ce180a82538c..056b8618a1dc 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java @@ -29,6 +29,7 @@ import java.util.Date; import java.util.HashMap; import java.util.HashSet; +import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; @@ -82,6 +83,7 @@ import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri; import ca.uhn.fhir.jpa.entity.ResourceLink; import ca.uhn.fhir.jpa.entity.ResourceTable; import ca.uhn.fhir.jpa.entity.ResourceTag; @@ -398,7 +400,8 @@ public Set processMatchUrl(String theMatchUrl) { return processMatchUrl(theMatchUrl, getResourceType()); } - private boolean addPredicateMissingFalseIfPresent(CriteriaBuilder theBuilder, String theParamName, Root from, List codePredicates, IQueryParameterType nextOr) { + private boolean addPredicateMissingFalseIfPresent(CriteriaBuilder theBuilder, String theParamName, Root from, List codePredicates, + IQueryParameterType nextOr) { boolean missingFalse = false; if (nextOr.getMissing() != null) { if (nextOr.getMissing().booleanValue() == true) { @@ -412,7 +415,8 @@ private boolean addPredicateMissingFalseIfPresent(CriteriaBuilder theBuilder, St return missingFalse; } - private boolean addPredicateMissingFalseIfPresentForResourceLink(CriteriaBuilder theBuilder, String theParamName, Root from, List codePredicates, IQueryParameterType nextOr) { + private boolean addPredicateMissingFalseIfPresentForResourceLink(CriteriaBuilder theBuilder, String theParamName, Root from, List codePredicates, + IQueryParameterType nextOr) { boolean missingFalse = false; if (nextOr.getMissing() != null) { if (nextOr.getMissing().booleanValue() == true) { @@ -501,6 +505,61 @@ private Set addPredicateNumber(String theParamName, Set thePids, Lis return new HashSet(q.getResultList()); } + + private Set addPredicateUri(String theParamName, Set thePids, List theList) { + if (theList == null || theList.isEmpty()) { + return thePids; + } + + if (Boolean.TRUE.equals(theList.get(0).getMissing())) { + return addPredicateParamMissing(thePids, "myParamsUri", theParamName, ResourceIndexedSearchParamUri.class); + } + + CriteriaBuilder builder = myEntityManager.getCriteriaBuilder(); + CriteriaQuery cq = builder.createQuery(Long.class); + Root from = cq.from(ResourceIndexedSearchParamUri.class); + cq.select(from.get("myResourcePid").as(Long.class)); + + List codePredicates = new ArrayList(); + for (IQueryParameterType nextOr : theList) { + IQueryParameterType params = nextOr; + + if (addPredicateMissingFalseIfPresent(builder, theParamName, from, codePredicates, nextOr)) { + continue; + } + + if (params instanceof UriParam) { + UriParam param = (UriParam) params; + + String value = param.getValue(); + if (value == null) { + return thePids; + } + + Path fromObj = from.get("myUri"); + codePredicates.add(builder.equal(fromObj.as(String.class), value)); + } else { + throw new IllegalArgumentException("Invalid URI type: " + params.getClass()); + } + + } + + Predicate masterCodePredicate = builder.or(codePredicates.toArray(new Predicate[0])); + + Predicate type = builder.equal(from.get("myResourceType"), myResourceName); + Predicate name = builder.equal(from.get("myParamName"), theParamName); + if (thePids.size() > 0) { + Predicate inPids = (from.get("myResourcePid").in(thePids)); + cq.where(builder.and(type, name, masterCodePredicate, inPids)); + } else { + cq.where(builder.and(type, name, masterCodePredicate)); + } + + TypedQuery q = myEntityManager.createQuery(cq); + return new HashSet(q.getResultList()); + } + + private Set addPredicateParamMissing(Set thePids, String joinName, String theParamName, Class theParamTable) { String resourceType = getContext().getResourceDefinition(getResourceType()).getName(); @@ -1064,7 +1123,8 @@ private Predicate createPredicateDateFromRange(CriteriaBuilder theBuilder, From< } } - private Predicate createPredicateString(IQueryParameterType theParameter, String theParamName, CriteriaBuilder theBuilder, From theFrom) { + private Predicate createPredicateString(IQueryParameterType theParameter, String theParamName, CriteriaBuilder theBuilder, + From theFrom) { String rawSearchTerm; if (theParameter instanceof TokenParam) { TokenParam id = (TokenParam) theParameter; @@ -1083,7 +1143,8 @@ private Predicate createPredicateString(IQueryParameterType theParameter, String } if (rawSearchTerm.length() > ResourceIndexedSearchParamString.MAX_LENGTH) { - throw new InvalidRequestException("Parameter[" + theParamName + "] has length (" + rawSearchTerm.length() + ") that is longer than maximum allowed (" + ResourceIndexedSearchParamString.MAX_LENGTH + "): " + rawSearchTerm); + throw new InvalidRequestException("Parameter[" + theParamName + "] has length (" + rawSearchTerm.length() + ") that is longer than maximum allowed (" + + ResourceIndexedSearchParamString.MAX_LENGTH + "): " + rawSearchTerm); } String likeExpression = normalizeString(rawSearchTerm); @@ -1097,7 +1158,8 @@ private Predicate createPredicateString(IQueryParameterType theParameter, String return singleCode; } - private Predicate createPredicateToken(IQueryParameterType theParameter, String theParamName, CriteriaBuilder theBuilder, From theFrom) { + private Predicate createPredicateToken(IQueryParameterType theParameter, String theParamName, CriteriaBuilder theBuilder, + From theFrom) { String code; String system; if (theParameter instanceof TokenParam) { @@ -1117,10 +1179,12 @@ private Predicate createPredicateToken(IQueryParameterType theParameter, String } if (system != null && system.length() > ResourceIndexedSearchParamToken.MAX_LENGTH) { - throw new InvalidRequestException("Parameter[" + theParamName + "] has system (" + system.length() + ") that is longer than maximum allowed (" + ResourceIndexedSearchParamToken.MAX_LENGTH + "): " + system); + throw new InvalidRequestException( + "Parameter[" + theParamName + "] has system (" + system.length() + ") that is longer than maximum allowed (" + ResourceIndexedSearchParamToken.MAX_LENGTH + "): " + system); } if (code != null && code.length() > ResourceIndexedSearchParamToken.MAX_LENGTH) { - throw new InvalidRequestException("Parameter[" + theParamName + "] has code (" + code.length() + ") that is longer than maximum allowed (" + ResourceIndexedSearchParamToken.MAX_LENGTH + "): " + code); + throw new InvalidRequestException( + "Parameter[" + theParamName + "] has code (" + code.length() + ") that is longer than maximum allowed (" + ResourceIndexedSearchParamToken.MAX_LENGTH + "): " + code); } ArrayList singleCodePredicates = (new ArrayList()); @@ -1283,7 +1347,8 @@ private DaoMethodOutcome doCreate(T theResource, String theIfNoneExist, boolean if (isNotBlank(theResource.getId().getIdPart())) { if (isValidPid(theResource.getId())) { - throw new UnprocessableEntityException("This server cannot create an entity with a user-specified numeric ID - Client should not specify an ID when creating a new resource, or should include at least one letter in the ID to force a client-defined ID"); + throw new UnprocessableEntityException( + "This server cannot create an entity with a user-specified numeric ID - Client should not specify an ID when creating a new resource, or should include at least one letter in the ID to force a client-defined ID"); } createForcedIdIfNeeded(entity, theResource.getId()); @@ -1384,7 +1449,8 @@ public IBundleProvider history(final IIdType theId, final Date theSince) { final T current = currentTmp; - String querySring = "SELECT count(h) FROM ResourceHistoryTable h " + "WHERE h.myResourceId = :PID AND h.myResourceType = :RESTYPE" + " AND h.myUpdated < :END" + (theSince != null ? " AND h.myUpdated >= :SINCE" : ""); + String querySring = "SELECT count(h) FROM ResourceHistoryTable h " + "WHERE h.myResourceId = :PID AND h.myResourceType = :RESTYPE" + " AND h.myUpdated < :END" + + (theSince != null ? " AND h.myUpdated >= :SINCE" : ""); TypedQuery countQuery = myEntityManager.createQuery(querySring, Long.class); countQuery.setParameter("PID", translateForcedIdToPid(theId)); countQuery.setParameter("RESTYPE", resourceType); @@ -1422,8 +1488,8 @@ public List getResources(int theFromIndex, int theToIndex) { retVal.add(current); } - TypedQuery q = myEntityManager.createQuery("SELECT h FROM ResourceHistoryTable h WHERE h.myResourceId = :PID AND h.myResourceType = :RESTYPE AND h.myUpdated < :END " + (theSince != null ? " AND h.myUpdated >= :SINCE" : "") + " ORDER BY h.myUpdated ASC", - ResourceHistoryTable.class); + TypedQuery q = myEntityManager.createQuery("SELECT h FROM ResourceHistoryTable h WHERE h.myResourceId = :PID AND h.myResourceType = :RESTYPE AND h.myUpdated < :END " + + (theSince != null ? " AND h.myUpdated >= :SINCE" : "") + " ORDER BY h.myUpdated ASC", ResourceHistoryTable.class); q.setParameter("PID", translateForcedIdToPid(theId)); q.setParameter("RESTYPE", resourceType); q.setParameter("END", end.getValue(), TemporalType.TIMESTAMP); @@ -1509,57 +1575,101 @@ private void loadResourcesByPid(Collection theIncludePids, List loadReverseIncludes(List theMatches, Set theRevIncludes) { + /** + * THIS SHOULD RETURN HASHSET and not jsut Set because we add to it later (so it can't be Collections.emptySet()) + */ + private HashSet loadReverseIncludes(List theMatches, Set theRevIncludes, boolean theReverseMode) { if (theMatches.size() == 0) { - return Collections.emptySet(); + return new HashSet(); } + if (theRevIncludes == null || theRevIncludes.isEmpty()) { + return new HashSet(); + } + String fieldName = theReverseMode ? "myTargetResourcePid" : "mySourceResourcePid"; - HashSet pidsToInclude = new HashSet(); + Collection nextRoundMatches = theMatches; + HashSet allAdded = new HashSet(); + HashSet original = new HashSet(theMatches); + ArrayList includes = new ArrayList(theRevIncludes); - for (Include nextInclude : theRevIncludes) { - boolean matchAll = "*".equals(nextInclude.getValue()); - if (matchAll) { - String sql = "SELECT r FROM ResourceLink r WHERE r.myTargetResourcePid IN (:target_pids)"; - TypedQuery q = myEntityManager.createQuery(sql, ResourceLink.class); - q.setParameter("target_pids", theMatches); - List results = q.getResultList(); - for (ResourceLink resourceLink : results) { - pidsToInclude.add(resourceLink.getSourceResourcePid()); - } - } else { - int colonIdx = nextInclude.getValue().indexOf(':'); - if (colonIdx < 2) { - continue; - } - String resType = nextInclude.getValue().substring(0, colonIdx); - RuntimeResourceDefinition def = getContext().getResourceDefinition(resType); - if (def == null) { - ourLog.warn("Unknown resource type in _revinclude=" + nextInclude.getValue()); - continue; - } + boolean addedSomeThisRound; + do { + HashSet pidsToInclude = new HashSet(); - String paramName = nextInclude.getValue().substring(colonIdx + 1); - RuntimeSearchParam param = def.getSearchParam(paramName); - if (param == null) { - ourLog.warn("Unknown param name in _revinclude=" + nextInclude.getValue()); - continue; + for (Iterator iter = includes.iterator(); iter.hasNext();) { + Include nextInclude = iter.next(); + if (nextInclude.isRecurse() == false) { + iter.remove(); } - for (String nextPath : param.getPathsSplit()) { - String sql = "SELECT r FROM ResourceLink r WHERE r.mySourcePath = :src_path AND r.myTargetResourcePid IN (:target_pids)"; + boolean matchAll = "*".equals(nextInclude.getValue()); + if (matchAll) { + String sql; + sql = "SELECT r FROM ResourceLink r WHERE r." + fieldName + " IN (:target_pids)"; TypedQuery q = myEntityManager.createQuery(sql, ResourceLink.class); - q.setParameter("src_path", nextPath); - q.setParameter("target_pids", theMatches); + q.setParameter("target_pids", nextRoundMatches); List results = q.getResultList(); for (ResourceLink resourceLink : results) { - pidsToInclude.add(resourceLink.getSourceResourcePid()); + if (theReverseMode) { + pidsToInclude.add(resourceLink.getSourceResourcePid()); + } else { + pidsToInclude.add(resourceLink.getTargetResourcePid()); + } + } + } else { + + List paths; + if (getContext().getVersion().getVersion() == FhirVersionEnum.DSTU1) { + paths = Collections.singletonList(nextInclude.getValue()); + } else { + int colonIdx = nextInclude.getValue().indexOf(':'); + if (colonIdx < 2) { + continue; + } + String resType = nextInclude.getValue().substring(0, colonIdx); + RuntimeResourceDefinition def = getContext().getResourceDefinition(resType); + if (def == null) { + ourLog.warn("Unknown resource type in include/revinclude=" + nextInclude.getValue()); + continue; + } + + String paramName = nextInclude.getValue().substring(colonIdx + 1); + RuntimeSearchParam param = def.getSearchParam(paramName); + if (param == null) { + ourLog.warn("Unknown param name in include/revinclude=" + nextInclude.getValue()); + continue; + } + + paths = param.getPathsSplit(); + } + + for (String nextPath : paths) { + String sql = "SELECT r FROM ResourceLink r WHERE r.mySourcePath = :src_path AND r." + fieldName + " IN (:target_pids)"; + TypedQuery q = myEntityManager.createQuery(sql, ResourceLink.class); + q.setParameter("src_path", nextPath); + q.setParameter("target_pids", nextRoundMatches); + List results = q.getResultList(); + for (ResourceLink resourceLink : results) { + if (theReverseMode) { + pidsToInclude.add(resourceLink.getSourceResourcePid()); + } else { + pidsToInclude.add(resourceLink.getTargetResourcePid()); + } + } } } } - } - theMatches.addAll(pidsToInclude); - return pidsToInclude; + for (Long next : pidsToInclude) { + if (original.contains(next) == false && allAdded.contains(next) == false) { + theMatches.add(next); + } + } + addedSomeThisRound = allAdded.addAll(pidsToInclude); + nextRoundMatches = pidsToInclude; + } while (includes.size() > 0 && nextRoundMatches.size() > 0 && addedSomeThisRound); + + return allAdded; } @Override @@ -1757,7 +1867,8 @@ public BaseHasResource readEntity(IIdType theId, boolean theCheckForForcedId) { if (entity == null) { if (theId.hasVersionIdPart()) { - TypedQuery q = myEntityManager.createQuery("SELECT t from ResourceHistoryTable t WHERE t.myResourceId = :RID AND t.myResourceType = :RTYP AND t.myResourceVersion = :RVER", ResourceHistoryTable.class); + TypedQuery q = myEntityManager + .createQuery("SELECT t from ResourceHistoryTable t WHERE t.myResourceId = :RID AND t.myResourceType = :RTYP AND t.myResourceVersion = :RVER", ResourceHistoryTable.class); q.setParameter("RID", pid); q.setParameter("RTYP", myResourceName); q.setParameter("RVER", Long.parseLong(theId.getVersionIdPart())); @@ -1927,11 +2038,18 @@ public IBundleProvider search(final SearchParameterMap theParams) { // Load _revinclude resources final Set revIncludedPids; if (theParams.getRevIncludes() != null && theParams.getRevIncludes().isEmpty() == false) { - revIncludedPids = loadReverseIncludes(pids, theParams.getRevIncludes()); + revIncludedPids = loadReverseIncludes(pids, theParams.getRevIncludes(), true); + if (theParams.isEverythingMode()) { + revIncludedPids.addAll(loadReverseIncludes(pids, theParams.getIncludes(), false)); + } } else { - revIncludedPids = Collections.emptySet(); + revIncludedPids = new HashSet(); } + ourLog.info("Search returned PIDs: {}", pids); + + final int totalCount = pids.size(); + IBundleProvider retVal = new IBundleProvider() { @Override public InstantDt getPublished() { @@ -1946,73 +2064,16 @@ public List getResources(final int theFromIndex, final int theToI public List doInTransaction(TransactionStatus theStatus) { List pidsSubList = pids.subList(theFromIndex, theToIndex); + // Load includes + if (!theParams.isEverythingMode()) { + pidsSubList = new ArrayList(pidsSubList); + revIncludedPids.addAll(loadReverseIncludes(pidsSubList, theParams.getIncludes(), false)); + } + // Execute the query and make sure we return distinct results List retVal = new ArrayList(); loadResourcesByPid(pidsSubList, retVal, revIncludedPids); - /* - * Load _include resources - Note that _revincludes are handled differently than _include ones, as - * they are counted towards the total count and paged, so they are loaded outside the bundle provider - */ - if (theParams.getIncludes() != null && theParams.getIncludes().isEmpty() == false) { - Set previouslyLoadedPids = new HashSet(); - for (IBaseResource next : retVal) { - previouslyLoadedPids.add(next.getIdElement().toUnqualifiedVersionless()); - } - - Set includePids = new HashSet(); - List resources = retVal; - HashSet includes = new HashSet(theParams.getIncludes()); - do { - includePids.clear(); - - FhirTerser t = getContext().newTerser(); - for (Include next : new ArrayList(includes)) { - for (IBaseResource nextResource : resources) { - RuntimeResourceDefinition def = getContext().getResourceDefinition(nextResource); - List values = getIncludeValues(t, next, nextResource, def); - - for (Object object : values) { - if (object == null) { - continue; - } - if (!(object instanceof BaseResourceReferenceDt)) { - throw new InvalidRequestException("Path '" + next.getValue() + "' produced non ResourceReferenceDt value: " + object.getClass()); - } - BaseResourceReferenceDt rr = (BaseResourceReferenceDt) object; - if (rr.getReference().isEmpty()) { - continue; - } - if (rr.getReference().isLocal()) { - continue; - } - - IIdType nextId = rr.getReference().toUnqualified(); - if (!previouslyLoadedPids.contains(nextId)) { - includePids.add(nextId); - previouslyLoadedPids.add(nextId); - } - } - } - - // Only process non-recursive includes once - if (!next.isRecurse()) { - includes.remove(next); - } - } - - resources = addResourcesAsIncludesById(retVal, includePids, resources); - } while (includePids.size() > 0 && previouslyLoadedPids.size() < getConfig().getIncludeLimit() && includes.size() > 0); - - if (previouslyLoadedPids.size() >= getConfig().getIncludeLimit()) { - OperationOutcome oo = new OperationOutcome(); - Issue issue = oo.addIssue(); - issue.getSeverity().setValue(OO_SEVERITY_WARN); - issue.setDetails("Not all _include resources were actually included as the request surpassed the limit of " + getConfig().getIncludeLimit() + " resources"); - retVal.add(0, oo); - } - } - return retVal; } @@ -2026,7 +2087,7 @@ public Integer preferredPageSize() { @Override public int size() { - return pids.size(); + return totalCount; } }; @@ -2175,6 +2236,14 @@ public Set searchForIdsWithAndOr(SearchParameterMap theParams) { } } break; + case URI: + for (List nextAnd : nextParamEntry.getValue()) { + pids = addPredicateUri(nextParamName, pids, nextAnd); + if (pids.isEmpty()) { + return new HashSet(); + } + } + break; } } } @@ -2190,8 +2259,7 @@ public void setResourceType(Class theTableType) { } /** - * If set, the given param will be treated as a secondary primary key, and multiple resources will not be able to - * share the same value. + * If set, the given param will be treated as a secondary primary key, and multiple resources will not be able to share the same value. */ public void setSecondaryPrimaryKeyParamName(String theSecondaryPrimaryKeyParamName) { mySecondaryPrimaryKeyParamName = theSecondaryPrimaryKeyParamName; @@ -2319,7 +2387,8 @@ public DaoMethodOutcome update(T theResource, String theMatchUrl, boolean thePer } if (resourceId.hasResourceType() && !resourceId.getResourceType().equals(getResourceName())) { - throw new UnprocessableEntityException("Invalid resource ID[" + entity.getIdDt().toUnqualifiedVersionless() + "] of type[" + entity.getResourceType() + "] - Does not match expected [" + getResourceName() + "]"); + throw new UnprocessableEntityException( + "Invalid resource ID[" + entity.getIdDt().toUnqualifiedVersionless() + "] of type[" + entity.getResourceType() + "] - Does not match expected [" + getResourceName() + "]"); } // Notify interceptors @@ -2354,7 +2423,8 @@ private void validateGivenIdIsAppropriateToRetrieveResource(IIdType theId, BaseH private void validateResourceType(BaseHasResource entity) { if (!myResourceName.equals(entity.getResourceType())) { - throw new ResourceNotFoundException("Resource with ID " + entity.getIdDt().getIdPart() + " exists but it is not of type " + myResourceName + ", found resource of type " + entity.getResourceType()); + throw new ResourceNotFoundException( + "Resource with ID " + entity.getIdDt().getIdPart() + " exists but it is not of type " + myResourceName + ", found resource of type " + entity.getResourceType()); } } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirSystemDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirSystemDao.java index 93cb4797ebae..dc93764ff3bd 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirSystemDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirSystemDao.java @@ -121,7 +121,7 @@ public Integer doInTransaction(TransactionStatus theStatus) { try { dao.update(resource, null, true); } catch (Exception e) { - ourLog.error("Failed to index resource {}: {}", new Object[] { resource.getIdElement(), e.toString() }); + ourLog.error("Failed to index resource {}: {}", new Object[] { resource.getIdElement(), e.toString(), e }); throw new UnprocessableEntityException(Long.toString(resourceTable.getId())); } count++; diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/ISearchParamExtractor.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/ISearchParamExtractor.java index f4884144433d..58799408638f 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/ISearchParamExtractor.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/ISearchParamExtractor.java @@ -24,15 +24,19 @@ import java.util.List; import ca.uhn.fhir.jpa.entity.BaseResourceIndexedSearchParam; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamDate; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamNumber; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri; import ca.uhn.fhir.jpa.entity.ResourceTable; import ca.uhn.fhir.model.api.IResource; interface ISearchParamExtractor { + public abstract List extractSearchParamCoords(ResourceTable theEntity, IResource theResource); + public abstract List extractSearchParamDates(ResourceTable theEntity, IResource theResource); public abstract ArrayList extractSearchParamNumber(ResourceTable theEntity, IResource theResource); @@ -43,4 +47,6 @@ interface ISearchParamExtractor { public abstract List extractSearchParamTokens(ResourceTable theEntity, IResource theResource); + public abstract List extractSearchParamUri(ResourceTable theEntity, IResource theResource); + } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu1.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu1.java index 103ed4239c47..6bced7ae6e35 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu1.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu1.java @@ -25,6 +25,7 @@ import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; @@ -40,11 +41,13 @@ import ca.uhn.fhir.context.RuntimeResourceDefinition; import ca.uhn.fhir.context.RuntimeSearchParam; import ca.uhn.fhir.jpa.entity.BaseResourceIndexedSearchParam; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamDate; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamNumber; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri; import ca.uhn.fhir.jpa.entity.ResourceTable; import ca.uhn.fhir.model.api.IDatatype; import ca.uhn.fhir.model.api.IPrimitiveDatatype; @@ -71,6 +74,11 @@ public SearchParamExtractorDstu1(FhirContext theContext) { super(theContext); } + @Override + public List extractSearchParamCoords(ResourceTable theEntity, IResource theResource) { + return Collections.emptyList(); + } + @Override public List extractSearchParamDates(ResourceTable theEntity, IResource theResource) { ArrayList retVal = new ArrayList(); @@ -123,8 +131,6 @@ public List extractSearchParamDates(ResourceTabl } } - theEntity.setParamsDatePopulated(retVal.size() > 0); - return retVal; } @@ -220,8 +226,6 @@ public ArrayList extractSearchParamNumber(Reso } } - theEntity.setParamsNumberPopulated(retVal.size() > 0); - return retVal; } @@ -270,8 +274,6 @@ public List extractSearchParamQuantity(Resou } } - theEntity.setParamsNumberPopulated(retVal.size() > 0); - return retVal; } @@ -358,8 +360,6 @@ public List extractSearchParamStrings(Resource } } - theEntity.setParamsStringPopulated(retVal.size() > 0); - return retVal; } @@ -468,9 +468,12 @@ public List extractSearchParamTokens(ResourceTab } - theEntity.setParamsTokenPopulated(retVal.size() > 0); - return retVal; } + @Override + public List extractSearchParamUri(ResourceTable theEntity, IResource theResource) { + return Collections.emptyList(); + } + } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu2.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu2.java index 879d49a2940e..46e5465763a5 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu2.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu2.java @@ -19,11 +19,12 @@ * limitations under the License. * #L% */ - -import static org.apache.commons.lang3.StringUtils.*; +import static org.apache.commons.lang3.StringUtils.isBlank; +import static org.apache.commons.lang3.StringUtils.isNotBlank; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; @@ -40,11 +41,13 @@ import ca.uhn.fhir.context.RuntimeResourceDefinition; import ca.uhn.fhir.context.RuntimeSearchParam; import ca.uhn.fhir.jpa.entity.BaseResourceIndexedSearchParam; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamDate; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamNumber; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri; import ca.uhn.fhir.jpa.entity.ResourceTable; import ca.uhn.fhir.model.api.IDatatype; import ca.uhn.fhir.model.api.IPrimitiveDatatype; @@ -81,6 +84,34 @@ public SearchParamExtractorDstu2(FhirContext theContext) { super(theContext); } + private void addSearchTerm(ResourceTable theEntity, ArrayList retVal, String resourceName, String searchTerm) { + if (isBlank(searchTerm)) { + return; + } + if (searchTerm.length() > ResourceIndexedSearchParamString.MAX_LENGTH) { + searchTerm = searchTerm.substring(0, ResourceIndexedSearchParamString.MAX_LENGTH); + } + + ResourceIndexedSearchParamString nextEntity = new ResourceIndexedSearchParamString(resourceName, BaseHapiFhirDao.normalizeString(searchTerm), searchTerm); + nextEntity.setResource(theEntity); + retVal.add(nextEntity); + } + + private void addStringParam(ResourceTable theEntity, ArrayList retVal, RuntimeSearchParam nextSpDef, String value) { + if (value.length() > ResourceIndexedSearchParamString.MAX_LENGTH) { + value = value.substring(0, ResourceIndexedSearchParamString.MAX_LENGTH); + } + ResourceIndexedSearchParamString nextEntity = new ResourceIndexedSearchParamString(nextSpDef.getName(), BaseHapiFhirDao.normalizeString(value), value); + nextEntity.setResource(theEntity); + retVal.add(nextEntity); + } + + @Override + public List extractSearchParamCoords(ResourceTable theEntity, IResource theResource) { + // TODO: implement + return Collections.emptyList(); + } + /* * (non-Javadoc) * @@ -138,8 +169,6 @@ public List extractSearchParamDates(ResourceTabl } } - theEntity.setParamsDatePopulated(retVal.size() > 0); - return retVal; } @@ -234,8 +263,6 @@ public ArrayList extractSearchParamNumber(Reso } } - theEntity.setParamsNumberPopulated(retVal.size() > 0); - return retVal; } @@ -290,8 +317,6 @@ public List extractSearchParamQuantity(Resou } } - theEntity.setParamsNumberPopulated(retVal.size() > 0); - return retVal; } @@ -373,24 +398,9 @@ public List extractSearchParamStrings(Resource } } - theEntity.setParamsStringPopulated(retVal.size() > 0); - return retVal; } - private void addSearchTerm(ResourceTable theEntity, ArrayList retVal, String resourceName, String searchTerm) { - if (isBlank(searchTerm)) { - return; - } - if (searchTerm.length() > ResourceIndexedSearchParamString.MAX_LENGTH) { - searchTerm = searchTerm.substring(0, ResourceIndexedSearchParamString.MAX_LENGTH); - } - - ResourceIndexedSearchParamString nextEntity = new ResourceIndexedSearchParamString(resourceName, BaseHapiFhirDao.normalizeString(searchTerm), searchTerm); - nextEntity.setResource(theEntity); - retVal.add(nextEntity); - } - /* * (non-Javadoc) * @@ -542,20 +552,63 @@ public List extractSearchParamTokens(ResourceTab } - theEntity.setParamsTokenPopulated(retVal.size() > 0); - return retVal; } - private void addStringParam(ResourceTable theEntity, ArrayList retVal, RuntimeSearchParam nextSpDef, String value) { - if (value.length() > ResourceIndexedSearchParamString.MAX_LENGTH) { - value = value.substring(0, ResourceIndexedSearchParamString.MAX_LENGTH); + @Override + public List extractSearchParamUri(ResourceTable theEntity, IResource theResource) { + ArrayList retVal = new ArrayList(); + + RuntimeResourceDefinition def = getContext().getResourceDefinition(theResource); + for (RuntimeSearchParam nextSpDef : def.getSearchParams()) { + if (nextSpDef.getParamType() != RestSearchParameterTypeEnum.URI) { + continue; + } + + String nextPath = nextSpDef.getPath(); + if (isBlank(nextPath)) { + continue; + } + + for (Object nextObject : extractValues(nextPath, theResource)) { + if (nextObject == null || ((IDatatype) nextObject).isEmpty()) { + continue; + } + + String resourceName = nextSpDef.getName(); + boolean multiType = false; + if (nextPath.endsWith("[x]")) { + multiType = true; + } + + if (nextObject instanceof UriDt) { + UriDt nextValue = (UriDt) nextObject; + if (isBlank(nextValue.getValue())) { + continue; + } + + ourLog.info("Adding param: {}, {}", resourceName, nextValue.getValue()); + + ResourceIndexedSearchParamUri nextEntity = new ResourceIndexedSearchParamUri(resourceName, nextValue.getValue()); + + ourLog.info("Added : {}", nextEntity); + + nextEntity.setResource(theEntity); + retVal.add(nextEntity); + } else { + if (!multiType) { + throw new ConfigurationException("Search param " + resourceName + " is of unexpected datatype: " + nextObject.getClass()); + } else { + continue; + } + } + } } - ResourceIndexedSearchParamString nextEntity = new ResourceIndexedSearchParamString(nextSpDef.getName(), BaseHapiFhirDao.normalizeString(value), value); - nextEntity.setResource(theEntity); - retVal.add(nextEntity); - } + return retVal; + } + + private void extractTokensFromCodeableConcept(List theSystems, List theCodes, CodeableConceptDt theCodeableConcept, ResourceTable theEntity, ArrayList theListToPopulate, RuntimeSearchParam theParameterDef) { for (CodingDt nextCoding : theCodeableConcept.getCoding()) { diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParameterMap.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParameterMap.java index c5204d75d932..66f80fe74f93 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParameterMap.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParameterMap.java @@ -41,10 +41,10 @@ public class SearchParameterMap extends HashMap myIncludes; private DateRangeParam myLastUpdated; private Set myRevIncludes; - private SortSpec mySort; public void add(String theName, IQueryParameterAnd theAnd) { @@ -113,10 +113,18 @@ public SortSpec getSort() { return mySort; } + public boolean isEverythingMode() { + return myEverythingMode; + } + public void setCount(Integer theCount) { myCount = theCount; } + public void setEverythingMode(boolean theConsolidateMatches) { + myEverythingMode = theConsolidateMatches; + } + public void setIncludes(Set theIncludes) { myIncludes = theIncludes; } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/BaseResourceIndexedSearchParam.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/BaseResourceIndexedSearchParam.java index 40cd16cfa8b1..00e67fa33323 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/BaseResourceIndexedSearchParam.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/BaseResourceIndexedSearchParam.java @@ -49,24 +49,28 @@ public abstract class BaseResourceIndexedSearchParam implements Serializable { @JoinColumn(name = "RES_ID", referencedColumnName="RES_ID") private ResourceTable myResource; + @Column(name = "RES_ID", insertable = false, updatable = false) + private Long myResourcePid; + @Column(name = "RES_TYPE", nullable=false) private String myResourceType; - @Column(name = "RES_ID", insertable = false, updatable = false) - private Long myResourcePid; + protected Long getId() { + return myId; + } public String getParamName() { return myParamName; } - public void setParamName(String theName) { - myParamName = theName; - } - public ResourceTable getResource() { return myResource; } + public void setParamName(String theName) { + myParamName = theName; + } + public void setResource(ResourceTable theResource) { myResource = theResource; myResourceType = theResource.getResourceType(); diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceIndexedSearchParamCoords.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceIndexedSearchParamCoords.java new file mode 100644 index 000000000000..d832605cae96 --- /dev/null +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceIndexedSearchParamCoords.java @@ -0,0 +1,71 @@ +package ca.uhn.fhir.jpa.entity; + +/* + * #%L + * HAPI FHIR JPA Server + * %% + * Copyright (C) 2014 - 2015 University Health Network + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * #L% + */ + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; + +//@formatter:off +@Entity +@Table(name = "HFJ_SPIDX_COORDS" /* , indexes = { @Index(name = "IDX_SP_TOKEN", columnList = "SP_SYSTEM,SP_VALUE") } */) +@org.hibernate.annotations.Table(appliesTo = "HFJ_SPIDX_COORDS", indexes = { + @org.hibernate.annotations.Index(name = "IDX_SP_COORDS", columnNames = { "RES_TYPE", "SP_NAME", "SP_LATITUDE" }) +}) +//@formatter:on +public class ResourceIndexedSearchParamCoords extends BaseResourceIndexedSearchParam { + + public static final int MAX_LENGTH = 100; + + private static final long serialVersionUID = 1L; + + @Column(name = "SP_LATITUDE") + public double myLatitude; + + @Column(name = "SP_LONGITUDE") + public double myLongitude; + + public ResourceIndexedSearchParamCoords() { + } + + public ResourceIndexedSearchParamCoords(String theName, String theUri, double theLatitude, double theLongitude) { + setParamName(theName); + setLatitude(theLatitude); + setLongitude(theLongitude); + } + + public double getLatitude() { + return myLatitude; + } + + public void setLatitude(double theLatitude) { + myLatitude = theLatitude; + } + + public double getLongitude() { + return myLongitude; + } + + public void setLongitude(double theLongitude) { + myLongitude = theLongitude; + } + +} diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceIndexedSearchParamUri.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceIndexedSearchParamUri.java new file mode 100644 index 000000000000..3309724dfe31 --- /dev/null +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceIndexedSearchParamUri.java @@ -0,0 +1,71 @@ +package ca.uhn.fhir.jpa.entity; + +/* + * #%L + * HAPI FHIR JPA Server + * %% + * Copyright (C) 2014 - 2015 University Health Network + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * #L% + */ + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; + +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.builder.ToStringBuilder; + +//@formatter:off +@Entity +@Table(name = "HFJ_SPIDX_URI" /* , indexes = { @Index(name = "IDX_SP_TOKEN", columnList = "SP_SYSTEM,SP_VALUE") } */) +@org.hibernate.annotations.Table(appliesTo = "HFJ_SPIDX_URI", indexes = { + @org.hibernate.annotations.Index(name = "IDX_SP_URI", columnNames = { "RES_TYPE", "SP_NAME", "SP_URI" }) +}) +//@formatter:on +public class ResourceIndexedSearchParamUri extends BaseResourceIndexedSearchParam { + + public static final int MAX_LENGTH = 256; + + private static final long serialVersionUID = 1L; + + @Column(name = "SP_URI", nullable = true, length = MAX_LENGTH) + public String myUri; + + public ResourceIndexedSearchParamUri() { + } + + public ResourceIndexedSearchParamUri(String theName, String theUri) { + setParamName(theName); + setUri(theUri); + } + + public String getUri() { + return myUri; + } + + public void setUri(String theUri) { + myUri = StringUtils.defaultIfBlank(theUri, null); + } + + @Override + public String toString() { + ToStringBuilder builder = new ToStringBuilder(this); + builder.append("id", getId()); + builder.append("paramName", getParamName()); + builder.append("uri", myUri); + return builder.toString(); + } + +} diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceTable.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceTable.java index 12866826b734..6548672499c6 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceTable.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceTable.java @@ -25,7 +25,9 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; +import java.util.HashSet; import java.util.List; +import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; @@ -75,13 +77,19 @@ public class ResourceTable extends BaseHasResource implements Serializable { @OneToMany(mappedBy = "myTargetResource", cascade = {}, fetch = FetchType.LAZY, orphanRemoval = false) private Collection myIncomingResourceLinks; - - @Column(name = "SP_INDEX_STATUS", nullable=true) + + @Column(name = "SP_INDEX_STATUS", nullable = true) private Long myIndexStatus; - @Column(name = "RES_LANGUAGE", length=MAX_LANGUAGE_LENGTH, nullable=true) + @Column(name = "RES_LANGUAGE", length = MAX_LANGUAGE_LENGTH, nullable = true) private String myLanguage; + @OneToMany(mappedBy = "myResource", cascade = {}, fetch = FetchType.LAZY, orphanRemoval = false) + private Collection myParamsCoords; + + @Column(name = "SP_COORDS_PRESENT") + private boolean myParamsCoordsPopulated; + @OneToMany(mappedBy = "myResource", cascade = {}, fetch = FetchType.LAZY, orphanRemoval = false) private Collection myParamsDate; @@ -112,7 +120,13 @@ public class ResourceTable extends BaseHasResource implements Serializable { @Column(name = "SP_TOKEN_PRESENT") private boolean myParamsTokenPopulated; - @Column(name = "RES_PROFILE", length=MAX_PROFILE_LENGTH,nullable=true) + @OneToMany(mappedBy = "myResource", cascade = {}, fetch = FetchType.LAZY, orphanRemoval = false) + private Collection myParamsUri; + + @Column(name = "SP_URI_PRESENT") + private boolean myParamsUriPopulated; + + @Column(name = "RES_PROFILE", length = MAX_PROFILE_LENGTH, nullable = true) private String myProfile; @OneToMany(mappedBy = "mySourceResource", cascade = {}, fetch = FetchType.LAZY, orphanRemoval = false) @@ -122,7 +136,7 @@ public class ResourceTable extends BaseHasResource implements Serializable { private String myResourceType; @OneToMany(mappedBy = "myResource", cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true) - private Collection myTags; + private Set myTags; @Column(name = "RES_VER") private long myVersion; @@ -137,7 +151,7 @@ public ResourceTag addTag(TagDefinition theTag) { public Long getId() { return myId; } - + public IdDt getIdDt() { Object id = getForcedId() == null ? myId : getForcedId().getForcedId(); return new IdDt(myResourceType + '/' + id + '/' + Constants.PARAM_HISTORY + '/' + myVersion); @@ -151,6 +165,13 @@ public String getLanguage() { return myLanguage; } + public Collection getParamsCoords() { + if (myParamsCoords == null) { + myParamsCoords = new ArrayList(); + } + return myParamsCoords; + } + public Collection getParamsDate() { if (myParamsDate == null) { myParamsDate = new ArrayList(); @@ -166,8 +187,8 @@ public Collection getParamsNumber() { } public Collection getParamsQuantity() { - if(myParamsQuantity==null) { - myParamsQuantity=new ArrayList(); + if (myParamsQuantity == null) { + myParamsQuantity = new ArrayList(); } return myParamsQuantity; } @@ -186,11 +207,17 @@ public Collection getParamsToken() { return myParamsToken; } + public Collection getParamsUri() { + if (myParamsUri == null) { + myParamsUri = new ArrayList(); + } + return myParamsUri; + } + public String getProfile() { return myProfile; } - public Collection getResourceLinks() { if (myResourceLinks == null) { myResourceLinks = new ArrayList(); @@ -204,7 +231,7 @@ public String getResourceType() { public Collection getTags() { if (myTags == null) { - myTags = new ArrayList(); + myTags = new HashSet(); } return myTags; } @@ -226,6 +253,10 @@ public boolean isHasLinks() { return myHasLinks; } + public boolean isParamsCoordsPopulated() { + return myParamsCoordsPopulated; + } + public boolean isParamsDatePopulated() { return myParamsDatePopulated; } @@ -246,6 +277,10 @@ public boolean isParamsTokenPopulated() { return myParamsTokenPopulated; } + public boolean isParamsUriPopulated() { + return myParamsUriPopulated; + } + public void setHasLinks(boolean theHasLinks) { myHasLinks = theHasLinks; } @@ -259,12 +294,24 @@ public void setIndexStatus(Long theIndexStatus) { } public void setLanguage(String theLanguage) { - if (defaultString(theLanguage).length()> MAX_LANGUAGE_LENGTH) { + if (defaultString(theLanguage).length() > MAX_LANGUAGE_LENGTH) { throw new UnprocessableEntityException("Language exceeds maximum length of " + MAX_LANGUAGE_LENGTH + " chars: " + theLanguage); } myLanguage = theLanguage; } + public void setParamsCoords(Collection theParamsCoords) { + if (!isParamsTokenPopulated() && theParamsCoords.isEmpty()) { + return; + } + getParamsCoords().clear(); + getParamsCoords().addAll(theParamsCoords); + } + + public void setParamsCoordsPopulated(boolean theParamsCoordsPopulated) { + myParamsCoordsPopulated = theParamsCoordsPopulated; + } + public void setParamsDate(Collection theParamsDate) { if (!isParamsDatePopulated() && theParamsDate.isEmpty()) { return; @@ -325,8 +372,20 @@ public void setParamsTokenPopulated(boolean theParamsTokenPopulated) { myParamsTokenPopulated = theParamsTokenPopulated; } + public void setParamsUri(Collection theParamsUri) { + if (!isParamsTokenPopulated() && theParamsUri.isEmpty()) { + return; + } + getParamsUri().clear(); + getParamsUri().addAll(theParamsUri); + } + + public void setParamsUriPopulated(boolean theParamsUriPopulated) { + myParamsUriPopulated = theParamsUriPopulated; + } + public void setProfile(String theProfile) { - if (defaultString(theProfile).length()> MAX_PROFILE_LENGTH) { + if (defaultString(theProfile).length() > MAX_PROFILE_LENGTH) { throw new UnprocessableEntityException("Profile name exceeds maximum length of " + MAX_PROFILE_LENGTH + " chars: " + theProfile); } myProfile = theProfile; diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceTag.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceTag.java index f0b8d830ab31..26ad960e9e14 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceTag.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ResourceTag.java @@ -29,6 +29,9 @@ import javax.persistence.ManyToOne; import javax.persistence.Table; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + @Entity @Table(name = "HFJ_RES_TAG") public class ResourceTag extends BaseTag { @@ -63,6 +66,7 @@ public ResourceTag() { public ResourceTag(ResourceTable theResourceTable, TagDefinition theTag) { myResource = theResourceTable; + myResourceId = theResourceTable.getId(); setTag(theTag); } @@ -82,4 +86,30 @@ public void setResourceType(String theResourceType) { myResourceType = theResourceType; } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (!(obj instanceof ResourceTag)) { + return false; + } + ResourceTag other = (ResourceTag) obj; + EqualsBuilder b = new EqualsBuilder(); + b.append(getResourceId(), other.getResourceId()); + b.append(getTag(), other.getTag()); + return b.isEquals(); + } + + @Override + public int hashCode() { + HashCodeBuilder b = new HashCodeBuilder(); + b.append(getResourceId()); + b.append(getTag()); + return b.toHashCode(); + } + } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/TagDefinition.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/TagDefinition.java index 81eb6b36630a..7a916115b7d1 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/TagDefinition.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/TagDefinition.java @@ -35,6 +35,9 @@ import javax.persistence.Table; import javax.persistence.UniqueConstraint; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + import ca.uhn.fhir.model.api.Tag; //@formatter:on @@ -119,4 +122,28 @@ public Tag toTag() { return new Tag(getSystem(), getCode(), getDisplay()); } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (!(obj instanceof TagDefinition)) { + return false; + } + TagDefinition other = (TagDefinition) obj; + EqualsBuilder b = new EqualsBuilder(); + b.append(myId, other.myId); + return b.isEquals(); + } + + @Override + public int hashCode() { + HashCodeBuilder b = new HashCodeBuilder(); + b.append(myId); + return b.toHashCode(); + } + } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderEncounterDstu2.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderEncounterDstu2.java index f64d6468fbe7..5112a8d85425 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderEncounterDstu2.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderEncounterDstu2.java @@ -52,6 +52,7 @@ public ca.uhn.fhir.rest.server.IBundleProvider everything( paramMap.setRevIncludes(Collections.singleton(IResource.INCLUDE_ALL.asRecursive())); paramMap.setIncludes(Collections.singleton(IResource.INCLUDE_ALL.asRecursive())); + paramMap.setEverythingMode(true); paramMap.add("_id", new StringParam(theId.getIdPart())); ca.uhn.fhir.rest.server.IBundleProvider retVal = getDao().search(paramMap); return retVal; diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderPatientDstu2.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderPatientDstu2.java index 912d00adf911..c1ceedf02fd8 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderPatientDstu2.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderPatientDstu2.java @@ -50,6 +50,7 @@ public ca.uhn.fhir.rest.server.IBundleProvider everything( paramMap.setRevIncludes(Collections.singleton(IResource.INCLUDE_ALL.asRecursive())); paramMap.setIncludes(Collections.singleton(IResource.INCLUDE_ALL.asRecursive())); + paramMap.setEverythingMode(true); paramMap.add("_id", new StringParam(theId.getIdPart())); ca.uhn.fhir.rest.server.IBundleProvider retVal = getDao().search(paramMap); return retVal; diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseJpaDstu2Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseJpaDstu2Test.java index 1bc0bb18e962..0e77824768fd 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseJpaDstu2Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseJpaDstu2Test.java @@ -23,11 +23,13 @@ import ca.uhn.fhir.jpa.entity.ForcedId; import ca.uhn.fhir.jpa.entity.ResourceHistoryTable; import ca.uhn.fhir.jpa.entity.ResourceHistoryTag; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamDate; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamNumber; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString; import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken; +import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri; import ca.uhn.fhir.jpa.entity.ResourceLink; import ca.uhn.fhir.jpa.entity.ResourceTable; import ca.uhn.fhir.jpa.entity.ResourceTag; @@ -43,6 +45,7 @@ import ca.uhn.fhir.model.dstu2.resource.Practitioner; import ca.uhn.fhir.model.dstu2.resource.Questionnaire; import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse; +import ca.uhn.fhir.model.dstu2.resource.ValueSet; import ca.uhn.fhir.rest.server.interceptor.IServerInterceptor; //@formatter:off @@ -76,6 +79,9 @@ public class BaseJpaDstu2Test extends BaseJpaTest { @Qualifier("myOrganizationDaoDstu2") protected IFhirResourceDao myOrganizationDao; @Autowired + @Qualifier("myValueSetDaoDstu2") + protected IFhirResourceDao myValueSetDao; + @Autowired @Qualifier("myPatientDaoDstu2") protected IFhirResourceDao myPatientDao; @Autowired @@ -127,6 +133,8 @@ public Void doInTransaction(TransactionStatus theStatus) { myEntityManager.createQuery("DELETE from " + ResourceIndexedSearchParamQuantity.class.getSimpleName() + " d").executeUpdate(); myEntityManager.createQuery("DELETE from " + ResourceIndexedSearchParamString.class.getSimpleName() + " d").executeUpdate(); myEntityManager.createQuery("DELETE from " + ResourceIndexedSearchParamToken.class.getSimpleName() + " d").executeUpdate(); + myEntityManager.createQuery("DELETE from " + ResourceIndexedSearchParamUri.class.getSimpleName() + " d").executeUpdate(); + myEntityManager.createQuery("DELETE from " + ResourceIndexedSearchParamCoords.class.getSimpleName() + " d").executeUpdate(); myEntityManager.createQuery("DELETE from " + ResourceLink.class.getSimpleName() + " d").executeUpdate(); return null; } diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseJpaTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseJpaTest.java index 248da9cc641e..8e4b45edde45 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseJpaTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseJpaTest.java @@ -28,7 +28,8 @@ protected List toList(IBundleProvider theSearch) { protected List toUnqualifiedVersionlessIds(IBundleProvider theFound) { List retVal = new ArrayList(); - for (IBaseResource next : theFound.getResources(0, theFound.size())) { + List resources = theFound.getResources(0, theFound.size()); + for (IBaseResource next : resources) { retVal.add((IIdType) next.getIdElement().toUnqualifiedVersionless()); } return retVal; diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu2SearchTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu2SearchTest.java index 05dcb6c24006..f59e27222334 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu2SearchTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu2SearchTest.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Set; +import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.hl7.fhir.instance.model.api.IBaseResource; import org.hl7.fhir.instance.model.api.IIdType; @@ -46,6 +47,7 @@ import ca.uhn.fhir.model.dstu2.resource.Organization; import ca.uhn.fhir.model.dstu2.resource.Patient; import ca.uhn.fhir.model.dstu2.resource.Practitioner; +import ca.uhn.fhir.model.dstu2.resource.ValueSet; import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; import ca.uhn.fhir.model.primitive.DateDt; import ca.uhn.fhir.model.primitive.DateTimeDt; @@ -651,6 +653,33 @@ public void testSearchStringParam() { } + @Test + public void testSearchParamChangesType() { + String name = "testSearchParamChangesType"; + IIdType id; + { + Patient patient = new Patient(); + patient.addName().addFamily(name); + id = myPatientDao.create(patient).getId().toUnqualifiedVersionless(); + } + + Map params = new HashMap(); + params.put(Patient.SP_FAMILY, new StringDt(name)); + List patients = toUnqualifiedVersionlessIds(myPatientDao.search(params)); + assertThat(patients, contains(id)); + + Patient patient = new Patient(); + patient.addIdentifier().setSystem(name).setValue(name); + patient.setId(id); + myPatientDao.update(patient); + + params = new HashMap(); + params.put(Patient.SP_FAMILY, new StringDt(name)); + patients = toUnqualifiedVersionlessIds(myPatientDao.search(params)); + assertThat(patients, not(contains(id))); + + } + @Test public void testSearchStringParamReallyLong() { String methodName = "testSearchStringParamReallyLong"; @@ -1002,6 +1031,7 @@ public void testSearchWithIncludesParameterRecurse() { params.add(Organization.SP_RES_ID, new StringDt(orgId.getIdPart())); params.addInclude(Organization.INCLUDE_PARTOF.asRecursive()); List resources = toUnqualifiedVersionlessIds(myOrganizationDao.search(params)); + ourLog.info(resources.toString()); assertThat(resources, contains(orgId, parentOrgId, parentParentOrgId)); } } @@ -1308,6 +1338,17 @@ public void testSearchWithNoResults() { } + @Test + public void testSearchWithUriParam() throws Exception { + String methodName = "testSearchWithUriParam"; + + ValueSet vs = myFhirCtx.newJsonParser().parseResource(ValueSet.class, IOUtils.toString(FhirResourceDaoDstu2SearchTest.class.getResourceAsStream("/valueset-dstu2.json"))); + myValueSetDao.update(vs); + + IBundleProvider result = myValueSetDao.search(ValueSet.SP_URL, new UriParam("http://hl7.org/fhir/ValueSet/basic-resource-type")); + assertThat(toUnqualifiedVersionlessIds(result), contains((IIdType)new IdDt("ValueSet/testSearchWithUriParam"))); + } + @Test public void testSearchWithSecurityAndProfileParams() { String methodName = "testSearchWithSecurityAndProfileParams"; diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu2UpdateTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu2UpdateTest.java index faf5d4975d5a..230380c68217 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu2UpdateTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu2UpdateTest.java @@ -15,8 +15,11 @@ import static org.mockito.Mockito.reset; import static org.mockito.Mockito.verify; +import java.util.ArrayList; import java.util.Date; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Set; import org.hl7.fhir.instance.model.api.IBaseResource; @@ -24,8 +27,10 @@ import org.junit.Test; import org.mockito.ArgumentCaptor; +import ca.uhn.fhir.model.api.IQueryParameterType; import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum; +import ca.uhn.fhir.model.api.TagList; import ca.uhn.fhir.model.dstu2.resource.Organization; import ca.uhn.fhir.model.dstu2.resource.Patient; import ca.uhn.fhir.model.primitive.IdDt; @@ -224,6 +229,82 @@ public void testUpdateRejectsInvalidTypes() throws InterruptedException { } + @Test + public void testDuplicateProfilesIgnored() { + String name = "testDuplicateProfilesIgnored"; + IIdType id; + { + Patient patient = new Patient(); + patient.addName().addFamily(name); + + List tl = new ArrayList(); + tl.add(new IdDt("http://foo/bar")); + tl.add(new IdDt("http://foo/bar")); + tl.add(new IdDt("http://foo/bar")); + ResourceMetadataKeyEnum.PROFILES.put(patient, tl); + + id = myPatientDao.create(patient).getId().toUnqualifiedVersionless(); + } + + // Do a read + { + Patient patient = myPatientDao.read(id); + List tl = ResourceMetadataKeyEnum.PROFILES.get(patient); + assertEquals(1, tl.size()); + assertEquals("http://foo/bar", tl.get(0).getValue()); + } + + } + + @Test + public void testUpdateModifiesProfiles() { + String name = "testUpdateModifiesProfiles"; + IIdType id; + { + Patient patient = new Patient(); + patient.addName().addFamily(name); + + List tl = new ArrayList(); + tl.add(new IdDt("http://foo/bar")); + ResourceMetadataKeyEnum.PROFILES.put(patient, tl); + + id = myPatientDao.create(patient).getId().toUnqualifiedVersionless(); + } + + // Do a read + { + Patient patient = myPatientDao.read(id); + List tl = ResourceMetadataKeyEnum.PROFILES.get(patient); + assertEquals(1, tl.size()); + assertEquals("http://foo/bar", tl.get(0).getValue()); + } + + // Update + { + Patient patient = new Patient(); + patient.setId(id); + patient.addName().addFamily(name); + + List tl = new ArrayList(); + tl.add(new IdDt("http://foo/baz")); + ResourceMetadataKeyEnum.PROFILES.put(patient, tl); + + id = myPatientDao.update(patient).getId().toUnqualifiedVersionless(); + } + + // Do a read + { + Patient patient = myPatientDao.read(id); + List tl = ResourceMetadataKeyEnum.PROFILES.get(patient); + assertEquals(1, tl.size()); + assertEquals("http://foo/baz", tl.get(0).getValue()); + } + + + } + + + @Test public void testUpdateUnknownNumericIdFails() { Patient p = new Patient(); diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu1Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu1Test.java index 9ee1499722a0..eccde1dc555e 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu1Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu1Test.java @@ -239,7 +239,6 @@ public void testTagOperationss() throws Exception { assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); assertEquals("testGetAllTagsLabel2", tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2").getLabel()); - o1.getResourceMetadata().remove(ResourceMetadataKeyEnum.TAG_LIST); o1.setId(o1id); IIdType o1id2 = ourObservationDao.update(o1).getId(); assertTrue(o1id2.getVersionIdPart() != null); diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2Test.java index 94b1276d29be..4ab80bb45652 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2Test.java @@ -48,6 +48,7 @@ import ca.uhn.fhir.model.dstu2.resource.Observation; import ca.uhn.fhir.model.dstu2.resource.OperationOutcome; import ca.uhn.fhir.model.dstu2.resource.Patient; +import ca.uhn.fhir.model.dstu2.resource.ValueSet; import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum; import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum; import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum; @@ -72,6 +73,10 @@ public void testRendexing() { p.addName().addFamily("family"); final IIdType id = myPatientDao.create(p).getId().toUnqualifiedVersionless(); + ValueSet vs = new ValueSet(); + vs.setUrl("http://foo"); + myValueSetDao.create(vs); + ResourceTable entity = new TransactionTemplate(myTxManager).execute(new TransactionCallback() { @Override public ResourceTable doInTransaction(TransactionStatus theStatus) { diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/ResourceProviderDstu1Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/ResourceProviderDstu1Test.java index 47cd9093ca40..b388e727ebef 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/ResourceProviderDstu1Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/ResourceProviderDstu1Test.java @@ -556,6 +556,7 @@ public static void beforeClass() throws Exception { ourServer.setHandler(proxyHandler); ourServer.start(); + ourCtx.getRestfulClientFactory().setSocketTimeout(240 * 1000); ourClient = ourCtx.newRestfulGenericClient(ourServerBase); ourClient.registerInterceptor(new LoggingInterceptor(true)); diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/ResourceProviderDstu2Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/ResourceProviderDstu2Test.java index a402d6d78564..32745ab5f6b4 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/ResourceProviderDstu2Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/ResourceProviderDstu2Test.java @@ -657,8 +657,8 @@ public void testEverythingOperation() throws Exception { assertThat(ids, containsInAnyOrder(patientId, devId, obsId, encId, orgId1, orgId2)); - // _revinclude's are counted but not _include's - assertEquals(3, b.getTotal().intValue()); + // Should include everything + assertEquals(6, b.getTotal().intValue()); ourLog.info(ids.toString()); } diff --git a/hapi-fhir-jpaserver-base/src/test/resources/META-INF/persistence.xml b/hapi-fhir-jpaserver-base/src/test/resources/META-INF/persistence.xml index b649774c9912..6feb16c727ea 100644 --- a/hapi-fhir-jpaserver-base/src/test/resources/META-INF/persistence.xml +++ b/hapi-fhir-jpaserver-base/src/test/resources/META-INF/persistence.xml @@ -17,6 +17,8 @@ ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken + ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri + ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords ca.uhn.fhir.jpa.entity.ResourceLink ca.uhn.fhir.jpa.entity.ResourceTag ca.uhn.fhir.jpa.entity.TagDefinition diff --git a/hapi-fhir-jpaserver-base/src/test/resources/valueset-dstu2.json b/hapi-fhir-jpaserver-base/src/test/resources/valueset-dstu2.json new file mode 100644 index 000000000000..1d281ed51d75 --- /dev/null +++ b/hapi-fhir-jpaserver-base/src/test/resources/valueset-dstu2.json @@ -0,0 +1,132 @@ + { + "resourceType":"ValueSet", + "id":"testSearchWithUriParam", + "meta":{ + "versionId":"1", + "lastUpdated":"2015-09-01T01:41:51.722-04:00", + "profile":[ + "http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition" + ] + }, + "extension":[ + { + "url":"http://hl7.org/fhir/StructureDefinition/valueset-oid", + "valueUri":"2.16.840.1.113883.4.642.2.59" + } + ], + "text":{ + "status":"generated", + "div":"

Basic Resource Types

This value set defines codes for resources not yet supported by (or which will never be supported by) FHIR. Many of the codes listed here will eventually be turned into official resources. However, there is no guarantee that any particular resource will be created nor that the scope will be exactly as defined by the codes presented here. Codes in this set will be deprecated if/when formal resources are defined that encompass these concepts.

This value set has an inline code system http://hl7.org/fhir/basic-resource-type, which defines the following codes:

Code Display Definition
consent Consent An assertion of permission for an activity or set of activities to occur, possibly subject to particular limitations. E.g. surgical consent, information disclosure consent, etc.
referral Referral A request that care of a particular type be provided to a patient. Could involve the transfer of care, a consult, etc.
advevent Adverse Event An undesired reaction caused by exposure to some agent (e.g., a medication, immunization, food, or environmental agent).
aptmtreq Appointment Request A request that a time be scheduled for a type of service for a specified patient, potentially subject to other constraints
transfer Transfer The transition of a patient or set of material from one location to another
diet Diet The specification of a set of food and/or other nutritonal material to be delivered to a patient.
adminact Administrative Activity An occurrence of a non-care-related event in the healthcare domain, such as approvals, reviews, etc.
exposure Exposure Record of a situation where a subject was exposed to a substance. Usually of interest to public health.
investigation Investigation A formalized inquiry into the circumstances surrounding a particular unplanned event or potential event for the purposes of identifying possible causes and contributing factors for the event
account Account A financial instrument used to track costs, charges or other amounts.
invoice Invoice A request for payment for goods and/or services. Includes the idea of a healthcare insurance claim.
adjudicat Invoice Adjudication The determination of what will be paid against a particular invoice based on coverage, plan rules, etc.
predetreq Predetermination Request A request for a predication of the cost that would be paid under an insurance plan for a hypothetical claim for goods or services
predetermine Predetermination An adjudication of what would be paid under an insurance plan for a hypothetical claim for goods or services
study Study An investigation to determine information about a particular therapy or product
protocol Protocol A set of (possibly conditional) steps to be taken to achieve some aim. Includes study protocols, treatment protocols, emergency protocols, etc.
" + }, + "url":"http://hl7.org/fhir/ValueSet/basic-resource-type", + "version":"0.5.0", + "name":"Basic Resource Types", + "status":"draft", + "experimental":true, + "publisher":"FHIR Project team", + "contact":[ + { + "telecom":[ + { + "system":"other", + "value":"http://hl7.org/fhir" + } + ] + } + ], + "date":"2015-08-25T09:23:39+10:00", + "description":"This value set defines codes for resources not yet supported by (or which will never be supported by) FHIR. Many of the codes listed here will eventually be turned into official resources. However, there is no guarantee that any particular resource will be created nor that the scope will be exactly as defined by the codes presented here. Codes in this set will be deprecated if/when formal resources are defined that encompass these concepts.", + "codeSystem":{ + "extension":[ + { + "url":"http://hl7.org/fhir/StructureDefinition/valueset-oid", + "valueUri":"urn:oid:2.16.840.1.113883.4.642.1.59" + } + ], + "system":"http://hl7.org/fhir/basic-resource-type", + "caseSensitive":true, + "concept":[ + { + "code":"consent", + "display":"Consent", + "definition":"An assertion of permission for an activity or set of activities to occur, possibly subject to particular limitations. E.g. surgical consent, information disclosure consent, etc." + }, + { + "code":"referral", + "display":"Referral", + "definition":"A request that care of a particular type be provided to a patient. Could involve the transfer of care, a consult, etc." + }, + { + "code":"advevent", + "display":"Adverse Event", + "definition":"An undesired reaction caused by exposure to some agent (e.g., a medication, immunization, food, or environmental agent)." + }, + { + "code":"aptmtreq", + "display":"Appointment Request", + "definition":"A request that a time be scheduled for a type of service for a specified patient, potentially subject to other constraints" + }, + { + "code":"transfer", + "display":"Transfer", + "definition":"The transition of a patient or set of material from one location to another" + }, + { + "code":"diet", + "display":"Diet", + "definition":"The specification of a set of food and/or other nutritonal material to be delivered to a patient." + }, + { + "code":"adminact", + "display":"Administrative Activity", + "definition":"An occurrence of a non-care-related event in the healthcare domain, such as approvals, reviews, etc." + }, + { + "code":"exposure", + "display":"Exposure", + "definition":"Record of a situation where a subject was exposed to a substance. Usually of interest to public health." + }, + { + "code":"investigation", + "display":"Investigation", + "definition":"A formalized inquiry into the circumstances surrounding a particular unplanned event or potential event for the purposes of identifying possible causes and contributing factors for the event" + }, + { + "code":"account", + "display":"Account", + "definition":"A financial instrument used to track costs, charges or other amounts." + }, + { + "code":"invoice", + "display":"Invoice", + "definition":"A request for payment for goods and/or services. Includes the idea of a healthcare insurance claim." + }, + { + "code":"adjudicat", + "display":"Invoice Adjudication", + "definition":"The determination of what will be paid against a particular invoice based on coverage, plan rules, etc." + }, + { + "code":"predetreq", + "display":"Predetermination Request", + "definition":"A request for a predication of the cost that would be paid under an insurance plan for a hypothetical claim for goods or services" + }, + { + "code":"predetermine", + "display":"Predetermination", + "definition":"An adjudication of what would be paid under an insurance plan for a hypothetical claim for goods or services" + }, + { + "code":"study", + "display":"Study", + "definition":"An investigation to determine information about a particular therapy or product" + }, + { + "code":"protocol", + "display":"Protocol", + "definition":"A set of (possibly conditional) steps to be taken to achieve some aim. Includes study protocols, treatment protocols, emergency protocols, etc." + } + ] + } + } + diff --git a/hapi-fhir-jpaserver-example/src/main/resources/META-INF/fhirtest_persistence.xml b/hapi-fhir-jpaserver-example/src/main/resources/META-INF/fhirtest_persistence.xml index 0f9a7bc76f43..6ec380207c09 100644 --- a/hapi-fhir-jpaserver-example/src/main/resources/META-INF/fhirtest_persistence.xml +++ b/hapi-fhir-jpaserver-example/src/main/resources/META-INF/fhirtest_persistence.xml @@ -15,6 +15,8 @@ ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken + ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri + ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords ca.uhn.fhir.jpa.entity.ResourceLink ca.uhn.fhir.jpa.entity.ResourceTable ca.uhn.fhir.jpa.entity.ResourceTag diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/META-INF/fhirtest_persistence.xml b/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/META-INF/fhirtest_persistence.xml index 17ba372c74cc..8c4c112e780c 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/META-INF/fhirtest_persistence.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/META-INF/fhirtest_persistence.xml @@ -15,6 +15,8 @@ ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken + ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri + ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords ca.uhn.fhir.jpa.entity.ResourceLink ca.uhn.fhir.jpa.entity.ResourceTable ca.uhn.fhir.jpa.entity.ResourceTag diff --git a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java index 6318f3d6253d..72293c22dccd 100644 --- a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java +++ b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java @@ -1060,7 +1060,6 @@ public void testParseBundle() throws DataFormatException, IOException { } - @Ignore @Test public void testTotalResultsInJsonBundle() { String json = @@ -1115,6 +1114,9 @@ public void testTotalResultsInJsonBundle() { IParser jsonParser = ourCtx.newJsonParser(); Bundle bundle = jsonParser.parseBundle(json); + assertEquals("author-name", bundle.getAuthorName().getValue()); + assertEquals("uri", bundle.getAuthorUri().getValue()); + } @Test diff --git a/hapi-fhir-testpage-overlay/src/test/resources/META-INF/persistence.xml b/hapi-fhir-testpage-overlay/src/test/resources/META-INF/persistence.xml index b649774c9912..6feb16c727ea 100644 --- a/hapi-fhir-testpage-overlay/src/test/resources/META-INF/persistence.xml +++ b/hapi-fhir-testpage-overlay/src/test/resources/META-INF/persistence.xml @@ -17,6 +17,8 @@ ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken + ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri + ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords ca.uhn.fhir.jpa.entity.ResourceLink ca.uhn.fhir.jpa.entity.ResourceTag ca.uhn.fhir.jpa.entity.TagDefinition diff --git a/hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/profile/supply.profile.xml b/hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/profile/supply.profile.xml deleted file mode 100644 index c1670d5cfae5..000000000000 --- a/hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/profile/supply.profile.xml +++ /dev/null @@ -1,778 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/v2-tables.xml b/hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/v2-tables.xml new file mode 100644 index 000000000000..47d97af929f5 --- /dev/null +++ b/hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/v2-tables.xml @@ -0,0 +1,48894 @@ + + + + + + + + + + + + + + + + + + +
+

Administrative Sex

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Nederlands (Dutch) + + Version +
A + + AmbiguousAmbiguadded v2.4
F + + FemaleVrouwfrom v2.1
M + + MaleManfrom v2.1
N + + Not applicableNiet van toepassingadded v2.4
O + + OtherAndersfrom v2.1
U + + UnknownOnbekendfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Marital Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Nederlands (Dutch) + + Version +
A + + SeparatedUit elkaarfrom v2.1
B + + UnmarriedNiet getrouwdadded v2.4
C + + Common lawVolgens jurisprudentieadded v2.4
D + + DivorcedGescheiden na huwelijkfrom v2.1
E + + Legally SeparatedWettelijk gescheidenadded v2.4
G + + Living togetherSamenlevendadded v2.4
I + + InterlocutoryTijdelijke overeenkomstadded v2.4
M + + MarriedGetrouwdfrom v2.1
N + + AnnulledNietig verklaardadded v2.4
O + + OtherAndersadded v2.4
P + + Domestic partnerHuisgenootadded v2.4
R + + Registered domestic partnerGeregistreerd partnerschapadded v2.4
S + + SingleAlleenstaandfrom v2.1
T + + UnreportedNiet vermeldadded v2.4
U + + UnknownOnbekendadded v2.4
W + + WidowedWeduwe/weduwnaarfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Event Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Nederlands (Dutch) + + Version +
A01 + + ADT/ACK - Admit/visit notificationADT/ACK - Opname/bezoek notificatiefrom v2.1
A02 + + ADT/ACK - Transfer a patientADT/ACK - Overplaatsing van een patiëntfrom v2.1
A03 + + ADT/ACK - Discharge/end visitADT/ACK - Ontslag/einde bezoekfrom v2.1
A04 + + ADT/ACK - Register a patientADT/ACK - Registratie van een patiëntfrom v2.1
A05 + + ADT/ACK - Pre-admit a patientVooropname van een patiëntfrom v2.1
A06 + + ADT/ACK - Change an outpatient to an inpatientADT/ACK - Wijzig poliklinische patiënt naar klinische patiëntfrom v2.1
A07 + + ADT/ACK - Change an inpatient to an outpatientADT/ACK - Wijzig klinische patiënt naar poliklinische patiëntfrom v2.1
A08 + + ADT/ACK - Update patient informationADT/ACK - Update patiëntinformatiefrom v2.1
A09 + + ADT/ACK - Patient departing - trackingADT/ACK - Patiënt vertrekt - trackingfrom v2.1
A10 + + ADT/ACK - Patient arriving - trackingADT/ACK - Patiënt keert terug - trackingfrom v2.1
A11 + + ADT/ACK - Cancel admit/visit notificationADT/ACK - Annuleer opname/bezoek notificatiefrom v2.1
A12 + + ADT/ACK - Cancel transferADT/ACK - Annulering overplaatsingfrom v2.1
A13 + + ADT/ACK - Cancel discharge/end visitADT/ACK - Annuleer ontslag/einde bezoekfrom v2.1
A14 + + ADT/ACK - Pending admitADT/ACK - Geplande opnamefrom v2.1
A15 + + ADT/ACK - Pending transferADT/ACK - Geplande overplaatsingfrom v2.1
A16 + + ADT/ACK - Pending dischargeADT/ACK - Gepland ontslagfrom v2.1
A17 + + ADT/ACK - Swap patientsADT/ACK - Bedwissel patiëntenfrom v2.1
A18 + + ADT/ACK - Merge patient informationADT/ACK - Samenvoeging patiëntinformatiefrom v2.1
A19 + + QRY/ADR - Patient queryPatiëntopvragingfrom v2.1
A20 + + ADT/ACK - Bed status updateADT/ACK - Update bedstatusfrom v2.1
A21 + + ADT/ACK - Patient goes on a "leave of absence"ADT/ACK - Patiënt gaat met “verlof”from v2.1
A22 + + ADT/ACK - Patient returns from a "leave of absence"ADT/ACK - Patiënt keert terug van “verlof”from v2.1
A23 + + ADT/ACK - Delete a patient recordADT/ACK - Verwijder een patiëntrecordfrom v2.1
A24 + + ADT/ACK - Link patient informationADT/ACK - Koppel patiëntinformatiefrom v2.1
A25 + + ADT/ACK - Cancel pending dischargeADT/ACK - Annuleer gepland ontslagadded v2.2
A26 + + ADT/ACK - Cancel pending transferADT/ACK - Annuleer geplande overplaatsingadded v2.2
A27 + + ADT/ACK - Cancel pending admitADT/ACK - Annuleer geplande opnameadded v2.2
A28 + + ADT/ACK - Add person informationADT/ACK - Voeg persoonsinformatie toeadded v2.2
A29 + + ADT/ACK - Delete person informationADT/ACK - Verwijder persoonsinformatieadded v2.2
A30 + + ADT/ACK - Merge person informationADT/ACK - Voeg persoonsinformatie samenadded v2.2
A31 + + ADT/ACK - Update person informationADT/ACK - Update persoonsinformatieadded v2.2
A32 + + ADT/ACK - Cancel patient arriving - trackingADT/ACK - Annuleer aankomst patiënt - trackingadded v2.2
A33 + + ADT/ACK - Cancel patient departing - trackingADT/ACK - Annuleer vertrek patiënt - trackingadded v2.2
A34 + + ADT/ACK - Merge patient information - patient ID onlyADT/ACK - Voeg patiëntinformatie samen - alleen patiënt IDadded v2.2
A35 + + ADT/ACK - Merge patient information - account number onlyADT/ACK - Voeg patiëntinformatie samen - alleen accountnummeradded v2.2
A36 + + ADT/ACK - Merge patient information - patient ID and account numberADT/ACK - Voeg patiëntinformatie samen - patiënt ID en accountnummeradded v2.2
A37 + + ADT/ACK - Unlink patient informationADT/ACK - Ontkoppel patiëntinformatieadded v2.2
A38 + + ADT/ACK - Cancel pre-admitADT/ACK - Annuleer opname op wachtlijstadded v2.3
A39 + + ADT/ACK - Merge person - patient IDADT/ACK - Voeg persoon samen - patiënt IDadded v2.3
A40 + + ADT/ACK - Merge patient - patient identifier listADT/ACK - Voeg patiënt samen - lijst patiënt ID'sadded v2.3
A41 + + ADT/ACK - Merge account - patient account numberADT/ACK - Samenvoeging account - patiënt accountnummeradded v2.3
A42 + + ADT/ACK - Merge visit - visit numberADT/ACK - Samenvoeging bezoek - bezoeknummeradded v2.3
A43 + + ADT/ACK - Move patient information - patient identifier listADT/ACK - Verplaats patiëntinformatie - lijst patiënt ID'sadded v2.3
A44 + + ADT/ACK - Move account information - patient account numberADT/ACK - Verplaats accountinformatie - patiënt accountnummeradded v2.3
A45 + + ADT/ACK - Move visit information - visit numberADT/ACK - Verplaats bezoekinformatie - bezoeknummeradded v2.3
A46 + + ADT/ACK - Change patient IDADT/ACK - Wijzig patiënt IDadded v2.3
A47 + + ADT/ACK - Change patient identifier listADT/ACK - Wijzig lijst patiënt ID'sadded v2.3
A48 + + ADT/ACK - Change alternate patient IDADT/ACK - Wijzig alternatief patiënt IDadded v2.3
A49 + + ADT/ACK - Change patient account numberADT/ACK - Wijzig patiënt accountnummeradded v2.3
A50 + + ADT/ACK - Change visit numberADT/ACK - Wijzig bezoeknummeradded v2.3
A51 + + ADT/ACK - Change alternate visit IDADT/ACK - Wijzig alternatief bezoeknummeradded v2.3
A52 + + ADT/ACK - Cancel leave of absence for a patientADT/ACK - Annuleer verlof voor een patiëntadded v2.4
A53 + + ADT/ACK - Cancel patient returns from a leave of absenceADT/ACK - Annuleer terugkeer van verlof voor een patiëntadded v2.4
A54 + + ADT/ACK - Change attending doctorADT/ACK - Wijzig behandelend artsadded v2.4
A55 + + ADT/ACK - Cancel change attending doctorADT/ACK - Annuleer wijzigen behandelend artsadded v2.4
A60 + + ADT/ACK - Update allergy informationADT/ACK - Update allergie-informatieadded v2.4
A61 + + ADT/ACK - Change consulting doctorADT/ACK - Wijzig consulterend artsadded v2.4
A62 + + ADT/ACK - Cancel change consulting doctorADT/ACK - Annuleer wijzigen consulterend artsadded v2.4
B01 + + PMU/ACK - Add personnel recordPMU/ACK - Voeg personeelrecord toeadded v2.4
B02 + + PMU/ACK - Update personnel recordPMU/ACK - Update personeelrecordadded v2.4
B03 + + PMU/ACK - Delete personnel re cordPMU/ACK - Verwijder personeelrecordadded v2.4
B04 + + PMU/ACK - Active practicing personPMU/ACK - Activeer praktiserend persoonadded v2.4
B05 + + PMU/ACK - Deactivate practicing personPMU/ACK - Deactiveer praktiserend persoonadded v2.4
B06 + + PMU/ACK - Terminate practicing personPMU/ACK - Beëindig praktiserend persoonadded v2.4
B07 + + PMU/ACK - Grant Certificate/PermissionPMU/ACK - Geef certificaat/toestemmingadded v2.5
B08 + + PMU/ACK - Revoke Certificate/PermissionPMU/ACK - Trek certificaat/toestemming inadded v2.5
C01 + + CRM - Register a patient on a clinical trialCRM - Registreer patiënt voor clinical trialadded v2.3
C02 + + CRM - Cancel a patient registration on clinical trial (for clerical mistakes only)CRM - Annuleer patiëntregistratie voor clinical trial (invoerfout)added v2.3
C03 + + CRM - Correct/update registration informationCRM - Corrigeer/update registratie-informatieadded v2.3
C04 + + CRM - Patient has gone off a clinical trialCRM - Patiënt heeft clinical trial verlatenadded v2.3
C05 + + CRM - Patient enters phase of clinical trialCRM - Patiënt gaat in fase van clinical trialadded v2.3
C06 + + CRM - Cancel patient entering a phase (clerical mistake)CRM - Annuleer patiënt gaat in fase van clinical trial (invoerfout)added v2.3
C07 + + CRM - Correct/update phase informationCRM - Corrigeer/update fase-informatieadded v2.3
C08 + + CRM - Patient has gone off phase of clinical trialCRM - Patiënt heeft fase clinical trial verlatenadded v2.3
C09 + + CSU - Automated time intervals for reporting, like monthlyCSU - Geautomatiseerde rapportageintervallen, zoals maandelijksadded v2.3
C10 + + CSU - Patient completes the clinical trialCSU - Patiënt voltooit de clinical trialadded v2.3
C11 + + CSU - Patient completes a phase of the clinical trialCSU - Patiënt voltooit een fase van de clinical trialadded v2.3
C12 + + CSU - Update/correction of patient order/result informationCSU - Update/correctie van patiënt aanvraag-/resultaatinformatieadded v2.3
CNQ + + Cancel QueryAnnuleer queryadded v2.3, removed after v2.5.1
E01 + + Submit HealthCare Services InvoiceDien factuur zorgproducten inadded v2.6
E02 + + Cancel HealthCare Services InvoiceAnnuleer factuur zorgproductenadded v2.6
E03 + + HealthCare Services Invoice StatusStatus factuur zorgproductenadded v2.6
E04 + + Re-Assess HealthCare Services Invoice RequestBeoordeel factuuraanvraag zorgproducten opnieuwadded v2.6
E10 + + Edit/Adjudication ResultsWijzig/beslissing resultatenadded v2.6
E12 + + Request Additional InformationVerzoek om aanvullende informatieadded v2.6
E13 + + Additional Information ResponseAntwoord aanvullende informatieadded v2.6
E15 + + Payment/Remittance AdviceAdvies betaling/teruggaveadded v2.6
E20 + + Submit Authorization RequestDien autorisatieverzoek inadded v2.6
E21 + + Cancel Authorization RequestAnnuleer autorisatieverzoekadded v2.6
E22 + + Authorization Request StatusStatus autorisatieverzoekadded v2.6
E24 + + Authorization ResponseAntwoord autorisatieverzoekadded v2.6
E30 + + Submit Health Document related to Authorization RequestDien zorgdocument gerelateerd aan autorisatieverzoek inadded v2.6
E31 + + Cancel Health Document related to Authorization RequestAnnuleer zorgdocument gerelateerd aan autorisatieverzoekadded v2.6
I01 + + RQI/RPI - Request for insurance informationRQI/RPI - Verzoek om verzekeringsgegevensadded v2.3
I02 + + RQI/RPL - Request/receipt of patient selection display listRQI/RPL - Verzoek/afschrift van patiëntselectie weergavelijstadded v2.3
I03 + + RQI/RPR - Request/receipt of patient selection listRQI/RPR - Verzoek/afschrift van patiëntselectielijstadded v2.3
I04 + + RQD/RPI - Request for patient demographic dataRQD/RPI - Verzoek om demografische patiëntgegevensadded v2.3
I05 + + RQC/RCI - Request for patient clinical informationRQC/RCI - Verzoek om klinische patiëntgegevensadded v2.3
I06 + + RQC/RCL - Request/receipt of clinical data listingRQC/RCL - Verzoek/afschrift van overzicht klinische gegevensadded v2.3
I07 + + PIN/ACK - Unsolicited insurance informationPIN/ACK - Ongevraagde verzekeringsinformatieadded v2.3
I08 + + RQA/RPA - Request for treatment authorization informationRQA/RPA - Verzoek om autorisatie-informatie behandelingadded v2.3
I09 + + RQA/RPA - Request for modification to an authorizationRQA/RPA - Verzoek om wijziging in autorisatieadded v2.3
I10 + + RQA/RPA - Request for resubmission of an authorizationRQA/RPA - Verzoek om autorisatie opnieuw in te dienenadded v2.3
I11 + + RQA/RPA - Request for cancellation of an authorizationRQA/RPA - Verzoek om annulering van een autorisatieadded v2.3
I12 + + REF/RRI - Patient referralREF/RRI - Patiëntverwijzingadded v2.3
I13 + + REF/RRI - Modify patient referralREF/RRI - Wijzig patiëntverwijzingadded v2.3
I14 + + REF/RRI - Cancel patient referralREF/RRI - Annuleer patiëntverwijzingadded v2.3
I15 + + REF/RRI - Request patient referral statusREF/RRI - Verzoek om status patiëntverwijzingadded v2.3
I16 + + Collaborative Care ReferralMultidisciplinaire verwijzingadded v2.7
I17 + + Modify Collaborative Care ReferralWijzig multidisciplinaire verwijzingadded v2.7
I18 + + Cancel Collaborative Care ReferralAnnuleer multidisciplinaire verwijzingadded v2.7
I19 + + Collaborative Care Query/Collaborative Care Query UpdateQuery multidisciplinaire zorg/Query update multidisciplinaire zorgadded v2.7
I20 + + Asynchronous Collaborative Care UpdateAsynchrone update multidisciplinaire zorgadded v2.7
I21 + + Collaborative Care MessageMultidisciplinair berichtadded v2.7
I22 + + Collaborative Care Fetch / Collaborative Care InformationMultidisciplinaire zorg ophalen/multidisciplinaire zorg informatieadded v2.7
J01 + + QCN/ACK - Cancel query/acknowledge messageQCN/ACK - Annuleer query/bevestigingsberichtadded v2.4
J02 + + QSX/ACK - Cancel subscription/acknowledge messageQSX/ACK - Annuleer abonnement/bevestigingsberichtadded v2.4
K11 + + RSP - Segment pattern response in response to QBP^Q11RSP - Segmentpatroon antwoord op QBP^Q11added v2.5
K13 + + RTB - Tabular response in response to QBP^Q13RTB - Tabelpatroon antwoord op QBP^Q13added v2.5
K15 + + RDY - Display response in response to QBP^Q15RDY - Weergavepatroon antwoord op QBP^Q15added v2.5
K21 + + RSP - Get person demographics responseRSP - Antwoord query demografische persoonsgegevensadded v2.4
K22 + + RSP - Find candidates responseRSP - Antwoord zoek kandidatenadded v2.4
K23 + + RSP - Get corresponding identifiers responseRSP - Antwoord bijbehorende ID'sadded v2.4
K24 + + RSP - Allocate identifiers responseRSP - Antwoord alloceer ID'sadded v2.4
K25 + + RSP - Personnel Information by Segment ResponseRSP - Antwoord personeelsinformatie op segmentadded v2.4
K31 + + RSP -Dispense History ResponseRSP - Antwoord verstrekkingshistorieadded v2.5.1
K32 + + Find Candidates including Visit Information ResponseAntwoord zoek kandidaten inclusief bezoekinformatieadded v2.7
M01 + + MFN/MFK - Master file not otherwise specifiedMFN/MFK - Masterbestand - niet anderszins gespecificeerdadded v2.2
M02 + + MFN/MFK - Master file - staff practitionerMFN/MFK - Masterbestand - Medewerker zorgverleneradded v2.2
M03 + + MFN/MFK - Master file - test/observationMFN/MFK - Masterbestand - Test/observatieadded v2.2
M04 + + MFN/MFK - Master files charge descriptionMFN/MFK - Masterbestand - Prijsomschrijvingadded v2.3
M05 + + MFN/MFK - Patient location master fileMFN/MFK - Masterbestand - Patiëntlocatieadded v2.3
M06 + + MFN/MFK - Clinical study with phases and schedules master fileMFN/MFK - Masterbestand - Klinische studie met fases en planningadded v2.3
M07 + + MFN/MFK - Clinical study without phases but with schedules master fileMFN/MFK - Masterbestand - Klinische studie zonder fases maar met planningadded v2.3
M08 + + MFN/MFK - Test/observation (numeric) master fileMFN/MFK - Masterbestand - Test/observatie (numeriek)added v2.3
M09 + + MFN/MFK - Test/observation (categorical) master fileMFN/MFK - Masterbestand - Test/observatie (categorieën)added v2.3
M10 + + MFN/MFK - Test /observation batteries master fileMFN/MFK - Masterbestand - Test/observatie batteriesadded v2.3
M11 + + MFN/MFK - Test/calculated observations master fileMFN/MFK - Masterbestand - Test/berekende observatiesadded v2.3
M12 + + MFN/MFK - Master file notification messageMFN/MFK - Masterbestand - Notificatieberichtadded v2.4
M13 + + MFN/MFK - Master file notification - generalMFN/MFK - Masterbestand - Notificatiebericht algemeenadded v2.5
M14 + + MFN/MFK - Master file notification - site definedMFN/MFK - Masterbestand - Notificatiebericht lokale overeenkomstadded v2.5
M15 + + MFN/MFK - Inventory item master file notificationMFN/MFK - Masterbestand voorraaditems - Notificatieberichtadded v2.5
M16 + + MFN/MFK - Master File Notification Inventory Item EnhancedMFN/MFK - Masterbestand voorraaditems - Notificatiebericht verbeterdadded v2.6
M17 + + DRG Master File MessageDRG - Masterbestand berichtadded v2.6
N01 + + NMQ/NMR - Application management query messageNMQ/NMR - Query Applicatiemanagementadded v2.4
N02 + + NMD/ACK - Application management data message (unsolicited)NMD/NMR - Applicatiemanagementgegevens (ongevraagd)added v2.4
O01 + + ORM - Order message (also RDE, RDS, RGV, RAS)ORM - Aanvraagbericht (ook RDE, RDS, RGV, RAS)from v2.1
O02 + + ORR - Order response (also RRE, RRD, RRG, RRA)ORR - Antwoord aanvraagbericht (ook RRE, RRD, RRG, RRA)from v2.1
O03 + + OMD - Diet orderOMD - Maaltijdaanvraagadded v2.4
O04 + + ORD - Diet order acknowledgmentORD - Bevestiging maaltijdaanvraagadded v2.4
O05 + + OMS - Stock requisition orderOMS - Aanvraag aanvulling voorraadadded v2.4
O06 + + ORS - Stock requisition acknowledgmentORS - Bevestiging aanvraag aanvulling voorraadadded v2.4
O07 + + OMN - Non-stock requisition orderOMN - Aanvraag aanvulling niet-voorraadadded v2.4
O08 + + ORN - Non-stock requisition acknowledgmentORN - Bevestiging aanvraag aanvulling niet-voorraadadded v2.4
O09 + + OMP - Pharmacy/treatment orderOMP - Medicatie/therapie aanvraagadded v2.4
O10 + + ORP - Pharmacy/treatment order acknowledgmentORP - Bevestiging medicatie/therapie aanvraagadded v2.4
O11 + + RDE - Pharmacy/treatment encoded orderRDE - Gecodeerde aanvraag medicatie/therapieadded v2.4
O12 + + RRE - Pharmacy/treatment encoded order acknowledgmentRRE - Bevestiging gecodeerde aanvraag medicatie/therapieadded v2.4
O13 + + RDS - Pharmacy/treatment dispenseRDS - Medicatie/therapieverstrekkingadded v2.4
O14 + + RRD - Pharmacy/treatment dispense acknowledgmentRRD - Bevestiging medicatie/therapieverstrekkingadded v2.4
O15 + + RGV - Pharmacy/treatment giveRGV - Medicatie/therapie gegevenadded v2.4
O16 + + RRG - Pharmacy/treatment give acknowledgmentRRG - Bevestiging medicatie/therapie gegevenadded v2.4
O17 + + RAS - Pharmacy/treatment administrationRAS - Medicatie/therapietoedieningadded v2.4
O18 + + RRA - Pharmacy/treatment administration acknowledgmentRRA - Bevestiging medicatie/therapietoedieningadded v2.4
O19 + + OMG - General clinical orderOMG - Algemene klinische aanvraagadded v2.4
O20 + + ORG/ORL - General clinical order responseORG/ORL - Antwoord algemene klinische aanvraagadded v2.4
O21 + + OML - Laboratory orderOML - Laboratoriumaanvraagadded v2.4
O22 + + ORL - General laboratory order response message to any OMLORL - Algemeen laboratoriumaanvraag antwoordbericht op alle OMLadded v2.5
O23 + + OMI - Imaging orderOMI - Beeldaanvraagadded v2.5
O24 + + ORI - Imaging order response message to any OMIORI - Beeldaanvraag antwoordbericht op alle OMIadded v2.5
O25 + + RDE - Pharmacy/treatment refill authorization requestRDE - Autorisatieverzoek voor aanvulling medicatie/therapieadded v2.5
O26 + + RRE - Pharmacy/Treatment Refill Authorization AcknowledgementRRE - Antwoord autorisatieverzoek voor aanvulling medicatie/therapieadded v2.5
O27 + + OMB - Blood product orderOMB - Bloedproductaanvraagadded v2.5
O28 + + ORB - Blood product order acknowledgmentORB - Antwoordbericht bloedproductaanvraagadded v2.5
O29 + + BPS - Blood product dispense statusBPS - Bloedproduct verstrekkingstatusadded v2.5
O30 + + BRP - Blood product dispense status acknowledgmentBRP - Antwoordbericht bloedproduct verstrekkingstatusadded v2.5
O31 + + BTS - Blood product transfusion/dispositionBTS - Bloedproduct transfusie/dispositieadded v2.5
O32 + + BRT - Blood product transfusion/disposition acknowledgmentBRT - Antwoordbericht bloedproduct transfusie/dispositieadded v2.5
O33 + + OML - Laboratory order for multiple orders related to a single specimenOML - Laboratoriumaanvraag voor meerdere aanvragen met betrekking tot één monsteradded v2.5
O34 + + ORL - Laboratory order response message to a multiple order related to single specimen OMLORL - Antwoordbericht laboratoriumaanvraag voor meerdere aanvragen met betrekking tot één monster OMLadded v2.5
O35 + + OML - Laboratory order for multiple orders related to a single container of a specimenOML - Laboratoriumaanvraag voor meerdere aanvragen met betrekking tot één container van een monster OMLadded v2.5
O36 + + ORL - Laboratory order response message to a single container of a specimen OMLORL - Antwoordbericht laboratoriumaanvraag voor meerdere aanvragen met betrekking tot één container van een monster OMLadded v2.5
O37 + + OPL - Population/Location-Based Laboratory Order MessageOPL - Populatie/locatie-gebaseerd laboratoriumaanvraag berichtadded v2.6
O38 + + OPR - Population/Location-Based Laboratory Order Acknowledgment MessageOPR - Bevestiging populatie/locatie-gebaseerd laboratoriumaanvraag berichtadded v2.6
O39 + + Specimen shipment centric laboratory orderMonsterverzending-georiënteerde laboratoriumaanvraagadded v2.7
O40 + + Specimen Shipment Centric Laboratory Order Acknowledgment MessageAntwoord monsterverzending-georiënteerde laboratoriumaanvraagadded v2.7
P01 + + BAR/ACK - Add patient accountsBAR/ACK - Voeg patiëntaccounts toefrom v2.1
P02 + + BAR/ACK - Purge patient accountsBAR/ACK - Verwijder patiëntaccountsfrom v2.1
P03 + + DFT/ACK - Post detail financial transactionDetails financiële verrichtingfrom v2.1
P04 + + QRY/DSP - Generate bill and A/R statementsQRY/DSP - Maak factuur en verkregen dienstenfrom v2.1
P05 + + BAR/ACK - Update accountBAR/ACK - Update accountadded v2.3
P06 + + BAR/ACK - End accountBAR/ACK - Beëindig accountadded v2.3
P07 + + PEX - Unsolicited initial individual product experience reportPEX - Ongevraagd initieel rapport individueel productervaringenadded v2.3
P08 + + PEX - Unsolicited update individual product experience reportPEX - Ongevraagde update rapport individueel productervaringenadded v2.3
P09 + + SUR - Summary product experience reportSUR - Samenvatting rapport productervaringenadded v2.3
P10 + + BAR/ACK -Transmit Ambulatory Payment Classification(APC)BAR/ACK - Verstuur Ambulatory Payment Classification (APC)added v2.4
P11 + + DFT/ACK - Post Detail Financial Transactions - NewDFT/ACK - Verstuur financiële verrichtingen - Nieuwadded v2.5
P12 + + BAR/ACK - Update Diagnosis/ProcedureBAR/ACK - Update diagnose/ingreepadded v2.5
PC1 + + PPR - PC/ problem addPPR - PC/Voeg probleem toeadded v2.3
PC2 + + PPR - PC/ problem updatePPR - PC/Update probleemadded v2.3
PC3 + + PPR - PC/ problem deletePPR - PC/Verwijder probleemadded v2.3
PC4 + + QRY - PC/ problem queryPPR - PC/Query problemenadded v2.3
PC5 + + PRR - PC/ problem responsePPR - PC/Antwoord problemenadded v2.3
PC6 + + PGL - PC/ goal addPGL - PC/Voeg doel toeadded v2.3
PC7 + + PGL - PC/ goal updatePGL - PC/Update doeladded v2.3
PC8 + + PGL - PC/ goal deletePGL - PC/Verwijder doeladded v2.3
PC9 + + QRY - PC/ goal queryPGL - PC/Query doelenadded v2.3
PCA + + PPV - PC/ goal responsePPV - PC/Antwoord doelenadded v2.3
PCB + + PPP - PC/ pathway (problem-oriented) addPPP - PC/Voeg zorgpad toe (probleemgeoriënteerd)added v2.3
PCC + + PPP - PC/ pathway (problem-oriented) updatePPP - PC/Update zorgpad (probleemgeoriënteerd)added v2.3
PCD + + PPP - PC/ pathway (problem-oriented) deletePPP - PC/Verwijder zorgpad (probleemgeoriënteerd)added v2.3
PCE + + QRY - PC/ pathway (problem-oriented) queryQRY - PC/Query zorgpaden (probleemgeoriënteerd)added v2.3
PCF + + PTR - PC/ pathway (problem-oriented) query responsePTR - PC/Antwoord zorgpaden (probleemgeoriënteerd)added v2.3
PCG + + PPG - PC/ pathway (goal-oriented) addPPG - PC/Voeg zorgpad toe (doelgeoriënteerd)added v2.3
PCH + + PPG - PC/ pathway (goal-oriented) updatePPG - PC/Update zorgpad (doelgeoriënteerd)added v2.3
PCJ + + PPG - PC/ pathway (goal-oriented) deletePPG - PC/Verwijder zorgpad (doelgeoriënteerd)added v2.3
PCK + + QRY - PC/ pathway (goal-oriented) queryQRY - PC/Query zorgpaden (doelgeoriënteerd)added v2.3
PCL + + PPT - PC/ pathway (goal-oriented) query responsePPT - PC/Antwoord zorgpaden (doelgeoriënteerd)added v2.3
Q01 + + QRY/DSR - Query sent for immediate responseQRY/DSR - Query verzonden voor directe beantwoordingfrom v2.1
Q02 + + QRY/QCK - Query sent for deferred responseQRY/QCK - Query verzonden voor indirecte beantwoordingfrom v2.1
Q03 + + DSR/ACK - Deferred response to a queryDSR/ACK - Indirect antwoord op een queryadded v2.2
Q04 + + EQQ - Embedded query language queryEQQ - Embedded query language queryadded v2.3.1, removed after v2.5.1
Q05 + + UDM/ACK - Unsolicited display update messageUDM/ACK - Ongevraagd bericht voor weergave updateadded v2.2
Q06 + + OSQ/OSR - Query for order statusOSQ/OSR - Query om aanvraagstatusadded v2.3
Q07 + + VQQ - Virtual table queryVQQ - Virtuele tabel queryadded v2.3.1, removed after v2.5.1
Q08 + + SPQ - Stored procedure requestSPQ - Verzoek stored procedureadded v2.3.1, removed after v2.5.1
Q09 + + RQQ - event replay queryRQQ - Query event replayadded v2.3.1, removed after v2.5.1
Q11 + + QBP - Query by parameter requesting an RSP segment pattern responseQBP - Query op parameter met als antwoord een RSP-segmentpatroonadded v2.5
Q13 + + QBP - Query by parameter requesting an RTB - tabular responseQBP - Query op parameter met als antwoord een RTB-tabelpatroonadded v2.5
Q15 + + QBP - Query by parameter requesting an RDY display responseQBP - Query op parameter met als antwoord een RDY-weergavepatroonadded v2.5
Q16 + + QSB - Create subscriptionQSB - Maak abonnementadded v2.4
Q17 + + QVR - Query for previous eventsQVR - Query op vorige eventsadded v2.4
Q21 + + QBP - Get person demographicsQBP - Query persoonsgegevensadded v2.4
Q22 + + QBP - Find candidatesQBP - Zoek kandidatenadded v2.4
Q23 + + QBP - Get corresponding identifiersQBP - Query bijbehorende ID'sadded v2.4
Q24 + + QBP - Allocate identifiersQBP - Alloceer ID'sadded v2.4
Q25 + + QBP - Personnel Information by Segment QueryQBP - Query personeelinformatie op segmentadded v2.4
Q26 + + ROR - Pharmacy/treatment order responseROR - Antwoordbericht aanvraag medicatie/therapieadded v2.5
Q27 + + RAR - Pharmacy/treatment administration informationRAR - Medicatie/therapie toedieningsinformatieadded v2.5
Q28 + + RDR - Pharmacy/treatment dispense informationRDR - Medicatie/therapie verstrekkingsinformatieadded v2.5
Q29 + + RER - Pharmacy/treatment encoded order informationRER - Medicatie/therapie gecodeerde aanvraag-informatieadded v2.5
Q30 + + RGR - Pharmacy/treatment dose informationRER - Medicatie/therapie doseringsinformatieadded v2.5
Q31 + + QBP Query Dispense historyQBP - Query verstrekkingshistorieadded v2.5.1
Q32 + + Find Candidates including Visit InformationZoek kandidaten inclusief bezoekinformatieadded v2.7
R01 + + ORU/ACK - Unsolicited transmission of an observation messageORU/ACK - Ongevraagde verzending van een observatieberichtfrom v2.1
R02 + + QRY - Query for results of observationQuery op observatieresultatenadded v2.2
R03 + + QRY/DSR Display-oriented results, query/unsol. update (for backward compatibility only) (Replaced by Q05)QRY/DSR - Weergave-georiënteerde resultaten, query/ongevr. update (voor backward compatibiliteit) (Vervangen door Q05)from v2.1, removed after v2.5.1
R04 + + ORF - Response to query; transmission of requested observationORF - Antwoord op query; verzending van aangevraagde observatieadded v2.2
R05 + + QRY/DSR - query for display results (See Q01)QRY/DSR - Query op weergave resultaten (zie Q01)added v2.3, removed after v2.4
R06 + + UDM - unsolicited update/display results (See Q05)UDM - Ongevraagde update/weergave resultaten (zie Q05)added v2.3, removed after v2.4
R07 + + EDR - Enhanced Display ResponseEDR - Antwoord verrijkte weergaveadded v2.3.1, removed after v2.5.1
R08 + + TBR - Tabular Data ResponseTBR - Antwoord gegevens in tabelvormadded v2.3.1, removed after v2.5.1
R09 + + ERP - Event Replay ResponseERP - Antwoord event replayadded v2.3.1, removed after v2.5.1
R0R + + R0R - Pharmacy prescription order query responseR0R - Medicatievoorschriftaanvraag query antwoord added v2.3.1, removed after v2.3.1
R21 + + OUL - Unsolicited laboratory observationOUL - Ongevraagde laboratoriumobservatieadded v2.4
R22 + + OUL - Unsolicited Specimen Oriented Observation MessageOUL - Ongevraagde monster-georiënteerde observatieadded v2.5
R23 + + OUL - Unsolicited Specimen Container Oriented Observation MessageOUL - Ongevraagde monstercontainer-georiënteerde observatieadded v2.5
R24 + + OUL - Unsolicited Order Oriented Observation MessageOUL - Ongevraagde aanvraag-georiënteerde observatieadded v2.5
R25 + + OPU - Unsolicited Population/Location-Based Laboratory Observation MessageOPU - Ongevraagde populatie/locatie-gebaseerd laboratoriumobservatieadded v2.6
R26 + + OSM - Unsolicited Specimen Shipment Manifest MessageOSM - Ongevraagde monsterverzending manifestadded v2.7
R30 + + ORU - Unsolicited Point-Of-Care Observation Message Without Existing Order - Place An OrderORU - Ongevraagde Point-Of-Care observatie zonder voorafgaande aanvraag - Plaats een aanvraagadded v2.5
R31 + + ORU - Unsolicited New Point-Of-Care Observation Message - Search For An OrderORU - Ongevraagde nieuwe Point-Of-Care observatie - Zoek een aanvraagadded v2.5
R32 + + ORU - Unsolicited Pre-Ordered Point-Of-Care ObservationORU - Ongevraagde pre-ordered Point-Of-Care observatieadded v2.5
R33 + + ORA - Observation Report AcknowledgementORA - Bevestiging observatieverslagadded v2.7
RAR + + RAR - Pharmacy administration information query responseRAR - Medicatietoediening-informatie query antwoordadded v2.3, removed after v2.4
RDR + + RDR - Pharmacy dispense information query responseRDR - Medicatieverstrekking-informatie query antwoordadded v2.3, removed after v2.4
RER + + RER - Pharmacy encoded order information query responseRER - Medicatie gecodeerde aanvraaginformatie query antwoordadded v2.3, removed after v2.4
RGR + + RGR - Pharmacy dose information query responseRGR - Medicatiedosering-informatie query antwoordadded v2.3, removed after v2.4
ROR + + ROR - Pharmacy prescription order query responseROR - Medicatievoorschrift aanvraag query antwoordadded v2.3
S01 + + SRM/SRR - Request new appointment bookingSRM/SRR - Verzoek boeken nieuwe afspraakadded v2.3
S02 + + SRM/SRR - Request appointment reschedulingSRM/SRR - Verzoek verzetten afspraakadded v2.3
S03 + + SRM/SRR - Request appointment modificationSRM/SRR - Verzoek aanpassen afspraakadded v2.3
S04 + + SRM/SRR - Request appointment cancellationSRM/SRR - Verzoek annuleren afspraakadded v2.3
S05 + + SRM/SRR - Request appointment discontinuationSRM/SRR - Verzoek stopzetten afspraakadded v2.3
S06 + + SRM/SRR - Request appointment deletionSRM/SRR - Verzoek verwijderen afspraakadded v2.3
S07 + + SRM/SRR - Request addition of service/resource on appointmentSRM/SRR - Verzoek toevoegen dienst/resource bij afspraakadded v2.3
S08 + + SRM/SRR - Request modification of service/resource on appointmentSRM/SRR - Verzoek wijzigen dienst/resource bij afspraakadded v2.3
S09 + + SRM/SRR - Request cancellation of service/resource on appointmentSRM/SRR - Verzoek annuleren dienst/resource bij afspraakadded v2.3
S10 + + SRM/SRR - Request discontinuation of service/resource on appointmentSRM/SRR - Verzoek stopzetten dienst/resource bij afspraakadded v2.3
S11 + + SRM/SRR - Request deletion of service/resource on appointmentSRM/SRR - Verzoek verwijderen dienst/resource bij afspraakadded v2.3
S12 + + SIU/ACK - Notification of new appointment bookingSIU/ACK - Notificatie van nieuw geboekte afspraakadded v2.3
S13 + + SIU/ACK - Notification of appointment reschedulingSIU/ACK - Notificatie van verzetten afspraakadded v2.3
S14 + + SIU/ACK - Notification of appointment modificationSIU/ACK - Notificatie van wijzigen afspraakadded v2.3
S15 + + SIU/ACK - Notification of appointment cancellationSIU/ACK - Notificatie van annuleren afspraakadded v2.3
S16 + + SIU/ACK - Notification of appointment discontinuationSIU/ACK - Notificatie van stopzetten afspraakadded v2.3
S17 + + SIU/ACK - Notification of appointment deletionSIU/ACK - Notificatie van verwijderen afspraakadded v2.3
S18 + + SIU/ACK - Notification of addition of service/resource on appointmentSIU/ACK - Notificatie van toevoegen dienst/resource bij afspraakadded v2.3
S19 + + SIU/ACK - Notification of modification of service/resource on appointmentSIU/ACK - Notificatie van wijzigen dienst/resource bij afspraakadded v2.3
S20 + + SIU/ACK - Notification of cancellation of service/resource on appointmentSIU/ACK - Notificatie van annuleren dienst/resource bij afspraakadded v2.3
S21 + + SIU/ACK - Notification of discontinuation of service/resource on appointmentSIU/ACK - Notificatie van stopzetten dienst/resource bij afspraakadded v2.3
S22 + + SIU/ACK - Notification of deletion of service/resource on appointmentSIU/ACK - Notificatie van verwijderen dienst/resource bij afspraakadded v2.3
S23 + + SIU/ACK - Notification of blocked schedule time slot(s)SIU/ACK - Notificatie van geblokkeerde agenda tijdblok(ken)added v2.3
S24 + + SIU/ACK - Notification of opened ("unblocked") schedule time slot(s)SIU/ACK - Notificatie van open (niet-geblokkeerde) agenda tijdblok(ken)added v2.3
S25 + + SQM/SQR - Schedule query message and responseSQM/SQR - Query agenda-informatie en antwoordadded v2.3
S26 + + SIU/ACK Notification that patient did not show up for schedule appointmentSIU/ACK - Notificatie dat patiënt niet is komen opdagen voor agenda-afspraakadded v2.3
S27 + + SIU/ACK - Broadcast Notification of Scheduled AppointmentsSIU/ACK - Broadcast notificatie van geplande afsprakenadded v2.7
S28 + + SLR/SLS - Request new sterilization lotSLR/SLS - Verzoek nieuwe lot sterilisatieadded v2.6
S29 + + SLR/SLS - Request Sterilization lot deletionSLR/SLS - Verzoek verwijderen lot sterilisatieadded v2.6
S30 + + STI/STS - Request itemSTI/STS - Verzoek itemadded v2.6
S31 + + SDR/SDS - Request anti-microbial device dataSDR/SDS - Verzoek anti-microbisch apparaatgegevensadded v2.6
S32 + + SMD/SMS - Request anti-microbial device cycle dataSMD/SMS - Verzoek anti-microbisch apparaatomloopgegevensadded v2.6
S33 + + STC/ACK - Notification of sterilization configurationSTC/ACK - Notificatie van sterilisatie configuratieadded v2.6
S34 + + SLN/ACK - Notification of sterilization lotSLN/ACK - Notificatie van sterilisatie lotadded v2.6
S35 + + SLN/ACK - Notification of sterilization lot deletionSLN/ACK - Notificatie verwijdering van sterilisatie lotadded v2.6
S36 + + SDN/ACK - Notification of anti-microbial device dataSDN/ACK - Notificatie anti-microbisch apparaatgegevensadded v2.6
S37 + + SCN/ACK - Notification of anti-microbial device cycle dataSDN/ACK - Notificatie anti-microbisch apparaatomloopgegevensadded v2.6
T01 + + MDM/ACK - Original document notificationMDM/ACK - Notificatie origineel documentadded v2.3
T02 + + MDM/ACK - Original document notification and contentMDM/ACK - Notificatie origineel document met inhoudadded v2.3
T03 + + MDM/ACK - Document status change notificationMDM/ACK - Notificatie wijzigen documentstatusadded v2.3
T04 + + MDM/ACK - Document status change notification and contentMDM/ACK - Notificatie wijzigen documentstatus met inhoudadded v2.3
T05 + + MDM/ACK - Document addendum notificationMDM/ACK - Notificatie documentaddendumadded v2.3
T06 + + MDM/ACK - Document addendum notification and contentMDM/ACK - Notificatie documentaddendum met inhoudadded v2.3
T07 + + MDM/ACK - Document edit notificationMDM/ACK - Notificatie wijziging documentadded v2.3
T08 + + MDM/ACK - Document edit notification and contentMDM/ACK - Notificatie wijziging document met inhoudadded v2.3
T09 + + MDM/ACK - Document replacement notificationMDM/ACK - Notificatie vervanging documentadded v2.3
T10 + + MDM/ACK - Document replacement notification and contentMDM/ACK - Notificatie vervanging document met inhoudadded v2.3
T11 + + MDM/ACK - Document cancel notificationMDM/ACK - Notificatie annuleren documentadded v2.3
T12 + + QRY/DOC - Document queryQRY/DOC - Query documentenadded v2.3
U01 + + ESU/ACK - Automated equipment status updateESU/ACK - Geautomatiseerde materiaal status updateadded v2.4
U02 + + ESR/ACK - Automated equipment status requestESR/ACK - Geautomatiseerde materiaal status verzoekadded v2.4
U03 + + SSU/ACK - Specimen status updateSSU/ACK - Monster status updateadded v2.4
U04 + + SSR/ACK - specimen status requestSSR/ACK - Monster status verzoekadded v2.4
U05 + + INU/ACK - Automated equipment inventory updateINU/ACK - Geautomatiseerde materiaal voorraad updateadded v2.4
U06 + + INR/ACK - Automated equipment inventory requestINR/ACK - Geautomatiseerde materiaal voorraad verzoekadded v2.4
U07 + + EAC/ACK - Automated equipment commandEAC/ACK - Geautomatiseerde materiaal commandoadded v2.4
U08 + + EAR/ACK - Automated equipment responseEAR/ACK - Geautomatiseerde materiaal antwoordadded v2.4
U09 + + EAN/ACK - Automated equipment notificationEAN/ACK - Geautomatiseerde materiaal notificatieadded v2.4
U10 + + TCU/ACK - Automated equipment test code settings updateTCU/ACK - Geautomatiseerde materiaal testcode instellingen updateadded v2.4
U11 + + TCR/ACK - Automated equipment test code settings requestTCR/ACK - Geautomatiseerde materiaal testcode instellingen verzoekadded v2.4
U12 + + LSU/ACK - Automated equipment log/service updateLSU/ACK - Geautomatiseerde materiaal log/service updateadded v2.4
U13 + + LSR/ACK - Automated equipment log/service requestLSR/ACK - Geautomatiseerde materiaal log/service verzoekadded v2.4
V01 + + VXQ - Query for vaccination recordVQX - Query op vaccinatiegegevensadded v2.3
V02 + + VXX - Response to vaccination query returning multiple PID matchesVXX - Antwoord op query vaccinatiegegevens met meerdere PID'sadded v2.3
V03 + + VXR - Vaccination record responseVXR - Antwoord op query vaccinatiegegevensadded v2.3
V04 + + VXU - Unsolicited vaccination record updateVXU - Ongevraagde update vaccinatiegegevensadded v2.3
Varies + + MFQ/MFR - Master files query (use event same as asking for e.g., M05 - location)MFQ/MFR - Masterbestanden query (gebruik event zoals bij vragen naar bijv. M05 - locatie)added v2.4
W01 + + ORU - Waveform result, unsolicited transmission of requested informationORU - Waveformresultaat, ongevraagde verzending van aangevraagde informatieadded v2.3
W02 + + QRF - Waveform result, response to queryQRF - Waveformresultaat, antwoord op queryadded v2.3
X01 + + PEX - Product experiencePEX - Productervaringadded v2.3, removed after v2.3
Z73 + + + added v2.7
Z74 + + + added v2.7
Z75 + + + added v2.7
Z76 + + + added v2.7
Z77 + + + added v2.7
Z78 + + + added v2.7
Z79 + + + added v2.7
Z80 + + + added v2.7
Z81 + + + added v2.7
Z82 + + + added v2.7
Z83 + + + added v2.7
Z84 + + + added v2.7
Z85 + + + added v2.7
Z86 + + + added v2.7
Z87 + + + added v2.7
Z88 + + + added v2.7
Z89 + + + added v2.7
Z90 + + + added v2.7
Z91 + + + added v2.7
Z92 + + + added v2.7
Z93 + + + added v2.7
Z94 + + + added v2.7
Z95 + + + added v2.7
Z96 + + + added v2.7
Z97 + + + added v2.7
Z98 + + + added v2.7
Z99 + + + added v2.7
varies + + MFQ/MFR - Master files query (use event same as asking for e.g., M05 - location)MFQ/MFR - Query masterbestanden (gebruik event gelijk aan vraag naar bijv. M05 - locatie)added v2.3, removed after v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Patient Class

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
B + + Obstetricsadded v2.2
C + + Commercial Accountadded v2.4
E + + Emergencyfrom v2.1
I + + Inpatientfrom v2.1
N + + Not Applicableadded v2.4
O + + Outpatientfrom v2.1
P + + Preadmitfrom v2.1
R + + Recurring patientadded v2.2
TK + + + added v2.2, removed after v2.2
TS + + teilstationäre Behandlungadded v2.2, removed after v2.2
U + + Unknownadded v2.4
VS + + vollstationäre Behandlungadded v2.2, removed after v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

RELIGION

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Atheistfrom v2.1
B + + Baptistfrom v2.1
C + + Catholicfrom v2.1
E + + Episcopalianfrom v2.1
J + + Judaismfrom v2.1
L + + Lutheranfrom v2.1
M + + Church of Latter Day Saints (Mormon)from v2.1
N + + Hindufrom v2.1
P + + Protestantfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Religion

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ABC + + Christian: American Baptist Churchfrom v2.4
AGN + + Agnosticfrom v2.4
AME + + Christian: African Methodist Episcopal Zionfrom v2.4
AMT + + Christian: African Methodist Episcopalfrom v2.4
ANG + + Christian: Anglicanfrom v2.4
AOG + + Christian: Assembly of Godfrom v2.4
ATH + + Atheistfrom v2.4
BAH + + Baha'ifrom v2.4
BAP + + Christian: Baptistfrom v2.4
BMA + + Buddhist: Mahayanafrom v2.4
BOT + + Buddhist: Otherfrom v2.4
BTA + + Buddhist: Tantrayanafrom v2.4
BTH + + Buddhist: Theravadafrom v2.4
BUD + + Buddhistfrom v2.4
CAT + + Christian: Roman Catholicfrom v2.4
CFR + + Chinese Folk Religionistfrom v2.4
CHR + + Christianfrom v2.4
CHS + + Christian: Christian Sciencefrom v2.4
CMA + + Christian: Christian Missionary Alliancefrom v2.4
CNF + + Confucianfrom v2.4
COC + + Christian: Church of Christfrom v2.4
COG + + Christian: Church of Godfrom v2.4
COI + + Christian: Church of God in Christfrom v2.4
COL + + Christian: Congregationalfrom v2.4
COM + + Christian: Communityfrom v2.4
COP + + Christian: Other Pentecostalfrom v2.4
COT + + Christian: Otherfrom v2.4
CRR + + Christian: Christian Rerformedfrom v2.4
EOT + + Christian: Eastern Orthodoxfrom v2.4
EPI + + Christian: Episcopalianfrom v2.4
ERL + + Ethnic Religionistfrom v2.4
EVC + + Christian: Evangelical Churchfrom v2.4
FRQ + + Christian: Friendsfrom v2.4
FWB + + Christian: Free Will Baptistfrom v2.4
GRE + + Christian: Greek Orthodoxfrom v2.4
HIN + + Hindufrom v2.4
HOT + + Hindu: Otherfrom v2.4
HSH + + Hindu: Shaivitesfrom v2.4
HVA + + Hindu: Vaishnavitesfrom v2.4
JAI + + Jainfrom v2.4
JCO + + Jewish: Conservativefrom v2.4
JEW + + Jewishfrom v2.4
JOR + + Jewish: Orthodoxfrom v2.4
JOT + + Jewish: Otherfrom v2.4
JRC + + Jewish: Reconstructionistfrom v2.4
JRF + + Jewish: Reformfrom v2.4
JRN + + Jewish: Renewalfrom v2.4
JWN + + Christian: Jehovah's Witnessfrom v2.4
LMS + + Christian: Lutheran Missouri Synodfrom v2.4
LUT + + Christian: Lutheranfrom v2.4
MEN + + Christian: Mennonitefrom v2.4
MET + + Christian: Methodistfrom v2.4
MOM + + Christian: Latter-day Saintsfrom v2.4
MOS + + Muslimfrom v2.4
MOT + + Muslim: Otherfrom v2.4
MSH + + Muslim: Shiitefrom v2.4
MSU + + Muslim: Sunnifrom v2.4
NAM + + Native Americanfrom v2.4
NAZ + + Christian: Church of the Nazarenefrom v2.4
NOE + + Nonreligiousfrom v2.4
NRL + + New Religionistfrom v2.4
ORT + + Christian: Orthodoxfrom v2.4
OTH + + Otherfrom v2.4
PEN + + Christian: Pentecostalfrom v2.4
PRC + + Christian: Other Protestantfrom v2.4
PRE + + Christian: Presbyterianfrom v2.4
PRO + + Christian: Protestantfrom v2.4
QUA + + Christian: Friendsfrom v2.4
REC + + Christian: Rerformed Churchfrom v2.4
REO + + Christian: Reorganized Church of Jesus Christ-LDSfrom v2.4
SAA + + Christian: Salvation Armyfrom v2.4
SEV + + Christian: Seventh Day Adventistfrom v2.4
SHN + + Shintoistfrom v2.4
SIK + + Sikhfrom v2.4
SOU + + Christian: Southern Baptistfrom v2.4
SPI + + Spiritistfrom v2.4
UCC + + Christian: United Church of Christfrom v2.4
UMD + + Christian: United Methodistfrom v2.4
UNI + + Christian: Unitarianfrom v2.4
UNU + + Christian: Unitarian Universalistfrom v2.4
VAR + + Unknownfrom v2.4
WES + + Christian: Wesleyanfrom v2.4
WMC + + Christian: Wesleyan Methodistfrom v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Admission Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Accidentfrom v2.1
C + + Electiveadded v2.4
E + + Emergencyfrom v2.1
L + + Labor and Deliveryfrom v2.1
N + + Newborn (Birth in healthcare facility)added v2.4
R + + Routinefrom v2.1
U + + Urgentadded v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Priority

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + As soon as possible (a priority lower than stat)from v2.1
P + + Preoperative (to be done prior to surgery)added v2.2
R + + Routineadded v2.2
S + + Stat (do immediately)from v2.1
T + + Timing critical (do as near as possible to requested time)from v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Order status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Some, but not all, results availableadded v2.3
CA + + Order was canceledfrom v2.1
CM + + Order is completedfrom v2.1
DC + + Order was discontinuedfrom v2.1
ER + + Error, order not foundfrom v2.1
HD + + Order is on holdfrom v2.1
IP + + In process, unspecifiedfrom v2.1
RP + + Order has been replacedadded v2.2
SC + + In process, scheduledfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

What subject filter

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ADV + + Advice/diagnosisfrom v2.1, removed after v2.6
ANU + + Nursing unit lookup (returns patients in beds, excluding empty beds)from v2.1, removed after v2.6
APA + + Account number query, return matching visitadded v2.2, removed after v2.6
APM + + Medical record number query, returns visits for a medical record numberadded v2.2, removed after v2.6
APN + + Patient name lookupfrom v2.1, removed after v2.6
APP + + Physician lookupadded v2.2, removed after v2.6
ARN + + Nursing unit lookup (returns patients in beds, including empty beds)added v2.2, removed after v2.6
CAN + + Cancel. Used to cancel a queryfrom v2.1, removed after v2.6
DEM + + Demographicsfrom v2.1, removed after v2.6
FIN + + Financialadded v2.2, removed after v2.6
GID + + Generate new identifieradded v2.4, removed after v2.6
GOL + + Goalsadded v2.3, removed after v2.6
MFQ + + Master file queryadded v2.2, removed after v2.2
MRI + + Most recent inpatientfrom v2.1, removed after v2.6
MRO + + Most recent outpatientfrom v2.1, removed after v2.6
NCK + + Network clockadded v2.2, removed after v2.6
NSC + + Network status changeadded v2.2, removed after v2.6
NST + + Network statisticadded v2.2, removed after v2.6
ORD + + Orderadded v2.2, removed after v2.6
OTH + + Otherfrom v2.1, removed after v2.6
PRB + + Problemsadded v2.3, removed after v2.6
PRO + + Procedurefrom v2.1, removed after v2.6
RAR + + Pharmacy administration informationadded v2.2, removed after v2.6
RDR + + Pharmacy dispense informationadded v2.2, removed after v2.6
RER + + Pharmacy encoded order informationadded v2.2, removed after v2.6
RES + + Resultfrom v2.1, removed after v2.6
RGR + + Pharmacy give informationadded v2.2, removed after v2.6
ROR + + Pharmacy prescription informationadded v2.2, removed after v2.6
SAL + + All schedule related information, including open slots, booked slots, blocked slotsadded v2.3.1, removed after v2.6
SBK + + Booked slots on the identified scheduleadded v2.3.1, removed after v2.6
SBL + + Blocked slots on the identified scheduleadded v2.3.1, removed after v2.6
SOF + + First open slot on the identified schedule after the start date/tiemadded v2.4, removed after v2.6
SOP + + Open slots on the identified schedule between the begin and end of the start date/time rangeadded v2.3.1, removed after v2.6
SSA + + Time slots available for a single appointmentadded v2.3.1, removed after v2.6
SSR + + Time slots available for a recurring appointmentadded v2.3.1, removed after v2.6
STA + + Statusfrom v2.1, removed after v2.6
VXI + + Vaccine Informationadded v2.3, removed after v2.6
XID + + Get cross-referenced identifiersadded v2.4, removed after v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Diagnosis Type

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Admittingadded v2.3
F + + Finaladded v2.3
W + + Workingadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Check Digit Scheme

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
BCV + + Bank Card Validation Numberadded v2.6
ISO + + ISO 7064: 1983added v2.3.1
M10 + + Mod 10 algorithmadded v2.2
M11 + + Mod 11 algorithmfrom v2.1
NPI + + Check digit algorithm in the US National Provider Identifieradded v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Relationship

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ASC + + Associateadded v2.4
BRO + + Brotheradded v2.4
CGV + + Care giveradded v2.4
CHD + + Childadded v2.4
DEP + + Handicapped dependentadded v2.4
DOM + + Life partneradded v2.4
EMC + + Emergency contactadded v2.4
EME + + Employeeadded v2.4
EMR + + Employeradded v2.4
EXF + + Extended familyadded v2.4
FCH + + Foster childadded v2.4
FND + + Friendadded v2.4
FTH + + Fatheradded v2.4
GCH + + Grandchildadded v2.4
GRD + + Guardianadded v2.4
GRP + + Grandparentadded v2.4
MGR + + Manageradded v2.4
MTH + + Motheradded v2.4
NCH + + Natural childadded v2.4
NON + + Noneadded v2.4
OAD + + Other adultadded v2.4
OTH + + Otheradded v2.4
OWN + + Owneradded v2.4
PAR + + Parentadded v2.4
SCH + + Stepchildadded v2.4
SEL + + Selfadded v2.4
SIB + + Siblingadded v2.4
SIS + + Sisteradded v2.4
SPO + + Spouseadded v2.4
TRA + + Traineradded v2.4
UNK + + Unknownadded v2.4
WRD + + Ward of courtadded v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Specimen Action Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Add ordered tests to the existing specimenfrom v2.1
C + + Cancel order for battery or tests namedfrom v2.1, removed after v2.1
G + + Generated order; reflex orderfrom v2.1
L + + Lab to obtain specimen from patientfrom v2.1
O + + Specimen obtained by service other than Labfrom v2.1
P + + Pending specimen; Order sent prior to deliveryfrom v2.1
R + + Revised orderadded v2.2
S + + Schedule the tests specified belowfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Diagnostic Service Section ID

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AU + + Audiologyadded v2.2
BG + + Blood Gasesfrom v2.1
BLB + + Blood Bankadded v2.2
CH + + Chemistryfrom v2.1
CP + + Cytopathologyfrom v2.1
CT + + CAT Scanfrom v2.1
CTH + + Cardiac Catheterizationadded v2.2
CUS + + Cardiac Ultrasoundfrom v2.1
EC + + Electrocardiac (e.g., EKG, EEC, Holter)from v2.1
EN + + Electroneuro (EEG, EMG,EP,PSG)added v2.2
HM + + Hematologyfrom v2.1
ICU + + Bedside ICU Monitoringadded v2.3
IMG + + Diagnostic Imagingadded v2.4, removed after v2.4
IMM + + Immunologyfrom v2.1
LAB + + Laboratoryadded v2.3
MB + + Microbiologyfrom v2.1
MCB + + Mycobacteriologyfrom v2.1
MYC + + Mycologyfrom v2.1
NMR + + Nuclear Magnetic Resonancefrom v2.1
NMS + + Nuclear Medicine Scanfrom v2.1
NRS + + Nursing Service Measuresfrom v2.1
OSL + + Outside Labadded v2.2
OT + + Occupational Therapyfrom v2.1
OTH + + Otherfrom v2.1
OUS + + OB Ultrasoundfrom v2.1
PAR + + Parasitologyadded v2.4, removed after v2.4
PAT + + Pathology (gross & histopath, not surgical)added v2.4, removed after v2.4
PF + + Pulmonary Functionadded v2.2
PHR + + Pharmacyfrom v2.1
PHY + + Physician (Hx. Dx, admission note, etc.)added v2.2
PT + + Physical Therapyfrom v2.1
RAD + + Radiologyadded v2.3
RC + + Respiratory Care (therapy)from v2.1
RT + + Radiation Therapyfrom v2.1
RUS + + Radiology Ultrasoundfrom v2.1
RX + + Radiographadded v2.2
SP + + Surgical Pathologyfrom v2.1
SR + + Serologyfrom v2.1
TX + + Toxicologyfrom v2.1
URN + + Urinalysisadded v2.4, removed after v2.4
VR + + Virologyadded v2.2
VUS + + Vascular Ultrasoundfrom v2.1
XRC + + Cineradiographfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Message Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ACK + + General acknowledgment messagefrom v2.1
ADR + + ADT responseadded v2.2
ADT + + ADT messageadded v2.2
ARD + + Ancillary RPT (display) (for backward compatibility only)from v2.1, removed after v2.3.1
BAR + + Add/change billing accountfrom v2.1
BPS + + Blood product dispense status messageadded v2.5
BRP + + Blood product dispense status acknowledgement messageadded v2.5
BRT + + Blood product transfusion/disposition acknowledgement messageadded v2.5
BTS + + Blood product transfusion/disposition messageadded v2.5
CCF + + Collaborative Care Fetchadded v2.7
CCI + + Collaborative Care Informationadded v2.7
CCM + + Collaborative Care Messageadded v2.7
CCQ + + Collaborative Care Referraladded v2.7
CCU + + Collaborative Care Referraladded v2.7
CNQ + + Cancel queryadded v2.3, removed after v2.3
CQU + + Collaborative Care Referraladded v2.7
CRM + + Clinical study registration messageadded v2.3.1
CSU + + Unsolicited study data messageadded v2.3
DFT + + Detail financial transactionsadded v2.2
DOC + + Document responseadded v2.3
DSR + + Display responsefrom v2.1
EAC + + Automated equipment command messageadded v2.4
EAN + + Automated equipment notification messageadded v2.4
EAR + + Automated equipment response messageadded v2.4
EDR + + Enhanced display responseadded v2.3, removed after v2.5.1
EHC + + Health Care Invoiceadded v2.6
EQQ + + Embedded query language queryadded v2.3, removed after v2.5.1
ERP + + Event replay responseadded v2.3, removed after v2.5.1
ERQ + + Event replay queryadded v2.3, removed after v2.3
ESR + + Automated equipment status update acknowledgment messageadded v2.4
ESU + + Automated equipment status update messageadded v2.4
INR + + Automated equipment inventory request messageadded v2.4
INU + + Automated equipment inventory update messageadded v2.4
LSR + + Automated equipment log/service request messageadded v2.4
LSU + + Automated equipment log/service update messageadded v2.4
MCF + + Delayed Acknowledgment (Retained for backward compatibility only)from v2.1, removed after v2.5.1
MDM + + Medical document managementadded v2.3
MFD + + Master files delayed application acknowledgmentadded v2.2
MFK + + Master files application acknowledgmentadded v2.2
MFN + + Master files notificationadded v2.2
MFQ + + Master files queryadded v2.3
MFR + + Master files responseadded v2.2
NMD + + Application management data messageadded v2.2
NMQ + + Application management query messageadded v2.2
NMR + + Application management response messageadded v2.2
OMB + + Blood product order messageadded v2.5
OMD + + Dietary orderadded v2.4
OMG + + General clinical order messageadded v2.4
OMI + + Imaging orderadded v2.5
OML + + Laboratory order messageadded v2.4
OMN + + Non-stock requisition order messageadded v2.4
OMP + + Pharmacy/treatment order messageadded v2.4
OMS + + Stock requisition order messageadded v2.4
OPL + + Population/Location-Based Laboratory Order Messageadded v2.6
OPR + + Population/Location-Based Laboratory Order Acknowledgment Messageadded v2.6
OPU + + Unsolicited Population/Location-Based Laboratory Observation Messageadded v2.6
ORA + + Observation Report Acknowledgmentadded v2.7
ORB + + Blood product order acknowledgement messageadded v2.5
ORD + + Dietary order acknowledgment messageadded v2.4
ORF + + Query for results of observationfrom v2.1
ORG + + General clinical order acknowledgment messageadded v2.4
ORI + + Imaging order acknowledgement messageadded v2.5
ORL + + Laboratory acknowledgment message (unsolicited)added v2.4
ORM + + Pharmacy/treatment order messagefrom v2.1
ORN + + Non-stock requisition - General order acknowledgment messageadded v2.4
ORP + + Pharmacy/treatment order acknowledgment messageadded v2.4
ORR + + General order response message response to any ORMfrom v2.1
ORS + + Stock requisition - Order acknowledgment messageadded v2.4
ORU + + Unsolicited transmission of an observation messagefrom v2.1
OSM + + Specimen Shipment Messageadded v2.7
OSQ + + Query response for order statusfrom v2.1
OSR + + Query response for order statusadded v2.3
OUL + + Unsolicited laboratory observation messageadded v2.4
PEX + + Product experience messageadded v2.3
PGL + + Patient goal messageadded v2.3
PIN + + Patient insurance informationadded v2.3
PMU + + Add personnel recordadded v2.4
PPG + + Patient pathway message (goal-oriented)added v2.3
PPP + + Patient pathway message (problem-oriented)added v2.3.1
PPR + + Patient problem messageadded v2.3
PPT + + Patient pathway goal-oriented responseadded v2.3
PPV + + Patient goal responseadded v2.3
PRR + + Patient problem responseadded v2.3
PTR + + Patient pathway problem-oriented responseadded v2.3
QBP + + Query by parameteradded v2.4
QCK + + Deferred queryadded v2.3
QCN + + Cancel queryadded v2.4
QRY + + Query, original modeadded v2.2
QSB + + Create subscriptionadded v2.4
QSX + + Cancel subscription/acknowledge messageadded v2.4
QVR + + Query for previous eventsadded v2.4
RAR + + Pharmacy/treatment administration informationadded v2.2
RAS + + Pharmacy/treatment administration messageadded v2.2
RCI + + Return clinical informationadded v2.3
RCL + + Return clinical listadded v2.3
RDE + + Pharmacy/treatment encoded order messageadded v2.2
RDR + + Pharmacy/treatment dispense informationadded v2.2
RDS + + Pharmacy/treatment dispense messageadded v2.2
RDY + + Display based responseadded v2.4
REF + + Patient referraladded v2.3
RER + + Pharmacy/treatment encoded order informationadded v2.2
RGR + + Pharmacy/treatment dose informationadded v2.2
RGV + + Pharmacy/treatment give messageadded v2.2
ROC + + Request clinical informationadded v2.3, removed after v2.3
ROD + + Request pateint demographicsadded v2.3, removed after v2.3
ROR + + Pharmacy/treatment order responseadded v2.2
RPA + + Return patient authorizationadded v2.3
RPI + + Return patient informationadded v2.3
RPL + + Return patient display listadded v2.3
RPR + + Return patient listadded v2.3
RQA + + Request patient authorizationadded v2.3
RQC + + Request clinical informationadded v2.3
RQI + + Request patient informationadded v2.3
RQP + + Request patient demographicsadded v2.3
RQQ + + Event replay queryadded v2.3, removed after v2.5.1
RRA + + Pharmacy/treatment administration acknowledgment messageadded v2.2
RRD + + Pharmacy/treatment dispense acknowledgment messageadded v2.2
RRE + + Pharmacy/treatment encoded order acknowledgment messageadded v2.2
RRG + + Pharmacy/treatment give acknowledgment messageadded v2.2
RRI + + Return referral informationadded v2.3
RSP + + Segment pattern responseadded v2.4
RTB + + Tabular responseadded v2.4
SCN + + Notification of Anti-Microbial Device Cycle Dataadded v2.6
SDN + + Notification of Anti-Microbial Device Dataadded v2.6
SDR + + Sterilization anti-microbial device data requestadded v2.6
SIU + + Schedule information unsolicitedadded v2.3
SLN + + Notification of New Sterilization Lotadded v2.6
SLR + + Sterilization lot requestadded v2.6
SMD + + Sterilization anti-microbial device cycle data requestadded v2.6
SPQ + + Stored procedure requestadded v2.3, removed after v2.5.1
SQM + + Schedule query messageadded v2.3
SQR + + Schedule query responseadded v2.3
SRM + + Schedule request messageadded v2.3
SRR + + Scheduled request responseadded v2.3
SSR + + Specimen status request messageadded v2.4
SSU + + Specimen status update messageadded v2.4
STC + + Notification of Sterilization Configurationadded v2.6
STI + + Sterilization item requestadded v2.6
SUR + + Summary product experience reportadded v2.3.1
TBR + + Tabular data responseadded v2.3
TCR + + Automated equipment test code settings request messageadded v2.4
TCU + + Automated equipment test code settings update messageadded v2.4
UDM + + Unsolicited display update messagefrom v2.1
VQQ + + Virtual table queryadded v2.3, removed after v2.5.1
VXQ + + Query for vaccination recordadded v2.3
VXR + + Vaccination record responseadded v2.3
VXU + + Unsolicited vaccination record updateadded v2.3
VXX + + Response for vaccination query with multiple PID matchesadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Interpretation Codes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
< + + Below absolute low-off instrument scalefrom v2.1
> + + Above absolute high-off instrument scaleadded v2.2
A + + Abnormal (applies to non-numeric results)from v2.1
AA + + Very abnormal (applies to non-numeric units, analogous to panic limits for numeric units)from v2.1
AC + + Anti-complementary substances presentadded v2.7
B + + Better-use when direction not relevantadded v2.2
D + + Significant change downfrom v2.1
DET + + Detectedadded v2.7
H + + Above high normalfrom v2.1
HH + + Above upper panic limitsfrom v2.1
I + + Intermediate. Indicates for microbiology susceptibilities only.from v2.1
IND + + Indeterminateadded v2.7
L + + Below low normaladded v2.2
LL + + Below lower panic limitsfrom v2.1
MS + + Moderately susceptible. Indicates for microbiology susceptibilities only.from v2.1
N + + Normal (applies to non-numeric results)added v2.2
ND + + Not Detectedadded v2.7
NEG + + Negativeadded v2.7
NR + + Non-reactiveadded v2.7
POS + + Positiveadded v2.7
QCF + + Quality Control Failureadded v2.7
R + + Resistant. Indicates for microbiology susceptibilities only.from v2.1
RR + + Reactiveadded v2.7
S + + Susceptible. Indicates for microbiology susceptibilities only.from v2.1
TOX + + Cytotoxic substance presentadded v2.7
U + + Significant change upfrom v2.1
VS + + Very susceptible. Indicates for microbiology susceptibilities only.from v2.1
W + + Worse-use when direction not relevantadded v2.2
WR + + Weakly reactiveadded v2.7
null + + No range defined, or normal ranges don't applyfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Invocation event

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
D + + On dischargefrom v2.1
O + + On receipt of orderfrom v2.1
R + + At time service is completedfrom v2.1
S + + At time service is startedfrom v2.1
T + + At a designated date/timeadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Delayed acknowledgment type

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
D + + Message received, stored for later processingfrom v2.1, removed after v2.4
F + + acknowledgment after processingadded v2.2, removed after v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Processing ID

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
D + + Debuggingfrom v2.1
P + + Productionfrom v2.1
T + + Trainingfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Version ID

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
2.0 + + Release 2.0from v2.1
2.0D + + Demo 2.0from v2.1
2.1 + + Release 2.1from v2.1
2.2 + + Release 2.2added v2.2
2.3 + + Release 2.3added v2.3
2.3.1 + + Release 2.3.1added v2.3.1
2.3.2 + + Release 2.3.2added v2.3.1, removed after v2.3.1
2.4 + + Release 2.4added v2.4
2.5 + + Release 2.5added v2.5
2.5.1 + + Release 2.5.1added v2.5.1
2.6 + + Release 2.6added v2.6
2.7 + + Release 2.7added v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Source of Comment

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
L + + Ancillary (filler) department is source of commentfrom v2.1
O + + Other system is source of commentadded v2.2
P + + Orderer (placer) is source of commentfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Query/response format code

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
D + + Response is in display formatadded v2.2, removed after v2.6
R + + Response is in record-oriented formatfrom v2.1, removed after v2.6
T + + Response is in tabular formatadded v2.3, removed after v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Deferred response type

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
B + + Before the Date/Time specifiedadded v2.2, removed after v2.6
L + + Later than the Date/Time specifiedfrom v2.1, removed after v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Query results level

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
O + + Order plus order statusfrom v2.1, removed after v2.6
R + + Results without bulk textadded v2.2, removed after v2.6
S + + Status onlyfrom v2.1, removed after v2.6
T + + Full resultsfrom v2.1, removed after v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Report priority

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
R + + Routinefrom v2.1, removed after v2.6
S + + Statfrom v2.1, removed after v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Order Control Codes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AF + + Order/service refill request approvaladded v2.3
CA + + Cancel order/service requestfrom v2.1
CH + + Child order/servicefrom v2.1
CN + + Combined resultfrom v2.1
CR + + Canceled as requestedadded v2.2
DC + + Discontinue order/service requestfrom v2.1
DE + + Data errorsfrom v2.1
DF + + Order/service refill request deniedadded v2.3
DR + + Discontinued as requestedfrom v2.1
FU + + Order/service refilled, unsolicitedadded v2.3
HD + + Hold order requestfrom v2.1
HR + + On hold as requestedfrom v2.1
LI + + Link order/service to patient care problem or goaladded v2.3.1
MC + + Miscellaneous Charge - not associated with an orderadded v2.6
NA + + Number assignedfrom v2.1
NW + + New order/servicefrom v2.1
NW or RO + + Other application to filler applicationadded v2.6, removed after v2.6
OC + + Order/service canceledadded v2.2
OD + + Order/service discontinuedfrom v2.1
OE + + Order/service releasedadded v2.3
OF + + Order/service refilled as requestedadded v2.3
OH + + Order/service heldadded v2.2
OK + + Order/service accepted & OKfrom v2.1
OP + + Notification of order for outside dispenseadded v2.5
OR + + Released as requestedfrom v2.1
PA + + Parent order/servicefrom v2.1
PR + + Previous Results with new order/serviceadded v2.4
PY + + Notification of replacement order for outside dispenseadded v2.5
RE + + Observations/Performed Service to followfrom v2.1
RF + + Refill order/service requestadded v2.3
RL + + Release previous holdadded v2.2
RO + + Replacement orderfrom v2.1
RP + + Order/service replace requestfrom v2.1
RQ + + Replaced as requestedadded v2.2
RR + + Request receivedfrom v2.1
RU + + Replaced unsolicitedfrom v2.1
SC + + Status changedadded v2.2
SN + + Send order/service numberfrom v2.1
SR + + Response to send order/service status requestadded v2.2
SS + + Send order/service status requestfrom v2.1
UA + + Unable to accept order/serviceadded v2.3
UC + + Unable to canceladded v2.2
UD + + Unable to discontinuefrom v2.1
UF + + Unable to refilladded v2.3
UH + + Unable to put on holdfrom v2.1
UM + + Unable to replaceadded v2.2
UN + + Unlink order/service from patient care problem or goaladded v2.3.1
UR + + Unable to releasefrom v2.1
UX + + Unable to changefrom v2.1
XO + + Change order/service requestadded v2.2
XR + + Changed as requestedfrom v2.1
XX + + Order/service changed, unsol.from v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Response Flag

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
D + + Same as R, also other associated segmentsadded v2.2
E + + Report exceptions onlyfrom v2.1
F + + Same as D, plus confirmations explicitlyfrom v2.1
N + + Only the MSA segment is returnedfrom v2.1
R + + Same as E, also Replacement and Parent-Childadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Charge Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
CH + + Chargefrom v2.1
CO + + Contractfrom v2.1
CR + + Creditfrom v2.1
DP + + Departmentfrom v2.1
GR + + Grantfrom v2.1
NC + + No Chargefrom v2.1
PC + + Professionalfrom v2.1
RS + + Researchfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

RESULT STATUS - OBR

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Correction to resultsfrom v2.1
F + + Final results - results stored & verifiedfrom v2.1
I + + Specimen in lab, not yet processed.from v2.1
O + + Order received; specimen not yet receivedadded v2.2
P + + Preliminary: A verified early result is available, final results not yet obtainedfrom v2.1
R + + Results stored; not yet verifiedfrom v2.1
S + + No results available; procedure scheduled, but not donefrom v2.1
X + + No results available; Order canceled.added v2.2
Y + + No order on record for this test. (Used only on queries)from v2.1
Z + + No record of this patient. (Used only on queries)from v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Result Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Some, but not all, results availablefrom v2.3
C + + Correction to resultsfrom v2.3
F + + Final results; results stored and verified. Can only be changed with a corrected result.from v2.3
I + + No results available; specimen received, procedure incompletefrom v2.3
O + + Order received; specimen not yet receivedfrom v2.3
P + + Preliminary: A verified early result is available, final results not yet obtainedfrom v2.3
R + + Results stored; not yet verifiedfrom v2.3
S + + No results available; procedure scheduled, but not donefrom v2.3
X + + No results available; Order canceled.from v2.3
Y + + No order on record for this test. (Used only on queries)from v2.3
Z + + No record of this patient. (Used only on queries)from v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Transportation Mode

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
CART + + Cart - patient travels on cart or gurneyadded v2.2
PORT + + The examining device goes to patient's locationfrom v2.1
WALK + + Patient walks to diagnostic servicefrom v2.1
WHLC + + Wheelchairfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Quantity Limited Request

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
CH + + Charactersfrom v2.1
LI + + Linesfrom v2.1
PG + + Pagesfrom v2.1
RD + + Recordsadded v2.2
ZO + + Locally definedfrom v2.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Yes/no Indicator

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
N + + Noadded v2.2
Y + + Yesadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Money or Percentage Indicator

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AT + + Currency amountadded v2.2
PC + + Percentageadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Value Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
... + + See NUBC codesadded v2.5.1, removed after v2.6
01 + + Most common semi-private rateadded v2.3.1, removed after v2.4
02 + + Hospital has no semi-private roomsadded v2.3.1, removed after v2.4
04 + + Inpatient professional component charges which are combined billedadded v2.3.1, removed after v2.4
05 + + Professional component included in charges and also billed separate to carrieradded v2.3.1, removed after v2.4
06 + + Medicare blood deductibleadded v2.3.1, removed after v2.4
08 + + Medicare life time reserve amount in the first calendar yearadded v2.3.1, removed after v2.4
09 + + Medicare co-insurance amount in the first calendar yearadded v2.3.1, removed after v2.4
10 + + Lifetime reserve amount in the second calendar yearadded v2.3.1, removed after v2.4
11 + + Co-insurance amount in the second calendar yearadded v2.3.1, removed after v2.4
12 + + Working aged beneficiary/spouse with employer group health planadded v2.3.1, removed after v2.4
13 + + ESRD beneficiary in a Medicare coordination period with an employer group health planadded v2.3.1, removed after v2.4
14 + + No Fault including auto/otheradded v2.3.1, removed after v2.4
15 + + Worker's Compensationadded v2.3.1, removed after v2.4
16 + + PHS, or other federal agencyadded v2.3.1, removed after v2.4
17 + + Payer codeadded v2.3.1, removed after v2.4
21 + + Catastrophicadded v2.3.1, removed after v2.4
22 + + Surplusadded v2.3.1, removed after v2.4
23 + + Recurring monthly incodeadded v2.3.1, removed after v2.4
24 + + Medicaid rate codeadded v2.3.1, removed after v2.4
30 + + Pre-admission testingadded v2.3.1, removed after v2.4
31 + + Patient liability amountadded v2.3.1, removed after v2.4
37 + + Pints of blood furnishedadded v2.3.1, removed after v2.4
38 + + Blood deductible pintsadded v2.3.1, removed after v2.4
39 + + Pints of blood replacedadded v2.3.1, removed after v2.4
40 + + New coverage not implemented by HMO (for inpatient service only)added v2.3.1, removed after v2.4
41 + + Black lungadded v2.3.1, removed after v2.4
42 + + VAadded v2.3.1, removed after v2.4
43 + + Disabled beneficiary under age 64 with LGHPadded v2.3.1, removed after v2.4
44 + + Amount provider agreed to accept from primary payer when this amount is less than charges but higher than payment received,, then a Medicare secondary payment is dueadded v2.3.1, removed after v2.4
45 + + Accident houradded v2.3.1, removed after v2.4
46 + + Number of grace daysadded v2.3.1, removed after v2.4
47 + + Any liability insuranceadded v2.3.1, removed after v2.4
48 + + Hemoglobin readingadded v2.3.1, removed after v2.4
49 + + Hematocrit readingadded v2.3.1, removed after v2.4
50 + + Physical therapy visitsadded v2.3.1, removed after v2.4
51 + + Occupational therapy visitsadded v2.3.1, removed after v2.4
52 + + Speech therapy visitsadded v2.3.1, removed after v2.4
53 + + Cardiac rehab visitsadded v2.3.1, removed after v2.4
56 + + Skilled nurse - home visit hoursadded v2.3.1, removed after v2.4
57 + + Home health aide - home visit hoursadded v2.3.1, removed after v2.4
58 + + Arterial blood gasadded v2.3.1, removed after v2.4
59 + + Oxygen saturationadded v2.3.1, removed after v2.4
60 + + HHA branch MSAadded v2.3.1, removed after v2.4
67 + + Peritoneal dialysisadded v2.3.1, removed after v2.4
68 + + EPO-drugadded v2.3.1, removed after v2.4
70 ... 72 + + Payer codesadded v2.3.1, removed after v2.4
75 ... 79 + + Payer codesadded v2.3.1, removed after v2.4
80 + + Psychiatric visitsadded v2.3.1, removed after v2.4
81 + + Visits subject to co-paymentadded v2.3.1, removed after v2.4
A1 + + Deductible payer Aadded v2.3.1, removed after v2.4
A2 + + Coinsurance payer Aadded v2.3.1, removed after v2.4
A3 + + Estimated responsibility payer Aadded v2.3.1, removed after v2.4
X0 + + Service excluded on primary policyadded v2.3.1, removed after v2.4
X4 + + Supplemental coverageadded v2.3.1, removed after v2.4
… + + See NUBC codesadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Accept/Application Acknowledgment Conditions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AL + + Alwaysadded v2.2
ER + + Error/reject conditions onlyadded v2.2
NE + + Neveradded v2.2
SU + + Successful completion onlyadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Which date/time qualifier

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ANY + + Any date/time within a rangeadded v2.2, removed after v2.6
CAN + + Cancellation date/timeadded v2.2, removed after v2.3
COL + + Collection date/time, equivalent to film or sample collection date/timeadded v2.2, removed after v2.6
ORD + + Order date/timeadded v2.2, removed after v2.6
RCT + + Specimen receipt date/time, receipt of specimen in filling ancillary (Lab)added v2.2, removed after v2.6
REP + + Report date/time, report date/time at filing ancillary (i.e., Lab)added v2.2, removed after v2.6
SCHED + + Schedule date/timeadded v2.2, removed after v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Which date/time status qualifier

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ANY + + Any statusadded v2.2, removed after v2.6
CFN + + Current final value, whether final or correctedadded v2.2, removed after v2.6
COR + + Corrected only (no final with corrections)added v2.2, removed after v2.6
FIN + + Final only (no corrections)added v2.2, removed after v2.6
PRE + + Preliminaryadded v2.2, removed after v2.6
REP + + Report completion date/timeadded v2.2, removed after v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Date/time selection qualifier

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
1ST + + First value within rangeadded v2.2, removed after v2.6
ALL + + All values within the rangeadded v2.2, removed after v2.6
LST + + Last value within the rangeadded v2.2, removed after v2.6
REV + + All values within the range returned in reverse chronological order (This is the default if not otherwise specified.)added v2.2, removed after v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Diet Code Specification Type

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
D + + Dietadded v2.2
P + + Preferenceadded v2.2
S + + Supplementadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Tray Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
EARLY + + Early trayadded v2.2
GUEST + + Guest trayadded v2.2
LATE + + Late trayadded v2.2
MSG + + Tray message onlyadded v2.2
NO + + No trayadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Allow Substitution

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
G + + Allow generic substitutions.added v2.2
N + + Substitutions are NOT authorized. (This is the default - null.)added v2.2
T + + Allow therapeutic substitutionsadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Route of Administration

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AP + + Apply Externallyadded v2.2
B + + Buccaladded v2.2
DT + + Dentaladded v2.2
EP + + Epiduraladded v2.3
ET + + Endotrachial Tube*added v2.3
GTT + + Gastrostomy Tubeadded v2.2
GU + + GU Irrigantadded v2.2
IA + + Intra-arterialadded v2.2
IB + + Intrabursaladded v2.3
IC + + Intracardiacadded v2.2
ICV + + Intracervical (uterus)added v2.3
ID + + Intradermaladded v2.2
IH + + Inhalationadded v2.2
IHA + + Intrahepatic Arteryadded v2.3.1
IM + + Intramuscularadded v2.2
IMR + + Immerse (Soak) Body Partadded v2.3
IN + + Intranasaladded v2.2
IO + + Intraocularadded v2.2
IP + + Intraperitonealadded v2.2
IS + + Intrasynovialadded v2.2
IT + + Intrathecaladded v2.2
IU + + Intrauterineadded v2.3.1
IV + + Intravenousadded v2.2
MM + + Mucous Membraneadded v2.3
MTH + + Mouth/Throatadded v2.3.1
NG + + Nasogastricadded v2.2
NP + + Nasal Prongs*added v2.3
NS + + Nasaladded v2.2
NT + + Nasotrachial Tubeadded v2.3
OP + + Ophthalmicadded v2.2
OT + + Oticadded v2.2
OTH + + Other/Miscellaneousadded v2.3
PF + + Perfusionadded v2.3
PO + + Oraladded v2.2
PR + + Rectaladded v2.2
RM + + Rebreather Mask*added v2.3
SC + + Subcutaneousadded v2.2
SD + + Soaked Dressingadded v2.3
SL + + Sublingualadded v2.2
TD + + Transdermaladded v2.2
TL + + Translingualadded v2.2
TP + + Topicaladded v2.2
TRA + + Tracheostomy*added v2.3
UR + + Urethraladded v2.2
VG + + Vaginaladded v2.2
VM + + Ventimaskadded v2.3
WND + + Woundadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Body Site

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
BE + + Bilateral Earsadded v2.2
BN + + Bilateral Naresadded v2.2
BU + + Buttockadded v2.2
CT + + Chest Tubeadded v2.2
LA + + Left Armadded v2.2
LAC + + Left Anterior Chestadded v2.2
LACF + + Left Antecubital Fossaadded v2.2
LD + + Left Deltoidadded v2.2
LE + + Left Earadded v2.2
LEJ + + Left External Jugularadded v2.2
LF + + Left Footadded v2.2
LG + + Left Gluteus Mediusadded v2.2
LH + + Left Handadded v2.2
LIJ + + Left Internal Jugularadded v2.2
LLAQ + + Left Lower Abd Quadrantadded v2.2
LLFA + + Left Lower Forearmadded v2.2
LMFA + + Left Mid Forearmadded v2.2
LN + + Left Narisadded v2.2
LNB + + Nebulizedadded v2.3, removed after v2.3
LPC + + Left Posterior Chestadded v2.2
LSC + + Left Subclavianadded v2.2
LT + + Left Thighadded v2.2
LUA + + Left Upper Armadded v2.2
LUAQ + + Left Upper Abd Quadrantadded v2.2
LUFA + + Left Upper Forearmadded v2.2
LV + + Left Vastus Lateralisadded v2.3, removed after v2.3
LVG + + Left Ventraglutealadded v2.2
LVL + + Left Vastus Lateralisadded v2.2
NB + + Nebulizedadded v2.2
OD + + Right Eyeadded v2.2
OS + + Left Eyeadded v2.2
OU + + Bilateral Eyesadded v2.2
PA + + Perianaladded v2.2
PERIN + + Perinealadded v2.2
RA + + Right Armadded v2.2
RAC + + Right Anterior Chestadded v2.2
RACF + + Right Antecubital Fossaadded v2.2
RD + + Right Deltoidadded v2.2
RE + + Right Earadded v2.2
REJ + + Right External Jugularadded v2.2
RF + + Right Footadded v2.2
RG + + Right Gluteus Mediusadded v2.2
RH + + Right Handadded v2.2
RIJ + + Right Internal Jugularadded v2.2
RLAQ + + Rt Lower Abd Quadrantadded v2.2
RLFA + + Right Lower Forearmadded v2.2
RMFA + + Right Mid Forearmadded v2.2
RN + + Right Narisadded v2.2
RPC + + Right Posterior Chestadded v2.2
RSC + + Right Subclavianadded v2.2
RT + + Right Thighadded v2.2
RUA + + Right Upper Armadded v2.2
RUAQ + + Right Upper Abd Quadrantadded v2.2
RUFA + + Right Upper Forearmadded v2.2
RVG + + Right Ventraglutealadded v2.2
RVL + + Right Vastus Lateralisadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Administration Device

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AP + + Applicatoradded v2.2
BT + + Buretroladded v2.2
HL + + Heparin Lockadded v2.2
IPPB + + IPPBadded v2.2
IVP + + IV Pumpadded v2.2
IVS + + IV Solusetadded v2.2
MI + + Metered Inhaleradded v2.2
NEB + + Nebulizeradded v2.2
PCA + + PCA Pumpadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Administration Method

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
CH + + Chewadded v2.2
DI + + Dissolveadded v2.2
DU + + Dustadded v2.2
IF + + Infiltrateadded v2.2
IR + + Irrigateadded v2.2
IS + + Insertadded v2.2
IVP + + IV Pushadded v2.2
IVPB + + IV Piggybackadded v2.2
NB + + Nebulizedadded v2.2
PF + + Perfuseadded v2.2
PT + + Paintadded v2.2
SH + + Shampooadded v2.2
SO + + Soakadded v2.2
WA + + Washadded v2.2
WI + + Wipeadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

RX Component Type

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Additiveadded v2.2
B + + Baseadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Substitution Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + No product selection indicatedadded v2.3.1
1 + + Substitution not allowed by prescriberadded v2.3.1
2 + + Substitution allowed - patient requested product dispensedadded v2.3.1
3 + + Substitution allowed - pharmacist selected product dispensedadded v2.3.1
4 + + Substitution allowed - generic drug not in stockadded v2.3.1
5 + + Substitution allowed - brand drug dispensed as a genericadded v2.3.1
7 + + Substitution not allowed - brand drug mandated by lawadded v2.3.1
8 + + Substitution allowed - generic drug not available in marketplaceadded v2.3.1
G + + A generic substitution was dispensed.added v2.2
N + + No substitute was dispensed. This is equivalent to the default (null) value.added v2.2
T + + A therapeutic substitution was dispensed.added v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Processing Priority

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + As soon as possible (a priority lower than stat)added v2.2
B + + Do at bedside or portable (may be used with other codes)added v2.2
C + + Measure continuously (e.g., arterial line blood pressure)added v2.2
P + + Preoperative (to be done prior to surgery)added v2.2
R + + Routineadded v2.2
S + + Stat (do immediately)added v2.2
T + + Timing critical (do as near as possible to requested time)added v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Reporting Priority

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Call back resultsadded v2.2
R + + Rush reportingadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Derived Specimen

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Child Observationadded v2.2
N + + Not Applicableadded v2.2
P + + Parent Observationadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Nature of Service/Test/Observation

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Atomic service/test/observation (test code or treatment code)added v2.2
C + + Single observation calculated via a rule or formula from other independent observations (e.g., Alveolar-arterial ratio, cardiac output)added v2.2
F + + Functional procedure that may consist of one or more interrelated measures (e.g., glucose tolerance test, creatinine clearance), usually done at different times and/or on different specimensadded v2.2
P + + Profile or battery consisting of many independent atomic observations (e.g., SMA12, electrolytes), usually done at one instrument on one specimenadded v2.2
S + + Superset-a set of batteries or procedures ordered under a single code unit but processed as separate batteries (e.g., routines = CBC, UA, electrolytes)<p>This set indicates that the code being described is used to order multiple service/test/observation badded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Master File Identifier Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
CDM + + Charge description master fileadded v2.2
CLN + + Clinic master fileadded v2.4
CM0 + + Clinical study masteradded v2.3, removed after v2.3
CM1 + + Clinical study phase masteradded v2.3, removed after v2.3
CM2 + + Clinical study Data Schedule Masteradded v2.3, removed after v2.3
CMA + + Clinical study with phases and scheduled master fileadded v2.3.1
CMB + + Clinical study without phases but with scheduled master fileadded v2.3.1
INV + + Inventory master fileadded v2.5
LOC + + Location master fileadded v2.3
OM1 + + Observation text master file (i.e., Lab) (see Chapter 7, Appendix)added v2.2, removed after v2.2
OM1-OM6 + + Observation text master file segments (e.g., Lab) (see Chapter 87, Appendix B):added v2.3, removed after v2.3
OM2 + + Observation text master file (i.e., Lab) (see Chapter 7, Appendix)added v2.2, removed after v2.2
OM3 + + Observation text master file (i.e., Lab) (see Chapter 7, Appendix)added v2.2, removed after v2.2
OM4 + + Observation text master file (i.e., Lab) (see Chapter 7, Appendix)added v2.2, removed after v2.2
OM5 + + Observation text master file (i.e., Lab) (see Chapter 7, Appendix)added v2.2, removed after v2.2
OM6 + + Observation text master file (i.e., Lab) (see Chapter 7, Appendix)added v2.2, removed after v2.2
OMA + + Numerical observation master fileadded v2.3.1
OMB + + Categorical observation master fileadded v2.3.1
OMC + + Observation batteries master fileadded v2.3.1
OMD + + Calculated observations master fileadded v2.3.1
OME + + Other Observation/Service Item master fileadded v2.4
PRA + + Practitioner master fileadded v2.2
STF + + Staff master fileadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

File Level Event Code

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
REP + + Replace current version of this master file with the version contained in this messageadded v2.2
UPD + + Change file records as defined in the record-level event codes for each record that followsadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Response Level

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AL + + Always. All MFA segments (whether denoting errors or not) must be returned via the application-level acknowledgment messageadded v2.2
ER + + Error/Reject conditions only. Only MFA segments denoting errors must be returned via the application-level acknowledgment for this messageadded v2.2
NE + + Never. No application-level response neededadded v2.2
SU + + Success. Only MFA segments denoting success must be returned via the application-level acknowledgment for this messageadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Record-level Event Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
MAC + + Reactivate deactivated recordadded v2.2
MAD + + Add record to master fileadded v2.2
MDC + + Deactivate: discontinue using record in master file, but do not delete from databaseadded v2.2
MDL + + Delete record from master fileadded v2.2
MUP + + Update record for master fileadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Active/Inactive

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Active Staffadded v2.2
I + + Inactive Staffadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Preferred Method of Contact

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
B + + Beeper Numberadded v2.2
C + + Cellular Phone Numberadded v2.2
E + + E-Mail Address (for backward compatibility)added v2.2
F + + FAX Numberadded v2.2
H + + Home Phone Numberadded v2.2
M + + Mailadded v2.3, removed after v2.3
O + + Office Phone Numberadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Provider Billing

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
I + + Institution bills for provideradded v2.2
P + + Provider does own billingadded v2.2
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Address Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
B + + Firm/Businessadded v2.2
BA + + Bad addressadded v2.3.1
BDL + + Birth delivery location (address where birth occurred)added v2.3.1
BI + + Billing Addressadded v2.6
BR + + Residence at birth (home address at time of birth)added v2.3.1
C + + Current Or Temporaryadded v2.2
F + + Country Of Originadded v2.3
H + + Homeadded v2.2
L + + Legal Addressadded v2.3.1
M + + Mailingadded v2.2
N + + Birth (nee) (birth address, not otherwise specified)added v2.3.1
O + + Office/Businessadded v2.2
P + + Permanentadded v2.2
RH + + Registry home. Refers to the information system, typically managed by a public health agency, that stores patient information such as immunization histories or cancer data, regardless of where the patient obtains services.added v2.3.1
S + + Service Locationadded v2.6
SH + + Shipping Addressadded v2.6
TM + + Tube Addressadded v2.7
V + + Vacationadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Type of Referenced Data

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AP + + Other application data, typically uninterpreted binary data (HL7 V2.3 and later)added v2.3
AU + + Audio data (HL7 V2.3 and later)added v2.3
Application + + Other application data, typically uninterpreted binary data (HL7 V2.3 and later)added v2.3.1, removed after v2.3.1
Audio + + Audio data (HL7 V2.3 and later)added v2.3.1, removed after v2.3.1
FT + + Formatted text (HL7 V2.2 only)added v2.2
IM + + Image data (HL7 V2.3 and later)added v2.3
Image + + Image data (HL7 V2.3 and later)added v2.3.1, removed after v2.3.1
NS + + Non-scanned image (HL7 V2.2 only)added v2.2
SD + + Scanned document (HL7 V2.2 only)added v2.2
SGML + + Structured Generalized Markup Language (HL7 V2.3 and later)added v2.3.1, removed after v2.3.1
SI + + Scanned image (HL7 V2.2 only)added v2.2
TEXT + + Machine readable text document (HL7 V2.3.1 and later)added v2.3.1
TX + + Machine readable text document (HL7 V2.2 only)added v2.2
multipart + + MIME multipart packageadded v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Name Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Assignedadded v2.3
B + + Birth nameadded v2.3.1
BAD + + Bad Nameadded v2.7
C + + Adopted Nameadded v2.3
D + + Customary Nameadded v2.3
I + + Licensing Nameadded v2.4
K + + Business nameadded v2.6
L + + Official Registry Nameadded v2.3
M + + Maiden Nameadded v2.3
MSK + + Maskedadded v2.7
N + + Nicknameadded v2.4
NAV + + Temporarily Unavailableadded v2.7
NB + + Newborn Nameadded v2.7
NOUSE + + No Longer To Be Usedadded v2.7
O + + Otheradded v2.3, removed after v2.3
P + + Name of Partner/Spouseadded v2.3.1
R + + Registered Nameadded v2.4
REL + + Religiousadded v2.7
S + + Pseudonymadded v2.3.1
T + + Indigenous/Tribaladded v2.3.1
TEMP + + Temporary Nameadded v2.7
U + + Unknownadded v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Telecommunication Use Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ASN + + Answering Service Numberadded v2.3
BPN + + Beeper Numberadded v2.3.1
EMR + + Emergency Numberadded v2.3
NET + + Network (email) Addressadded v2.3
ORN + + Other Residence Numberadded v2.3
PRN + + Primary Residence Numberadded v2.3
PRS + + Personaladded v2.6
VHN + + Vacation Home Numberadded v2.3
WPN + + Work Numberadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Telecommunication Equipment Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
BP + + Beeperadded v2.3
CP + + Cellular or Mobile Phoneadded v2.3
FX + + Faxadded v2.3
Internet + + Internet Addressadded v2.3
MD + + Modemadded v2.3
PH + + Telephoneadded v2.3
SAT + + Satellite Phoneadded v2.6
TDD + + Telecommunications Device for the Deafadded v2.5
TTY + + Teletypewriteradded v2.5
X.400 + + X.400 email addressadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Identifier Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ACSN + + Accession IDadded v2.7
AM + + American Expressadded v2.3
AMA + + American Medical Association Numberadded v2.6
AN + + Account numberadded v2.3
ANC + + Account number Creditoradded v2.5
AND + + Account number debitoradded v2.5
ANON + + Anonymous identifieradded v2.5
ANT + + Temporary Account Numberadded v2.5
APRN + + Advanced Practice Registered Nurse numberadded v2.5
ASID + + Ancestor Specimen IDadded v2.7
BA + + Bank Account Numberadded v2.4
BC + + Bank Card Numberadded v2.5
BCT + + Birth Certificateadded v2.6
BR + + Birth registry numberadded v2.3
BRN + + Breed Registry Numberadded v2.4
BSNR + + Primary physician office numberadded v2.7
CC + + Cost Center numberadded v2.5
CONM + + Change of Name Documentadded v2.6
CY + + County numberadded v2.5
CZ + + Citizenship Cardadded v2.6
DDS + + Dentist license numberadded v2.5
DEA + + Drug Enforcement Administration registration numberadded v2.5
DFN + + Drug Furnishing or prescriptive authority Numberadded v2.5
DI + + Diner's Club cardadded v2.3
DL + + Driver's license numberadded v2.3
DN + + Doctor numberadded v2.3
DO + + Osteopathic License numberadded v2.5
DP + + Diplomatic Passportadded v2.6
DPM + + Podiatrist license numberadded v2.5
DR + + Donor Registration Numberadded v2.4
DS + + Discover Cardadded v2.3
EI + + Employee numberadded v2.3
EN + + Employer numberadded v2.3
ESN + + Staff Enterprise Numberadded v2.6
FI + + Facility IDadded v2.3.1
GI + + Guarantor internal identifieradded v2.3
GL + + General ledger numberadded v2.5
GN + + Guarantor external identifieradded v2.3
HC + + Health Card Numberadded v2.4
IND + + Indigenous/Aboriginaladded v2.5
JHN + + Jurisdictional health number (Canada)added v2.4
LACSN + + Laboratory Accession IDadded v2.7
LANR + + Lifelong physician numberadded v2.7
LI + + Labor and industries numberadded v2.5
LN + + License numberadded v2.3.1
LR + + Local Registry IDadded v2.3.1
MA + + Patient Medicaid numberadded v2.3
MB + + Member Numberadded v2.5
MC + + Patient's Medicare numberadded v2.3
MCD + + Practitioner Medicaid numberadded v2.5
MCN + + Microchip Numberadded v2.4
MCR + + Practitioner Medicare numberadded v2.5
MCT + + Marriage Certificateadded v2.6
MD + + Medical License numberadded v2.5
MI + + Military ID numberadded v2.5
MR + + Medical record numberadded v2.3
MRT + + Temporary Medical Record Numberadded v2.5
MS + + MasterCardadded v2.3
NBSNR + + Secondary physician office numberadded v2.7
NCT + + Naturalization Certificateadded v2.6
NE + + National employer identifieradded v2.3.1
NH + + National Health Plan Identifieradded v2.3.1
NI + + National unique individual identifieradded v2.3.1
NII + + National Insurance Organization Identifieradded v2.5
NIIP + + National Insurance Payor Identifier (Payor)added v2.5
NNxxx + + National Person Identifier where the xxx is the ISO table 3166 3-character (alphabetic) country codeadded v2.3.1
NP + + Nurse practitioner numberadded v2.5
NPI + + National provider identifieradded v2.3.1
OD + + Optometrist license numberadded v2.5
PA + + Physician Assistant numberadded v2.5
PC + + Parole Cardadded v2.6
PCN + + Penitentiary/correctional institution Numberadded v2.5
PE + + Living Subject Enterprise Numberadded v2.5
PEN + + Pension Numberadded v2.4
PI + + Patient internal identifieradded v2.3
PN + + Person numberadded v2.3.1
PNT + + Temporary Living Subject Numberadded v2.5
PPIN + + Medicare/CMS Performing Provider Identification Numberadded v2.6
PPN + + Passport numberadded v2.5
PRC + + Permanent Resident Card Numberadded v2.5
PRN + + Provider numberadded v2.3.1
PT + + Patient external identifieradded v2.3
QA + + QA numberadded v2.5
RI + + Resource identifieradded v2.5
RN + + Registered Nurse Numberadded v2.5
RPH + + Pharmacist license numberadded v2.5
RR + + Railroad Retirement numberadded v2.3
RRI + + Regional registry IDadded v2.3.1
RRP + + Railroad Retirement Provideradded v2.6
SID + + Specimen IDadded v2.7
SL + + State licenseadded v2.3.1
SN + + Subscriber Numberadded v2.5
SP + + Study Permitadded v2.6
SR + + State registry IDadded v2.3.1
SS + + Social Security numberadded v2.3
TAX + + Tax ID numberadded v2.5
TN + + Treaty Number/ (Canada)added v2.5
TPR + + Temporary Permanent Resident (Canada)added v2.6
U + + Unspecified identifieradded v2.3.1
UPIN + + Medicare/CMS (formerly HCFA)'s Universal Physician Identification numbersadded v2.3.1
USID + + Unique Specimen IDadded v2.7
VN + + Visit numberadded v2.3
VP + + Visitor Permitadded v2.6
VS + + VISAadded v2.3
WC + + WIC identifieradded v2.3.1
WCN + + Workers' Comp Numberadded v2.4
WP + + Work Permitadded v2.6
XX + + Organization identifieradded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Price Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AP + + administrative price or handling feeadded v2.3
DC + + direct unit costadded v2.3
IC + + indirect unit costadded v2.3
PF + + professional fee for performing provideradded v2.3
TF + + technology fee for use of equipmentadded v2.3
TP + + total priceadded v2.3
UP + + unit price, may be based on length of procedure or serviceadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Segment action code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Add/Insertadded v2.3
D + + Deleteadded v2.3
U + + Updateadded v2.3
X + + No Changeadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Processing Mode

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Archiveadded v2.3.1
I + + Initial loadadded v2.3.1
Not present + + Not present (the default, meaning current processing)added v2.4
R + + Restore from archiveadded v2.3.1
T + + Current processing, transmitted at intervals (scheduled or on demand)added v2.3.1
a + + Archiveadded v2.3, removed after v2.3
i + + Initial Loadadded v2.3, removed after v2.3
not present + + Not present (the default, meaning current processing)added v2.3, removed after v2.3.1
r + + Restore from Archiveadded v2.3, removed after v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Relational Conjunction

+ + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AND + + Defaultadded v2.3
OR + + + added v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Alternate Character Sets

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
8859/1 + + The printable characters from the ISO 8859/1 Character setadded v2.3
8859/15 + + The printable characters from the ISO 8859/15 (Latin-15)added v2.6
8859/2 + + The printable characters from the ISO 8859/2 Character setadded v2.3
8859/3 + + The printable characters from the ISO 8859/3 Character setadded v2.3
8859/4 + + The printable characters from the ISO 8859/4 Character setadded v2.3
8859/5 + + The printable characters from the ISO 8859/5 Character setadded v2.3
8859/6 + + The printable characters from the ISO 8859/6 Character setadded v2.3
8859/7 + + The printable characters from the ISO 8859/7 Character setadded v2.3
8859/8 + + The printable characters from the ISO 8859/8 Character setadded v2.3
8859/9 + + The printable characters from the ISO 8859/9 Character setadded v2.3
ASCII + + The printable 7-bit ASCII character set.added v2.3
BIG-5 + + Code for Taiwanese Character Set (BIG-5)added v2.5
CNS 11643-1992 + + Code for Taiwanese Character Set (CNS 11643-1992)added v2.5
GB 18030-2000 + + Code for Chinese Character Set (GB 18030-2000)added v2.5
ISO IR14 + + Code for Information Exchange (one byte)(JIS X 0201-1976).added v2.3.1
ISO IR159 + + Code of the supplementary Japanese Graphic Character set for information interchange (JIS X 0212-1990).added v2.3.1
ISO IR6 + + ASCII graphic character set consisting of 94 characters.added v2.7
ISO IR87 + + Code for the Japanese Graphic Character set for information interchange (JIS X 0208-1990),added v2.3.1
JAS2020 + + A subset of ISO2020 used for most Kanjii transmissionsadded v2.3, removed after v2.3
JIS X 0202 + + ISO 2022 with escape sequences for Kanjiiadded v2.3, removed after v2.3
KS X 1001 + + Code for Korean Character Set (KS X 1001)added v2.5
UNICODE + + The world wide character standard from ISO/IEC 10646-1-1993added v2.3
UNICODE UTF-16 + + UCS Transformation Format, 16-bit formadded v2.5
UNICODE UTF-32 + + UCS Transformation Format, 32-bit formadded v2.5
UNICODE UTF-8 + + UCS Transformation Format, 8-bit formadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Manufacturers of Vaccines (code=MVX)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AB + + Abbott Laboratoriesadded v2.3
AD + + Adams Laboratories, Inc.added v2.3
ALP + + Alpha Therapeutic Corporationadded v2.3
AR + + Armouradded v2.3
AVB + + Aventis Behring L.L.C.added v2.5
AVI + + Avironadded v2.3.1
BA + + Baxter Healthcare Corporationadded v2.3
BAH + + Baxter Healthcare Corporationadded v2.5
BAY + + Bayer Corporationadded v2.3
BP + + Berna Productsadded v2.3
BPC + + Berna Products Corporationadded v2.3.1
CEN + + Centeon L.L.C.added v2.3.1
CHI + + Chiron Corporationadded v2.3.1
CMP + + Celltech Medeva Pharmaceuticalsadded v2.5
CNJ + + Cangene Corporationadded v2.6
CON + + Connaughtadded v2.3
DVC + + DynPort Vaccine Company, LLCadded v2.6
EVN + + Evans Medical Limitedadded v2.3
GEO + + GeoVax Labs, Inc.added v2.6
GRE + + Greer Laboratories, Inc.added v2.3
IAG + + Immuno International AGadded v2.3.1
IM + + Merieuxadded v2.3
IUS + + Immuno-U.S., Inc.added v2.3
JPN + + The Research Foundation for Microbial Diseases of Osaka Universityadded v2.3
KGC + + Korea Green Cross Corporationadded v2.3
LED + + Lederleadded v2.3
MA + + Massachusetts Public Health Biologic Laboratoriesadded v2.3
MBL + + Massachusetts Biologic Laboratoriesadded v2.5
MED + + MedImmune, Inc.added v2.3.1
MIL + + Milesadded v2.3
MIP + + Bioport Corporationadded v2.3
MSD + + Merck & Co., Inc.added v2.3
NAB + + NABIadded v2.3
NAV + + North American Vaccine, Inc.added v2.3.1
NOV + + Novartis Pharmaceutical Corporationadded v2.3.1
NVX + + Novavax, Inc.added v2.6
NYB + + New York Blood Centeradded v2.3
ORT + + Ortho-Clinical Diagnosticsadded v2.3.1
OTC + + Organon Teknika Corporationadded v2.3
OTH + + Other manufactureradded v2.3
PD + + Parkedale Pharmaceuticalsadded v2.3
PMC + + sanofi pasteuradded v2.3.1
PRX + + Praxis Biologicsadded v2.3
PWJ + + PowderJect Pharmaceuticalsadded v2.5
SCL + + Sclavo, Inc.added v2.3
SI + + Swiss Serum and Vaccine Inst.added v2.3
SKB + + GlaxoSmithKlineadded v2.3
SOL + + Solvay Pharmaceuticalsadded v2.6
TAL + + Talecris Biotherapeuticsadded v2.6
UNK + + Unknown manufactureradded v2.3
USA + + United States Army Medical Research and Material Commandadded v2.3.1
VXG + + VaxGenadded v2.6
WA + + Wyeth-Ayerstadded v2.3
WAL + + Wyeth-Ayerstadded v2.3.1
ZLB + + ZLB Behringadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Report Timing

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
10D + + 10 day reportadded v2.3
15D + + 15 day reportadded v2.3
30D + + 30 day reportadded v2.3
3D + + 3 day reportadded v2.3
7D + + 7 day reportadded v2.3
AD + + Additional informationadded v2.3
CO + + Correctionadded v2.3
DE + + Device evaluationadded v2.3
PD + + Periodicadded v2.3
RQ + + Requested informationadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Report Source

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Clinical trialadded v2.3
D + + Database/registry/poison control centeradded v2.3
E + + Distributoradded v2.3
H + + Health professionaladded v2.3
L + + Literatureadded v2.3
M + + Manufacturer/marketing authority holderadded v2.3
N + + Non-healthcare professionaladded v2.3
O + + Otheradded v2.3
P + + Patientadded v2.3
R + + Regulatory agencyadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Event Reported To

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
D + + Distributoradded v2.3
L + + Local facility/user facilityadded v2.3
M + + Manufactureradded v2.3
R + + Regulatory agencyadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Event Qualification

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Abuseadded v2.3
B + + Unexpected beneficial effectadded v2.3
D + + Dependencyadded v2.3
I + + Interactionadded v2.3
L + + Lack of expect therapeutic effectadded v2.3
M + + Misuseadded v2.3
O + + Overdoseadded v2.3
W + + Drug withdrawaladded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Event Seriousness

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
N + + Noadded v2.3
S + + Significantadded v2.3
Y + + Yesadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Event Expected

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
N + + Noadded v2.3
U + + Unknownadded v2.3
Y + + Yesadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Event Consequence

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Congenital anomaly/birth defectadded v2.3
D + + Deathadded v2.3
H + + Caused hospitalizedadded v2.3
I + + Incapacity which is significant, persistent or permanentadded v2.3
J + + Disability which is significant, persistent or permanentadded v2.3
L + + Life threateningadded v2.3
O + + Otheradded v2.3
P + + Prolonged hospitalizationadded v2.3
R + + Required intervention to prevent permanent impairment/damageadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Patient Outcome

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
D + + Diedadded v2.3
F + + Fully recoveredadded v2.3
N + + Not recovering/unchangedadded v2.3
R + + Recoveringadded v2.3
S + + Sequelaeadded v2.3
U + + Unknownadded v2.3
W + + Worseningadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Primary Observer's Qualification

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Health care consumer/patientadded v2.3
H + + Other health professionaladded v2.3
L + + Lawyer/attorneyadded v2.3
M + + Mid-level professional (nurse, nurse practitioner, physician's assistant)added v2.3
O + + Other non-health professionaladded v2.3
P + + Physician (osteopath, homeopath)added v2.3
R + + Pharmacistadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Identity May Be Divulged

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
N + + Noadded v2.3
NA + + Not applicableadded v2.3
Y + + Yesadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Status of Evaluation

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Evaluation anticipated, but not yet begunadded v2.3
C + + Product received in condition which made analysis impossibleadded v2.3
D + + Product discarded -- unable to follow upadded v2.3
I + + Product remains implanted -- unable to follow upadded v2.3
K + + Problem already known, no evaluation necessaryadded v2.3
O + + Otheradded v2.3
P + + Evaluation in progressadded v2.3
Q + + Product under quarantine -- unable to follow upadded v2.3
R + + Product under recall/corrective actionadded v2.3
U + + Product unavailable for follow up investigationadded v2.3
X + + Product not made by companyadded v2.3
Y + + Evaluation completedadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Product Source

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Actual product involved in incident was evaluatedadded v2.3
L + + A product from the same lot as the actual product involved was evaluatedadded v2.3
N + + A product from a controlled/non-related inventory was evaluatedadded v2.3
R + + A product from a reserve sample was evaluatedadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Relatedness Assessment

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
H + + Highly probableadded v2.3
I + + Improbableadded v2.3
M + + Moderately probableadded v2.3
N + + Not relatedadded v2.3
S + + Somewhat probableadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Action Taken in Response to the Event

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
DI + + Product dose or frequency of use increasedadded v2.3
DR + + Product dose or frequency of use reducedadded v2.3
N + + Noneadded v2.3
OT + + Otheradded v2.3
WP + + Product withdrawn permanentlyadded v2.3
WT + + Product withdrawn temporarilyadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Causality Observations

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AW + + Abatement of event after product withdrawnadded v2.3
BE + + Event recurred after product reintroducedadded v2.3
DR + + Dose response observedadded v2.3
EX + + Alternative explanations for the event availableadded v2.3
IN + + Event occurred after product introducedadded v2.3
LI + + Literature reports association of product with eventadded v2.3
OE + + Occurrence of event was confirmed by objective evidenceadded v2.3
OT + + Otheradded v2.3
PL + + Effect observed when patient receives placeboadded v2.3
SE + + Similar events in past for this patientadded v2.3
TC + + Toxic levels of product documented in blood or body fluidsadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Kind of Quantity

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ABS + + Absorbanceadded v2.3.1
ACNC + + Concentration, Arbitrary Substanceadded v2.3.1
ACT + + *Activityadded v2.3.1
APER + + Appearanceadded v2.3.1
ARB + + *Arbitraryadded v2.3.1
AREA + + Areaadded v2.3.1
ASPECT + + Aspectadded v2.3.1
CACT + + *Catalytic Activityadded v2.3.1
CCNT + + *Catalytic Contentadded v2.3.1
CCRTO + + Catalytic Concentration Ratioadded v2.3.1
CFR + + *Catalytic Fractionadded v2.3.1
CLAS + + Classadded v2.3.1
CNC + + *Catalytic Concentrationadded v2.3.1
CNST + + *Constantadded v2.3.1
COEF + + *Coefficientadded v2.3.1
COLOR + + Coloradded v2.3.1
CONS + + Consistencyadded v2.3.1
CRAT + + *Catalytic Rateadded v2.3.1
CRTO + + Catalytic Ratioadded v2.3.1
DEN + + Densityadded v2.3.1
DEV + + Deviceadded v2.3.1
DIFF + + *Differenceadded v2.3.1
ELAS + + Elasticityadded v2.3.1
ELPOT + + Electrical Potential (Voltage)added v2.3.1
ELRAT + + Electrical current (amperage)added v2.3.1
ELRES + + Electrical Resistanceadded v2.3.1
ENGR + + Energyadded v2.3.1
ENT + + *Entiticadded v2.3.1
ENTCAT + + *Entitic Catalytic Activityadded v2.3.1
ENTNUM + + *Entitic Numberadded v2.3.1
ENTSUB + + *Entitic Substance of Amountadded v2.3.1
ENTVOL + + *Entitic Volumeadded v2.3.1
EQL + + Equilibriumadded v2.3.1
FORCE + + Mechanical forceadded v2.3.1
FREQ + + Frequencyadded v2.3.1
IMP + + Impression/ interpretation of studyadded v2.3.1
KINV + + *Kinematic Viscosityadded v2.3.1
LEN + + Lengthadded v2.3.1
LINC + + *Length Incrementadded v2.3.1
LIQ + + *Liquefactionadded v2.3.1
MASS + + *Massadded v2.3.1
MCNC + + *Mass Concentrationadded v2.3.1
MCNT + + Mass Contentadded v2.3.1
MCRTO + + *Mass Concentration Ratioadded v2.3.1
MFR + + *Mass Fractionadded v2.3.1
MGFLUX + + Magnetic fluxadded v2.3.1
MINC + + *Mass Incrementadded v2.3.1
MORPH + + Morphologyadded v2.3.1
MOTIL + + Motilityadded v2.3.1
MRAT + + *Mass Rateadded v2.3.1
MRTO + + *Mass Ratioadded v2.3.1
NCNC + + *Number Concentrationadded v2.3.1
NCNT + + *Number Contentadded v2.3.1
NFR + + *Number Fractionadded v2.3.1
NRTO + + *Number Ratioadded v2.3.1
NUM + + *Numberadded v2.3.1
OD + + Optical densityadded v2.3.1
OSMOL + + *Osmolalityadded v2.3.1
PRES + + *Pressure (Partial)added v2.3.1
PRID + + Presence/Identity/Existenceadded v2.3.1
PWR + + Power (wattage)added v2.3.1
RANGE + + *Rangesadded v2.3.1
RATIO + + *Ratiosadded v2.3.1
RCRLTM + + *Reciprocal Relative Timeadded v2.3.1
RDEN + + *Relative Densityadded v2.3.1
REL + + *Relativeadded v2.3.1
RLMCNC + + *Relative Mass Concentrationadded v2.3.1
RLSCNC + + *Relative Substance Concentrationadded v2.3.1
RLTM + + *Relative Timeadded v2.3.1
SATFR + + *Saturation Fractionadded v2.3.1
SCNC + + *Substance Concentrationadded v2.3.1
SCNCIN + + *Substance Concentration Incrementadded v2.3.1
SCNT + + *Substance Contentadded v2.3.1
SCNTR + + *Substance Content Rateadded v2.3.1
SCRTO + + *Substance Concentration Ratioadded v2.3.1
SFR + + *Substance Fractionadded v2.3.1
SHAPE + + Shapeadded v2.3.1
SMELL + + Smelladded v2.3.1
SRAT + + *Substance Rateadded v2.3.1
SRTO + + *Substance Ratioadded v2.3.1
SUB + + *Substance Amountadded v2.3.1
SUSC + + *Susceptibilityadded v2.3.1
TASTE + + Tasteadded v2.3.1
TEMP + + *Temperatureadded v2.3.1
TEMPDF + + *Temperature Differenceadded v2.3.1
TEMPIN + + *Temperature Incrementadded v2.3.1
THRMCNC + + *Threshold Mass Concentrationadded v2.3.1
THRSCNC + + *Threshold Substance Concentrationadded v2.3.1
TIME + + *Time (e.g. seconds)added v2.3.1
TITR + + *Dilution Factor (Titer)added v2.3.1
TMDF + + *Time Differenceadded v2.3.1
TMSTP + + *Time Stamp-Date and Timeadded v2.3.1
TRTO + + *Time Ratioadded v2.3.1
TYPE + + *Typeadded v2.3.1
VCNT + + *Volume Contentadded v2.3.1
VEL + + *Velocityadded v2.3.1
VELRT + + *Velocity Ratioadded v2.3.1
VFR + + *Volume Fractionadded v2.3.1
VISC + + *Viscosityadded v2.3.1
VOL + + *Volumeadded v2.3.1
VRAT + + *Volume Rateadded v2.3.1
VRTO + + *Volume Ratioadded v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Time Delay Post Challenge

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
10D + + 10 daysadded v2.3.1
10M + + 10 minutes post challengeadded v2.3.1
12H + + 12 hours post challengeadded v2.3.1
15M + + 15 minutes post challengeadded v2.3.1
1H + + 1 hour post challengeadded v2.3.1
1L + + 1 month (30 days) post challengeadded v2.3.1
1M + + 1 minute post challengeadded v2.3.1
1W + + 1 weekadded v2.3.1
2.5H + + 2 ½ hours post challengeadded v2.3.1
20M + + 20 minutes post challengeadded v2.3.1
24H + + 24 hours post challengeadded v2.3.1
25M + + 25 minutes post challengeadded v2.3.1
2D + + 2 daysadded v2.3.1
2H + + 2 hours post challengeadded v2.3.1
2L + + 2 months (60 days) post challengeadded v2.3.1
2M + + 2 minutes post challengeadded v2.3.1
2W + + 2 weeksadded v2.3.1
30M + + 30 minutes post challengeadded v2.3.1
3D + + 3 daysadded v2.3.1
3H + + 3 hours post challengeadded v2.3.1
3L + + 3 months (90 days) post challengeadded v2.3.1
3M + + 3 minutes post challengeadded v2.3.1
3W + + 3 weeksadded v2.3.1
4D + + 4 daysadded v2.3.1
4H + + 4 hours post challengeadded v2.3.1
4M + + 4 minutes post challengeadded v2.3.1
4W + + 4 weeksadded v2.3.1
5D + + 5 daysadded v2.3.1
5H + + 5 hours post challengeadded v2.3.1
5M + + 5 minutes post challengeadded v2.3.1
6D + + 6 daysadded v2.3.1
6H + + 6 hours post challengeadded v2.3.1
6M + + 6 minutes post challengeadded v2.3.1
7D + + 7 daysadded v2.3.1
7H + + 7 hours post challengeadded v2.3.1
7M + + 7 minutes post challengeadded v2.3.1
8H + + 8 hours post challengeadded v2.3.1
8H SHIFT + + 8 hours aligned on nursing shiftsadded v2.3.1
8M + + 8 minutes post challengeadded v2.3.1
9M + + 9 minutes post challengeadded v2.3.1
BS + + Baseline (time just before the challenge)added v2.3.1
PEAK + + The time post drug dose at which the highest drug level is reached (differs by drug)added v2.3.1
RANDOM + + Time from the challenge, or dose not specified. (random)added v2.3.1
TROUGH + + The time post drug dose at which the lowest drug level is reached (varies with drug)added v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Days of the Week

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
FRI + + Fridayadded v2.3
MON + + Mondayadded v2.3
SAT + + Saturdayadded v2.3
SUN + + Sundayadded v2.3
THU + + Thursdayadded v2.3
TUE + + Tuesdayadded v2.3
WED + + Wednesdayadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Document Completion Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AU + + Authenticatedadded v2.3
CA + + Canceledadded v2.3, removed after v2.3
DI + + Dictatedadded v2.3
DO + + Documentedadded v2.3
IN + + Incompleteadded v2.3
IP + + In Progressadded v2.3
LA + + Legally authenticatedadded v2.3
PA + + Pre-authenticatedadded v2.3
PR + + Preliminaryadded v2.3, removed after v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Document Confidentiality Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
1 + + ASTM Level 1added v2.3, removed after v2.3
2 + + ASTM Level 2added v2.3, removed after v2.3
3 + + ASTM Level 3added v2.3, removed after v2.3
R + + Restrictedadded v2.3.1
RE + + Restrictedadded v2.3, removed after v2.3
U + + Usual controladded v2.3.1
UC + + Usual controladded v2.3, removed after v2.3
V + + Very restrictedadded v2.3.1
VR + + Very restrictedadded v2.3, removed after v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Document Availability Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AV + + Available for patient careadded v2.3
CA + + Deletedadded v2.3.1
OB + + Obsoleteadded v2.3.1
UN + + Unavailable for patient careadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Document Modification Status

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
IN + + Incrementaladded v2.3, removed after v2.3
RP + + Replacementadded v2.3, removed after v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Document Storage Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AA + + Active and archivedadded v2.3
AC + + Activeadded v2.3
AR + + Archived (not active)added v2.3
PU + + Purgedadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Appointment reason codes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
CHECKUP + + A routine check-up, such as an annual physicaladded v2.3
EMERGENCY + + Emergency appointmentadded v2.3
FOLLOWUP + + A follow up visit from a previous appointmentadded v2.3
ROUTINE + + Routine appointment - default if not valuedadded v2.3
WALKIN + + A previously unscheduled walk-in visitadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Allow Substitution Codes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
CONFIRM + + Contact the Placer Contact Person prior to making any substitutions of this resourceadded v2.3, removed after v2.3
Confirm + + Contact the Placer Contact Person prior to making any substitutions of this resourceadded v2.3.1
NO + + Substitution of this resource is not allowedadded v2.3, removed after v2.3
NOTIFY + + Notify the Placer Contact Person, through normal institutional procedures, that a substitution of this resource has been madeadded v2.3, removed after v2.3
No + + Substitution of this resource is not allowedadded v2.3.1
Notify + + Notify the Placer Contact Person, through normal institutional procedures, that a substitution of this resource has been madeadded v2.3.1
YES + + Substitution of this resource is allowedadded v2.3, removed after v2.3
Yes + + Substitution of this resource is allowedadded v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Referral Priority

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + ASAPadded v2.3
R + + Routineadded v2.3
S + + STATadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Referral Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
HOM + + Home Careadded v2.3, removed after v2.3
Hom + + Home Careadded v2.3.1
LAB + + Laboratoryadded v2.3, removed after v2.3
Lab + + Laboratoryadded v2.3.1
MED + + Medicaladded v2.3, removed after v2.3
Med + + Medicaladded v2.3.1
PSY + + Psychiatricadded v2.3, removed after v2.3
Psy + + Psychiatricadded v2.3.1
RAD + + Radiologyadded v2.3, removed after v2.3
Rad + + Radiologyadded v2.3.1
SKN + + Skilled Nursingadded v2.3, removed after v2.3
Skn + + Skilled Nursingadded v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Referral Disposition

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AM + + Assume Managementadded v2.3
RP + + Return Patient After Evaluationadded v2.3
SO + + Second Opinionadded v2.3
WR + + Send Written Reportadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Referral Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Acceptedadded v2.3
E + + Expiredadded v2.3
P + + Pendingadded v2.3
R + + Rejectedadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Referral Category

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Ambulatoryadded v2.3
E + + Emergencyadded v2.3
I + + Inpatientadded v2.3
O + + Outpatientadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Provider Role

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
CP + + Consulting Provideradded v2.3
PP + + Primary Care Provideradded v2.3
RP + + Referring Provideradded v2.3
RT + + Referred to Provideradded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Problem/Goal Action Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AD + + ADDadded v2.3
CO + + CORRECTadded v2.3
DE + + DELETEadded v2.3
LI + + LINKadded v2.3
UC + + UNCHANGED *added v2.3
UN + + UNLINKadded v2.3
UP + + UPDATEadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

MIME base64 encoding characters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
(pad) + + =added v2.4, removed after v2.4
0 + + Aadded v2.4, removed after v2.4
1 + + Badded v2.4, removed after v2.4
10 + + Kadded v2.4, removed after v2.4
11 + + Ladded v2.4, removed after v2.4
12 + + Madded v2.4, removed after v2.4
13 + + Nadded v2.4, removed after v2.4
14 + + Oadded v2.4, removed after v2.4
15 + + Padded v2.4, removed after v2.4
16 + + Qadded v2.4, removed after v2.4
17 + + Radded v2.4, removed after v2.4
18 + + Sadded v2.4, removed after v2.4
19 + + Tadded v2.4, removed after v2.4
2 + + Cadded v2.4, removed after v2.4
20 + + Uadded v2.4, removed after v2.4
21 + + Vadded v2.4, removed after v2.4
22 + + Wadded v2.4, removed after v2.4
23 + + Xadded v2.4, removed after v2.4
24 + + Yadded v2.4, removed after v2.4
25 + + Zadded v2.4, removed after v2.4
26 + + aadded v2.4, removed after v2.4
27 + + badded v2.4, removed after v2.4
28 + + cadded v2.4, removed after v2.4
29 + + dadded v2.4, removed after v2.4
3 + + Dadded v2.4, removed after v2.4
30 + + eadded v2.4, removed after v2.4
31 + + fadded v2.4, removed after v2.4
32 + + gadded v2.4, removed after v2.4
33 + + hadded v2.4, removed after v2.4
34 + + Iadded v2.4, removed after v2.4
35 + + jadded v2.4, removed after v2.4
36 + + kadded v2.4, removed after v2.4
37 + + ladded v2.4, removed after v2.4
38 + + madded v2.4, removed after v2.4
39 + + nadded v2.4, removed after v2.4
4 + + Eadded v2.4, removed after v2.4
40 + + oadded v2.4, removed after v2.4
41 + + padded v2.4, removed after v2.4
42 + + qadded v2.4, removed after v2.4
43 + + radded v2.4, removed after v2.4
44 + + sadded v2.4, removed after v2.4
45 + + tadded v2.4, removed after v2.4
46 + + uadded v2.4, removed after v2.4
47 + + vadded v2.4, removed after v2.4
48 + + wadded v2.4, removed after v2.4
49 + + xadded v2.4, removed after v2.4
5 + + Fadded v2.4, removed after v2.4
50 + + yadded v2.4, removed after v2.4
51 + + zadded v2.4, removed after v2.4
52 + + 0added v2.4, removed after v2.4
53 + + 1added v2.4, removed after v2.4
54 + + 2added v2.4, removed after v2.4
55 + + 3added v2.4, removed after v2.4
56 + + 4added v2.4, removed after v2.4
57 + + 5added v2.4, removed after v2.4
58 + + 6added v2.4, removed after v2.4
59 + + 7added v2.4, removed after v2.4
6 + + Gadded v2.4, removed after v2.4
60 + + 8added v2.4, removed after v2.4
61 + + 9added v2.4, removed after v2.4
62 + + +added v2.4, removed after v2.4
63 + + /added v2.4, removed after v2.4
7 + + Hadded v2.4, removed after v2.4
8 + + Iadded v2.4, removed after v2.4
9 + + Jadded v2.4, removed after v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Subtype of Referenced Data

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
... + + Source RFC 2046added v2.6, removed after v2.6
BASIC + + ISDN PCM audio dataadded v2.3, removed after v2.5.1
DICOM + + Digital Imaging and Communications in Medicineadded v2.3, removed after v2.5.1
FAX + + Facsimile dataadded v2.3, removed after v2.5.1
GIF + + Graphics Interchange Formatadded v2.3, removed after v2.5.1
HTML + + Hypertext Markup Languageadded v2.3.1, removed after v2.5.1
JOT + + Electronic ink data (Jot 1.0 standard)added v2.3, removed after v2.5.1
JPEG + + Joint Photographic Experts Groupadded v2.3, removed after v2.5.1
Octet-stream + + Uninterpreted binary dataadded v2.3, removed after v2.5.1
PICT + + PICT format image dataadded v2.3, removed after v2.5.1
PostScript + + PostScript programadded v2.3, removed after v2.5.1
RTF + + Rich Text Formatadded v2.3.1, removed after v2.5.1
SGML + + Standard Generalized Markup Language (HL7 V2.3.1 and later)added v2.3.1, removed after v2.5.1
TIFF + + TIFF image dataadded v2.3, removed after v2.5.1
XML + + Extensible Markup Language (HL7 V2.3.1 and later)added v2.3.1, removed after v2.5.1
x-hl7-cda-level-one + + HL7 Clinical Document Architecture Level One documentadded v2.4
… + + Source RFC 2046added v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Vaccines Administered (code = CVX) (parenteral, unless oral is noted)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
01 + + DTPadded v2.3.1
02 + + OPVadded v2.3.1
03 + + MMRadded v2.3.1
04 + + M/Radded v2.3.1
05 + + measlesadded v2.3.1
06 + + rubellaadded v2.3.1
07 + + mumpsadded v2.3.1
08 + + Hep B, adolescent or pediatricadded v2.3.1
09 + + Td (adult)added v2.3.1
10 + + IPVadded v2.3.1
100 + + pneumococcal conjugateadded v2.4
101 + + typhoid, ViCPsadded v2.4
102 + + DTP-Hib-Hep Badded v2.5
103 + + meningococcal C conjugateadded v2.5
104 + + Hep A-Hep Badded v2.5
105 + + vaccinia (smallpox) dilutedadded v2.5
106 + + DTaP, 5 pertussis antigens6added v2.5
107 + + DTaP, NOSadded v2.5
108 + + meningococcal, NOSadded v2.5
109 + + pneumococcal, NOSadded v2.5
11 + + pertussisadded v2.3.1
110 + + DTaP-Hep B-IPVadded v2.6
111 + + influenza, live, intranasaladded v2.6
112 + + tetanus toxoid, NOSadded v2.6
113 + + Td (adult)added v2.6
114 + + meningococcal A,C,Y,W-135 diphtheria conjugateadded v2.6
115 + + Tdapadded v2.6
116 + + rotavirus, pentavalentadded v2.6
117 + + VZIG (IND)added v2.6
118 + + HPV, bivalentadded v2.6
119 + + rotavirus, monovalentadded v2.6
12 + + diphtheria antitoxinadded v2.3.1
120 + + DTaP-Hib-IPVadded v2.6
121 + + zosteradded v2.6
122 + + rotavirus, NOS1added v2.6
13 + + TIGadded v2.3.1
14 + + IG, NOSadded v2.3.1
15 + + influenza, split (incl. purified surface antigen)added v2.3.1
16 + + influenza, wholeadded v2.3.1
17 + + Hib, NOSadded v2.3.1
18 + + rabies, intramuscular injectionadded v2.3.1
19 + + BCGadded v2.3.1
20 + + DTaPadded v2.3.1
21 + + varicellaadded v2.3.1
22 + + DTP-Hibadded v2.3.1
23 + + plagueadded v2.3.1
24 + + anthraxadded v2.3.1
25 + + typhoid, oraladded v2.3.1
26 + + choleraadded v2.3.1
27 + + botulinum antitoxinadded v2.3.1
28 + + DT (pediatric)added v2.3.1
29 + + CMVIGadded v2.3.1
30 + + HBIGadded v2.3.1
31 + + Hep A, pediatric, NOSadded v2.3.1
32 + + meningococcaladded v2.3.1
33 + + pneumococcaladded v2.3.1
34 + + RIGadded v2.3.1
35 + + tetanus toxoidadded v2.3.1
36 + + VZIGadded v2.3.1
37 + + yellow feveradded v2.3.1
38 + + rubella/mumpsadded v2.3.1
39 + + Japanese encephalitisadded v2.3.1
40 + + rabies, intradermal injectionadded v2.3.1
41 + + typhoid, parenteraladded v2.3.1
42 + + Hep B, adolescent/high risk infant2added v2.3.1
43 + + Hep B, adult4added v2.3.1
44 + + Hep B, dialysisadded v2.3.1
45 + + Hep B, NOSadded v2.3.1
46 + + Hib (PRP-D)added v2.3.1
47 + + Hib (HbOC)added v2.3.1
48 + + Hib (PRP-T)added v2.3.1
49 + + Hib (PRP-OMP)added v2.3.1
50 + + DTaP-Hibadded v2.3.1
51 + + Hib-Hep Badded v2.3.1
52 + + Hep A, adultadded v2.3.1
53 + + typhoid, parenteral, AKD (U.S. military)added v2.3.1
54 + + adenovirus, type 4added v2.3.1
55 + + adenovirus, type 7added v2.3.1
56 + + dengue feveradded v2.3.1
57 + + hantavirusadded v2.3.1
58 + + Hep Cadded v2.3.1
59 + + Hep Eadded v2.3.1
60 + + herpes simplex 2added v2.3.1
61 + + HIVadded v2.3.1
62 + + HPV, quadrivalentadded v2.3.1
63 + + Junin virusadded v2.3.1
64 + + leishmaniasisadded v2.3.1
65 + + leprosyadded v2.3.1
66 + + Lyme diseaseadded v2.3.1
67 + + malariaadded v2.3.1
68 + + melanomaadded v2.3.1
69 + + parainfluenza-3added v2.3.1
70 + + Q feveradded v2.3.1
71 + + RSV-IGIVadded v2.3.1
72 + + rheumatic feveradded v2.3.1
73 + + Rift Valley feveradded v2.3.1
74 + + rotavirus, tetravalentadded v2.3.1
75 + + vaccinia (smallpox)added v2.3.1
76 + + Staphylococcus bacterio lysateadded v2.3.1
77 + + tick-borne encephalitisadded v2.3.1
78 + + tularemia vaccineadded v2.3.1
79 + + vaccinia immune globulinadded v2.3.1
80 + + VEE, liveadded v2.3.1
81 + + VEE, inactivatedadded v2.3.1
82 + + adenovirus, NOS1added v2.3.1
83 + + Hep A, ped/adol, 2 doseadded v2.3.1
84 + + Hep A, ped/adol, 3 doseadded v2.3.1
85 + + Hep A, NOSadded v2.3.1
86 + + IGadded v2.3.1
87 + + IGIVadded v2.3.1
88 + + influenza, NOSadded v2.3.1
89 + + polio, NOSadded v2.3.1
90 + + rabies, NOSadded v2.3.1
91 + + typhoid, NOSadded v2.3.1
92 + + VEE, NOSadded v2.3.1
93 + + RSV-MAbadded v2.4
94 + + MMRVadded v2.4
95 + + TST-OT tine testadded v2.4
96 + + TST-PPD intradermaladded v2.4
97 + + TST-PPD tine testadded v2.4
98 + + TST, NOSadded v2.4
99 + + RESERVED - do not use3added v2.4
998 + + no vaccine administered5added v2.5
999 + + unknownadded v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

CP Range Type

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
F + + Flat-rate. Apply the entire price to this interval, do not pro-rate the price if the full interval has not occurred/been consumedadded v2.3.1
P + + Pro-rate. Apply this price to this interval, pro-rated by whatever portion of the interval has occurred/been consumedadded v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Encoding

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + No encoding - data are displayable ASCII characters.added v2.3.1
Base64 + + Encoding as defined by MIME (Multipurpose Internet Mail Extensions) standard RFC 1521. Four consecutive ASCII characters represent three consecutive octets of binary data. Base64 utilizes a 65-character subset of US-ASCII, consisting of both the upper andadded v2.3.1
Hex + + Hexadecimal encoding - consecutive pairs of hexadecimal digits represent consecutive single octets.added v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Organ Donor Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
F + + Yes, patient is a documented donor, but documentation is not on fileadded v2.3
I + + No, patient is not a documented donor, but information was providedadded v2.3.1
N + + No, patient has not agreed to be a donoradded v2.3
P + + Patient leaves organ donation decision to a specific personadded v2.4
R + + Patient leaves organ donation decision to relativesadded v2.4
U + + Unknownadded v2.3
Y + + Yes, patient is a documented donor and documentation is on fileadded v2.3
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

State/Province

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
... + + No suggested values definedadded v2.5.1, removed after v2.6
AB + + Alberta (US and Canada)added v2.5, removed after v2.6
MI + + Michigan (US)added v2.5, removed after v2.6
… + + No suggested values definedadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Special Program Indicator

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
... + + No suggested values definedadded v2.5.1, removed after v2.6
01 + + EPSDT-CHAPadded v2.3.1, removed after v2.4
02 + + Physically handicapped children's programadded v2.3.1, removed after v2.4
03 + + Special federal fundingadded v2.3.1, removed after v2.4
04 + + Family planningadded v2.3.1, removed after v2.4
05 + + Disabilityadded v2.3.1, removed after v2.4
06 + + PPV/Medicare 100% paymentadded v2.3.1, removed after v2.4
07 + + Induced abortion-danger to lifeadded v2.3.1, removed after v2.4
08 + + Induced abortion victim rape/incestadded v2.3.1, removed after v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

PSRO/UR Approval Indicator

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
... + + No suggested valuesadded v2.5.1, removed after v2.6
1 + + Approved by the PSRO/UR as billedadded v2.3.1, removed after v2.4
2 + + Automatic approval as billed based on focused reviewadded v2.3.1, removed after v2.4
3 + + Partial approvaladded v2.3.1, removed after v2.4
4 + + Admission deniedadded v2.3.1, removed after v2.4
5 + + Postpayment review applicableadded v2.3.1, removed after v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Occurrence Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
... + + Use NUBC codesadded v2.5.1, removed after v2.6
01 + + Auto accidentadded v2.3.1, removed after v2.4
02 + + No fault insurance involved-including auto accident/otheradded v2.3.1, removed after v2.4
03 + + Accident/tort liabilityadded v2.3.1, removed after v2.4
04 + + Accident/employment relatedadded v2.3.1, removed after v2.4
05 + + Other accidentadded v2.3.1, removed after v2.4
06 + + Crime victimadded v2.3.1, removed after v2.4
09 + + Start of infertility treatment cycleadded v2.3.1, removed after v2.4
10 + + Last menstrual periodadded v2.3.1, removed after v2.4
11 + + Onset of symptoms/illnessadded v2.3.1, removed after v2.4
12 + + Date of onset for a chronically dependent individualadded v2.3.1, removed after v2.4
17 + + Date outpatient occupational therapy plan established or last reviewedadded v2.3.1, removed after v2.4
18 + + Date of retirement patient/beneficiaryadded v2.3.1, removed after v2.4
19 + + Date of retirement spouseadded v2.3.1, removed after v2.4
20 + + Guarantee of payment beganadded v2.3.1, removed after v2.4
21 + + UR notice receivedadded v2.3.1, removed after v2.4
22 + + Date active care endedadded v2.3.1, removed after v2.4
24 + + Date insurance deniedadded v2.3.1, removed after v2.4
25 + + Date benefits terminated by primary payoradded v2.3.1, removed after v2.4
26 + + Date SNF bed availableadded v2.3.1, removed after v2.4
27 + + Date home health plan establishedadded v2.3.1, removed after v2.4
28 + + Spouse's date of birthadded v2.3.1, removed after v2.4
29 + + Date outpatient physical therapy plan established or last reviewedadded v2.3.1, removed after v2.4
30 + + Date outpatient speech pathology plan established or last reviewedadded v2.3.1, removed after v2.4
31 + + Date beneficiary notified of intent to bill (accommodations)added v2.3.1, removed after v2.4
32 + + Date beneficiary notified of intent to bill (procedures or treatments)added v2.3.1, removed after v2.4
33 + + First day of the Medicare coordination period for ESRD beneficiaries covered by EGHPadded v2.3.1, removed after v2.4
34 + + Date of election of extended care facilitiesadded v2.3.1, removed after v2.4
35 + + Date treatment started for P.T.added v2.3.1, removed after v2.4
36 + + Date of inpatient hospital discharge for covered transplant patientsadded v2.3.1, removed after v2.4
37 + + Date of inpatient hospital discharge for non-covered transplant patientadded v2.3.1, removed after v2.4
40 + + Scheduled date of admissionadded v2.3.1, removed after v2.4
41 + + Date of first test for pre-admission testingadded v2.3.1, removed after v2.4
42 + + Date of dischargeadded v2.3.1, removed after v2.4
43 + + Scheduled date of canceled surgeryadded v2.3.1, removed after v2.4
44 + + Date treatment started for O.T.added v2.3.1, removed after v2.4
45 + + Date treatment started for S.T.added v2.3.1, removed after v2.4
46 + + Date treatment started for cardiac rehab.added v2.3.1, removed after v2.4
47 ... 49 + + Payer codesadded v2.3.1, removed after v2.4
50 + + Date lien releasedadded v2.3.1, removed after v2.4
51 + + Date treatment started for psychiatric careadded v2.3.1, removed after v2.4
70 ... 99 + + Occurrence span codes and datesadded v2.3.1, removed after v2.4
A1 + + Birthdate - insured Aadded v2.3.1, removed after v2.4
A2 + + Effective date - insured A policyadded v2.3.1, removed after v2.4
A3 + + Benefits exhausted payer Aadded v2.3.1, removed after v2.4
… + + Use NUBC codesadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Occurrence Span

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
... + + use NUBC codesadded v2.5.1, removed after v2.6
70 + + Qualifying stay dates for SNFadded v2.3.1, removed after v2.4
71 + + Prior stay datesadded v2.3.1, removed after v2.4
72 + + First/last visitadded v2.3.1, removed after v2.4
73 + + Benefit eligibility periodadded v2.3.1, removed after v2.4
74 + + Non-covered level of careadded v2.3.1, removed after v2.4
75 + + SNF level of careadded v2.3.1, removed after v2.4
76 + + Patient liabilityadded v2.3.1, removed after v2.4
77 + + Provider liability periodadded v2.3.1, removed after v2.4
78 + + SNF prior stay datesadded v2.3.1, removed after v2.4
79 + + Payer codeadded v2.3.1, removed after v2.4
M0 + + PSRO/UR approved stay datesadded v2.3.1, removed after v2.4
… + + use NUBC codesadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

CWE statuses

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
NA + + Not applicableadded v2.3.1
NASK + + Not askedadded v2.3.1
NAV + + Not availableadded v2.3.1
U + + Unknownadded v2.3.1
UASK + + Asked but Unknownadded v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Message Structure

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ACK + + Variesadded v2.3.1
ADR_A19 + + + added v2.4
ADT_A01 + + A01, A04, A08, A13added v2.3.1
ADT_A02 + + A02added v2.3.1
ADT_A03 + + A03added v2.3.1
ADT_A05 + + A05, A14, A28, A31added v2.4
ADT_A06 + + A06, A07added v2.3.1
ADT_A09 + + A09, A10, A11added v2.3.1
ADT_A12 + + A12added v2.3.1
ADT_A15 + + A15added v2.4
ADT_A16 + + A16added v2.3.1
ADT_A17 + + A17added v2.3.1
ADT_A18 + + + added v2.3.1
ADT_A20 + + A20added v2.3.1
ADT_A21 + + A21, A22, A23, A25, A26, A27, A29, A32, A33added v2.4
ADT_A24 + + A24added v2.3.1
ADT_A28 + + A28, A31added v2.3.1, removed after v2.3.1
ADT_A30 + + + added v2.3.1
ADT_A37 + + A37added v2.3.1
ADT_A38 + + A38added v2.3.1
ADT_A39 + + A39, A40, A41, A42added v2.3.1
ADT_A43 + + A43added v2.3.1
ADT_A44 + + A44added v2.7
ADT_A45 + + A45added v2.3.1
ADT_A50 + + A50, A51added v2.3.1
ADT_A52 + + A52, A53added v2.4
ADT_A54 + + A54, A55added v2.4
ADT_A60 + + A60added v2.4
ADT_A61 + + A61, A62added v2.4
ARD_A19 + + A19added v2.3.1, removed after v2.3.1
BAR_P01 + + P01added v2.3.1
BAR_P02 + + P02added v2.3.1
BAR_P05 + + P05added v2.4
BAR_P06 + + P06added v2.3.1
BAR_P10 + + P10added v2.4
BAR_P12 + + P12added v2.5
BPS_O29 + + O29added v2.5
BRP_030 + + O30added v2.5, removed after v2.5
BRP_O30 + + O30added v2.5.1
BRT_O32 + + O32added v2.5
BTS_O31 + + O31added v2.5
CCF_I22 + + I22added v2.7
CCI_I22 + + I22added v2.7
CCM_I21 + + I21added v2.7
CCQ_I19 + + I19added v2.7
CCR_I16 + + I16, |17, |18added v2.7
CCU_I20 + + I20added v2.7
CQU_I19 + + I19added v2.7
CRM_C01 + + C01, C02, C03, C04, C05, C06, C07, C08added v2.3.1
CSU_C09 + + C09, C10, C11, C12added v2.3.1
DFT_P03 + + P03added v2.3.1
DFT_P11 + + P11added v2.5
DOC_T12 + + + added v2.3.1
DSR_P04 + + P04added v2.4, removed after v2.5.1
DSR_Q01 + + Q01added v2.3.1, removed after v2.6
DSR_Q03 + + Q03added v2.3.1, removed after v2.6
EAC_U07 + + U07added v2.4
EAN_U09 + + U09added v2.4
EAR_U08 + + U08added v2.4
EDR_R07 + + R07added v2.3.1, removed after v2.5.1
EHC_E01 + + E01added v2.6
EHC_E02 + + E02added v2.6
EHC_E04 + + E04added v2.6
EHC_E10 + + E10added v2.6
EHC_E12 + + E12added v2.6
EHC_E13 + + E13added v2.6
EHC_E15 + + E15added v2.6
EHC_E20 + + E20added v2.6
EHC_E21 + + E21added v2.6
EHC_E24 + + E24added v2.6
EQQ_Q04 + + Q04added v2.3.1, removed after v2.5.1
ERP_R09 + + R09added v2.3.1, removed after v2.5.1
ESR_U02 + + U02added v2.4
ESU_U01 + + U01added v2.4
INR_U06 + + U06added v2.4
INU_U05 + + U05added v2.4
LSU_U12 + + U12, U13added v2.4
MDM_T01 + + T01, T03, T05, T07, T09, T11added v2.3.1
MDM_T02 + + T02, T04, T06, T08, T10added v2.3.1
MFD_MFA + + MFAadded v2.4, removed after v2.5.1
MFD_P09 + + P09added v2.3.1, removed after v2.3.1
MFK_M01 + + M01, M02, M03, M04, M05, M06, M07, M08, M09, M10, M11added v2.3.1
MFN_M01 + + + added v2.3.1
MFN_M02 + + M02added v2.3.1
MFN_M03 + + M03added v2.3.1
MFN_M04 + + M04added v2.4
MFN_M05 + + M05added v2.3.1
MFN_M06 + + M06added v2.3.1
MFN_M07 + + M07added v2.3.1
MFN_M08 + + M08added v2.3.1
MFN_M09 + + M09added v2.3.1
MFN_M10 + + M10added v2.3.1
MFN_M11 + + M11added v2.3.1
MFN_M12 + + M12added v2.4
MFN_M13 + + M13added v2.5
MFN_M15 + + M15added v2.5
MFN_M16 + + M16added v2.6
MFN_M17 + + M17added v2.6
MFN_Znn + + Znnadded v2.7
MFQ_M01 + + M01, M02, M03, M04, M05, M06added v2.4
MFR_M01 + + M01, M02, M03,added v2.4
MFR_M04 + + M04added v2.5.1
MFR_M05 + + M05added v2.5.1
MFR_M06 + + M06added v2.5.1
MFR_M07 + + M07added v2.5.1
NMD_N02 + + N02added v2.4
NMQ_N01 + + N01added v2.4
NMR_N01 + + N01added v2.4
NUL + + Nulladded v2.3.1, removed after v2.3.1
OMB_O27 + + O27added v2.5
OMD_O01 + + + added v2.3.1, removed after v2.3.1
OMD_O03 + + O03added v2.4
OMG_O19 + + O19added v2.4
OMI_O23 + + O23added v2.5
OML_O21 + + O21added v2.4
OML_O33 + + O33added v2.5
OML_O35 + + O35added v2.5
OML_O39 + + O39added v2.7
OMN_O01 + + + added v2.3.1, removed after v2.3.1
OMN_O07 + + O07added v2.4
OMP_O09 + + O09added v2.4
OMS_O01 + + + added v2.3.1, removed after v2.3.1
OMS_O05 + + O05added v2.4
OPL_O37 + + O37added v2.6
OPR_O38 + + O38added v2.6
OPU_R25 + + R25added v2.6
ORA_R33 + + R33added v2.7
ORB_O28 + + O28added v2.5
ORD_O02 + + + added v2.3.1, removed after v2.3.1
ORD_O04 + + O04added v2.4
ORF_R02 + + R02, R04added v2.3.1, removed after v2.3.1
ORF_R04 + + R04added v2.4
ORG_O20 + + O20added v2.4
ORI_O24 + + O24added v2.5
ORL_O22 + + O22added v2.4
ORL_O34 + + O34added v2.5
ORL_O36 + + O36added v2.5
ORL_O40 + + O40added v2.7
ORM_O01 + + O01added v2.3.1
ORM_Q06 + + Q06added v2.3.1, removed after v2.3.1
ORN_O02 + + + added v2.3.1, removed after v2.3.1
ORN_O08 + + O08added v2.4
ORP_O10 + + O10added v2.4
ORR_O02 + + O02added v2.3.1
ORR_Q06 + + Q06added v2.3.1, removed after v2.3.1
ORS_O02 + + + added v2.3.1, removed after v2.3.1
ORS_O06 + + O06added v2.4
ORU_R01 + + R01added v2.3.1
ORU_R30 + + R30added v2.5
ORU_R31 + + R31added v2.5, removed after v2.5
ORU_R32 + + R32added v2.5, removed after v2.5
ORU_W01 + + W01added v2.3.1
OSM_R26 + + R26added v2.7
OSQ_Q06 + + Q06added v2.3.1
OSR_Q06 + + Q06added v2.3.1
OUL_R21 + + R21added v2.4
OUL_R22 + + R22added v2.5
OUL_R23 + + R23added v2.5
OUL_R24 + + R24added v2.5
PEX_P07 + + P07, P08added v2.3.1
PGL_PC6 + + PC6, PC7, PC8added v2.3.1
PIN_I07 + + I07added v2.3.1, removed after v2.3.1
PMU_B01 + + B01, B02added v2.4
PMU_B03 + + B03added v2.4
PMU_B04 + + B04, B05, B06added v2.4
PMU_B07 + + B07added v2.5
PMU_B08 + + B08added v2.5
PPG_PCG + + PCC, PCG, PCH, PCJadded v2.3.1
PPP_PCB + + PCB, PCDadded v2.3.1
PPR_PC1 + + PC1, PC2, PC3added v2.3.1
PPT_PCL + + PCLadded v2.3.1
PPV_PCA + + PCAadded v2.3.1
PRR_PC5 + + PC5added v2.3.1
PTR_PCF + + PCFadded v2.3.1
QBP_E03 + + E03added v2.6
QBP_E22 + + E22added v2.6
QBP_Q11 + + Q11added v2.4
QBP_Q13 + + Q13added v2.4
QBP_Q15 + + Q15added v2.4
QBP_Q21 + + Q21, Q22, Q23,Q24, Q25added v2.4
QBP_Qnn + + Qnnadded v2.7
QBP_Z73 + + Z73added v2.7
QCK_Q02 + + Q02added v2.3.1
QCN_J01 + + J01, J02added v2.4
QRF_W02 + + W02added v2.5
QRY_A19 + + A19added v2.3.1
QRY_P04 + + P04added v2.5, removed after v2.5.1
QRY_PC4 + + PC4, PC9, PCE, PCKadded v2.3.1
QRY_Q01 + + Q01, Q26, Q27, Q28, Q29, Q30added v2.3.1
QRY_Q02 + + Q02added v2.3.1
QRY_R02 + + R02added v2.3.1
QRY_T12 + + T12added v2.3.1
QSB_Q16 + + Q16added v2.4
QVR_Q17 + + Q17added v2.4
RAR_RAR + + RARadded v2.3.1
RAS_O01 + + O01added v2.3.1, removed after v2.3.1
RAS_O02 + + O022added v2.3.1, removed after v2.3.1
RAS_O17 + + O17added v2.4
RCI_I05 + + I05added v2.3.1
RCL_I06 + + I06added v2.3.1
RDE_O01 + + O01added v2.3.1, removed after v2.5
RDE_O11 + + O11, O25added v2.4
RDO_O01 + + + added v2.3.1, removed after v2.3.1
RDR_RDR + + RDRadded v2.3.1
RDS_O01 + + O01added v2.3.1, removed after v2.3.1
RDS_O13 + + O13added v2.4
RDY_K11 + + K11added v2.4, removed after v2.4
RDY_K15 + + K15added v2.4
REF_I12 + + I12, I13, I14, I15added v2.3.1
RER_RER + + RERadded v2.3.1
RGR_RGR + + RGRadded v2.3.1
RGV_O01 + + O01added v2.3.1, removed after v2.3.1
RGV_O15 + + O15added v2.4
ROR_ROR + + RORadded v2.3.1
RPA_I08 + + I08, I09. I10, I11added v2.3.1
RPI_I01 + + I01, I04added v2.4
RPI_I04 + + I04added v2.4
RPI_I0I + + I01, I04added v2.3.1, removed after v2.3.1
RPL_I02 + + I02added v2.3.1
RPR_I03 + + I03added v2.3.1
RQA_I08 + + I08, I09, I10, I11added v2.3.1
RQC_I05 + + I05, I06added v2.3.1
RQC_I06 + + I06added v2.3.1, removed after v2.3.1
RQI_I01 + + I01, I02, I03, I07added v2.4
RQI_I0I + + I01, I02, I03added v2.3.1, removed after v2.3.1
RQP_I04 + + I04added v2.3.1
RQQ_Q09 + + Q09added v2.3.1, removed after v2.5.1
RRA_O02 + + O02added v2.3.1, removed after v2.5
RRA_O18 + + O18added v2.4
RRD_O02 + + O02added v2.3.1, removed after v2.3.1
RRD_O14 + + O14added v2.4
RRE_O02 + + O02added v2.3.1, removed after v2.3.1
RRE_O12 + + O12, O26added v2.4
RRG_O02 + + O02added v2.3.1, removed after v2.3.1
RRG_O16 + + O16added v2.4
RRI_I12 + + I12, I13, I14, I15added v2.3.1
RRO_O02 + + + added v2.3.1, removed after v2.3.1
RSP_E03 + + E03added v2.6
RSP_E22 + + E22added v2.6
RSP_K11 + + K11added v2.5
RSP_K21 + + K21added v2.4
RSP_K22 + + K22added v2.4
RSP_K23 + + K23, K24added v2.4
RSP_K24 + + K24added v2.4, removed after v2.4
RSP_K25 + + K25added v2.4
RSP_K31 + + K31added v2.5.1
RSP_K32 + + K32added v2.7
RSP_Q11 + + Q11added v2.5.1
RSP_Z82 + + Z82added v2.7
RSP_Z86 + + Z86added v2.7
RSP_Z88 + + Z88added v2.7
RSP_Z90 + + Z90added v2.7
RTB_K13 + + K13added v2.4
RTB_Knn + + Knnadded v2.7
RTB_Z74 + + Z74added v2.7
SDR_S31 + + S31, S36added v2.6
SDR_S32 + + S32, S37added v2.6
SIU_S12 + + S12, S13, S14, S15, S16, S17, S18, S19, S20, S21, S22, S23, S24, S26added v2.3.1
SLR_S28 + + S28, S29, S30, S34, S35added v2.6
SPQ_Q08 + + Q08added v2.3.1, removed after v2.5.1
SQM_S25 + + S25added v2.3.1
SQR_S25 + + S25added v2.3.1
SRM_S01 + + S01, S02, S03, S04, S05, S06, S07, S08, S09, S10, S11added v2.3.1
SRM_T12 + + T12added v2.3.1, removed after v2.3.1
SRR_S01 + + S01, S02, S03, S04, S05, S06, S07, S08, S09, S10, S11added v2.3.1
SRR_T12 + + T12added v2.3.1, removed after v2.3.1
SSR_U04 + + U04added v2.4
SSU_U03 + + U03added v2.4
STC_S33 + + S33added v2.6
SUR_P09 + + P09added v2.3.1
TBR_R08 + + R08added v2.4, removed after v2.5.1
TBR_R09 + + R09added v2.3.1, removed after v2.5.1
TCU_U10 + + U10, U11added v2.4
UDM_Q05 + + Q05added v2.3.1
VQQ_Q07 + + Q07added v2.3.1, removed after v2.5.1
VXQ_V01 + + V01added v2.3.1
VXR_V03 + + V03added v2.3.1
VXU_V04 + + V04added v2.3.1
VXX_V02 + + V02added v2.3.1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Additive/Preservative

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ACDA + + ACD Solution Aadded v2.5
ACDB + + ACD Solution Badded v2.5
ACET + + Acetic Acidadded v2.5
AMIES + + Amies transport mediumadded v2.5
BACTM + + Bacterial Transport mediumadded v2.5
BF10 + + Buffered 10% formalinadded v2.5
BOR + + Borate Boric Acidadded v2.4
BOUIN + + Bouin's solutionadded v2.5
BSKM + + Buffered skim milkadded v2.5
C32 + + 3.2% Citrateadded v2.4
C38 + + 3.8% Citrateadded v2.4
CARS + + Carson's Modified 10% formalinadded v2.5
CARY + + Cary Blair Mediumadded v2.5
CHLTM + + Chlamydia transport mediumadded v2.5
CTAD + + CTAD (this should be spelled out if not universally understood)added v2.5
EDTK + + Potassium/K EDTAadded v2.4
EDTK15 + + Potassium/K EDTA 15%added v2.5
EDTK75 + + Potassium/K EDTA 7.5%added v2.5
EDTN + + Sodium/Na EDTAadded v2.4
ENT + + Enteric bacteria transport mediumadded v2.5
ENT+ + + Enteric plusadded v2.5
F10 + + 10% Formalinadded v2.5
FDP + + Thrombin NIH; soybean trypsin inhibitor (Fibrin Degradation Products)added v2.5
FL10 + + Sodium Fluoride, 10mgadded v2.5
FL100 + + Sodium Fluoride, 100mgadded v2.5
HCL6 + + 6N HCLadded v2.4
HEPA + + Ammonium heparinadded v2.5
HEPL + + Lithium/Li Heparinadded v2.4
HEPN + + Sodium/Na Heparinadded v2.4
HNO3 + + Nitric Acidadded v2.5
JKM + + Jones Kendrick Mediumadded v2.5
KARN + + Karnovsky's fixativeadded v2.5
KOX + + Potassium Oxalateadded v2.5
LIA + + Lithium iodoacetateadded v2.5
M4 + + M4added v2.5
M4RT + + M4-RTadded v2.5
M5 + + M5added v2.5
MICHTM + + Michel's transport mediumadded v2.5
MMDTM + + MMD transport mediumadded v2.5
NAF + + Sodium Fluorideadded v2.5
NAPS + + Sodium polyanethol sulfonate 0.35% in 0.85% sodium chlorideadded v2.5
NONE + + Noneadded v2.5
PAGE + + Pages's Salineadded v2.5
PHENOL + + Phenoladded v2.5
PVA + + PVA (polyvinylalcohol)added v2.5
RLM + + Reagan Lowe Mediumadded v2.5
SILICA + + Siliceous earth, 12 mgadded v2.5
SPS + + SPS(this should be spelled out if not universally understood)added v2.5
SST + + Serum Separator Tube (Polymer Gel)added v2.5
STUTM + + Stuart transport mediumadded v2.5
THROM + + Thrombinadded v2.5
THYMOL + + Thymoladded v2.5
THYO + + Thyoglycollate brothadded v2.5
TOLU + + Tolueneadded v2.5
URETM + + Ureaplasma transport mediumadded v2.5
VIRTM + + Viral Transport mediumadded v2.5
WEST + + Buffered Citrate (Westergren Sedimentation Rate)added v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Treatment

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ACID + + Acidificationadded v2.4
ALK + + Alkalizationadded v2.4
DEFB + + Defibrinationadded v2.4
FILT + + Filtrationadded v2.4
LDLP + + LDL Precipitationadded v2.4
NEUT + + Neutralizationadded v2.4
RECA + + Recalificationadded v2.4
UFIL + + Ultrafiltrationadded v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Supplemental Service Information Values

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
... + + No suggested values<p>Individual implementations may use vocabularies such as the SNOMED DICOM Micro-glossary (SDM) or private (local) entries.added v2.5.1, removed after v2.6
1ST + + Firstadded v2.4, removed after v2.4
2ND + + Secondadded v2.4, removed after v2.4
3RD + + Thirdadded v2.4, removed after v2.4
4TH + + Fourthadded v2.4, removed after v2.4
5TH + + Fifthadded v2.4, removed after v2.4
A/P + + Anterior/Posterioradded v2.4, removed after v2.4
ANT + + Anterioradded v2.4, removed after v2.4
BLT + + Bilateraladded v2.4, removed after v2.4
DEC + + Decubitusadded v2.4, removed after v2.4
DST + + Distaladded v2.4, removed after v2.4
LAT + + Lateraladded v2.4, removed after v2.4
LFT + + Leftadded v2.4, removed after v2.4
LLQ + + Left Lower Quadrantadded v2.4, removed after v2.4
LOW + + Loweradded v2.4, removed after v2.4
LUQ + + Left Upper Quadrantadded v2.4, removed after v2.4
MED + + Medialadded v2.4, removed after v2.4
OR + + Operating Roomadded v2.4, removed after v2.4
PED + + Pediatricadded v2.4, removed after v2.4
POS + + Posterioradded v2.4, removed after v2.4
PRT + + Portableadded v2.4, removed after v2.4
PRX + + Proximaladded v2.4, removed after v2.4
REC + + Recumbentadded v2.4, removed after v2.4
RGH + + Rightadded v2.4, removed after v2.4
RLQ + + Right Lower Quadrantadded v2.4, removed after v2.4
RUQ + + Right Upper Quadrantadded v2.4, removed after v2.4
UPP + + Upperadded v2.4, removed after v2.4
UPR + + Uprightadded v2.4, removed after v2.4
WCT + + With Contrastadded v2.4, removed after v2.4
WOC + + Without Contrastadded v2.4, removed after v2.4
WSD + + With Sedationadded v2.4, removed after v2.4
… + + No suggested values<p>Individual implementations may use vocabularies such as the SNOMED DICOM Micro-glossary (SDM) or private (local) entries.added v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Identity Reliability Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AL + + Patient/Person Name is an Aliasadded v2.4
UA + + Unknown/Default Addressadded v2.4
UD + + Unknown/Default Date of Birthadded v2.4
US + + Unknown/Default Social Security Numberadded v2.4
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Specimen Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
... + + No suggested valuesadded v2.6, removed after v2.6
ABS + + Abscessadded v2.5
ACNE + + Tissue, Acneadded v2.5
ACNFLD + + Fluid, Acneadded v2.5
AIRS + + Air Sampleadded v2.5
ALL + + Allograftadded v2.5
AMP + + Amputationadded v2.5
ANGI + + Catheter Tip, Angioadded v2.5
ARTC + + Catheter Tip, Arterialadded v2.5
ASERU + + Serum, Acuteadded v2.5
ASP + + Aspirateadded v2.5
ATTE + + Environment, Attestadded v2.5
AUTOA + + Environmental, Autoclave Ampuleadded v2.7
AUTOC + + Environmental, Autoclave Capsuleadded v2.5
AUTP + + Autopsyadded v2.5
BBL + + Blood bagadded v2.5
BCYST + + Cyst, Baker'sadded v2.5
BITE + + Biteadded v2.5
BLEB + + Blebadded v2.5
BLIST + + Blisteradded v2.5
BOIL + + Boiladded v2.5
BON + + Boneadded v2.5.1
BONE + + Boneadded v2.5, removed after v2.5
BOWL + + Bowel contentsadded v2.5
BPU + + Blood product unitadded v2.5
BRN + + Burnadded v2.5
BRSH + + Brushadded v2.5
BRTH + + Breath (use EXHLD)added v2.5
BRUS + + Brushingadded v2.5
BUB + + Buboadded v2.5
BULLA + + Bulla/Bullaeadded v2.5
BX + + Biopsyadded v2.5
CALC + + Calculus (=Stone)added v2.5
CARBU + + Carbuncleadded v2.5
CAT + + Catheteradded v2.5
CBITE + + Bite, Catadded v2.5
CLIPP + + Clippingsadded v2.5
CNJT + + Conjunctivaadded v2.5
COL + + Colostrumadded v2.5
CONE + + Biospy, Coneadded v2.5
CSCR + + Scratch, Catadded v2.5
CSERU + + Serum, Convalescentadded v2.5
CSITE + + Catheter Insertion Siteadded v2.5
CSMY + + Fluid, Cystostomy Tubeadded v2.5
CST + + Fluid, Cystadded v2.5
CSVR + + Blood, Cell Saveradded v2.5
CTP + + Catheter tipadded v2.5
CVPS + + Site, CVPadded v2.5
CVPT + + Catheter Tip, CVPadded v2.5
CYN + + Nodule, Cysticadded v2.5
CYST + + Cystadded v2.5
DBITE + + Bite, Dogadded v2.5
DCS + + Sputum, Deep Coughadded v2.5
DEC + + Ulcer, Decubitusadded v2.5
DEION + + Environmental, Water (Deionized)added v2.5
DIA + + Dialysateadded v2.5
DISCHG + + Dischargeadded v2.5
DIV + + Diverticulumadded v2.5
DRN + + Drainadded v2.5
DRNG + + Drainage, Tubeadded v2.5
DRNGP + + Drainage, Penroseadded v2.5
EARW + + Ear wax (cerumen)added v2.5
EBRUSH + + Brush, Esophagealadded v2.5
EEYE + + Environmental, Eye Washadded v2.5
EFF + + Environmental, Effluentadded v2.5
EFFUS + + Effusionadded v2.5
EFOD + + Environmental, Foodadded v2.5
EISO + + Environmental, Isoletteadded v2.5
ELT + + Electrodeadded v2.5
ENVIR + + Environmental, Unidentified Substanceadded v2.5
EOTH + + Environmental, Other Substanceadded v2.5
ESOI + + Environmental, Soiladded v2.5
ESOS + + Environmental, Solution (Sterile)added v2.5
ETA + + Aspirate, Endotrachadded v2.5
ETTP + + Catheter Tip, Endotrachealadded v2.5
ETTUB + + Tube, Endotrachealadded v2.5
EWHI + + Environmental, Whirlpooladded v2.5
EXG + + Gas, exhaled (=breath)added v2.5
EXS + + Shunt, Externaladded v2.5
EXUDTE + + Exudateadded v2.5
FAW + + Environmental, Water (Well)added v2.5
FBLOOD + + Blood, Fetaladded v2.5
FGA + + Fluid, Abdomenadded v2.5
FIST + + Fistulaadded v2.5
FLD + + Fluid, Otheradded v2.5
FLT + + Filteradded v2.5
FLU + + Fluid, Body unspadded v2.5
FLUID + + Fluidadded v2.5
FOLEY + + Catheter Tip, Foleyadded v2.5
FRS + + Fluid, Respiratoryadded v2.5
FSCLP + + Scalp, Fetaladded v2.5
FUR + + Furuncleadded v2.5
GAS + + Gasadded v2.5
GASA + + Aspirate, Gastricadded v2.5
GASAN + + Antrum, Gastricadded v2.5
GASBR + + Brushing, Gastricadded v2.5
GASD + + Drainage, Gastricadded v2.5
GAST + + Fluid/contents, Gastricadded v2.5
GENV + + Genital vaginaladded v2.5
GRAFT + + Graftadded v2.5
GRAFTS + + Graft Siteadded v2.7
GRANU + + Granulomaadded v2.5
GROSH + + Catheter, Groshongadded v2.5
GSOL + + Solution, Gastrostomyadded v2.5
GSPEC + + Biopsy, Gastricadded v2.5
GT + + Tube, Gastricadded v2.5
GTUBE + + Drainage Tube, Drainage (Gastrostomy)added v2.5
HBITE + + Bite, Humanadded v2.5
HBLUD + + Blood, Autopsyadded v2.5
HEMAQ + + Catheter Tip, Hemaquitadded v2.5
HEMO + + Catheter Tip, Hemovacadded v2.5
HERNI + + Tissue, Herniatedadded v2.5
HEV + + Drain, Hemovacadded v2.5
HIC + + Catheter, Hickmanadded v2.5
HYDC + + Fluid, Hydroceleadded v2.5
IBITE + + Bite, Insectadded v2.5
ICYST + + Cyst, Inclusionadded v2.5
IDC + + Catheter Tip, Indwellingadded v2.5
IHG + + Gas, Inhaledadded v2.5
ILEO + + Drainage, Ileostomyadded v2.5
ILLEG + + Source of Specimen Is Illegibleadded v2.5
IMP + + Implantadded v2.5
INCI + + Site, Incision/Surgicaladded v2.5
INFIL + + Infiltrateadded v2.5
INS + + Insectadded v2.5
INTRD + + Catheter Tip, Introduceradded v2.5
IT + + Intubation tubeadded v2.5
IUD + + Intrauterine Deviceadded v2.5
IVCAT + + Catheter Tip, IVadded v2.5
IVFLD + + Fluid, IVadded v2.5
IVTIP + + Tubing Tip, IVadded v2.5
JEJU + + Drainage, Jejunaladded v2.5
JNTFLD + + Fluid, Jointadded v2.5
JP + + Drainage, Jackson Prattadded v2.5
KELOI + + Lavageadded v2.5
KIDFLD + + Fluid, Kidneyadded v2.5
LAVG + + Lavage, Bronhialadded v2.5
LAVGG + + Lavage, Gastricadded v2.5
LAVGP + + Lavage, Peritonealadded v2.5
LAVPG + + Lavage, Pre-Bronchadded v2.5
LENS1 + + Contact Lensadded v2.5
LENS2 + + Contact Lens Caseadded v2.5
LESN + + Lesionadded v2.5
LIQ + + Liquid, Unspecifiedadded v2.5
LIQO + + Liquid, Otheradded v2.5
LSAC + + Fluid, Lumbar Sacadded v2.5
MAHUR + + Catheter Tip, Makurkouradded v2.5
MASS + + Massadded v2.5
MBLD + + Blood, Menstrualadded v2.5
MUCOS + + Mucosaadded v2.5
MUCUS + + Mucusadded v2.5
NASDR + + Drainage, Nasaladded v2.5
NEDL + + Needleadded v2.5
NEPH + + Site, Nephrostomyadded v2.5
NGASP + + Aspirate, Nasogastricadded v2.5
NGAST + + Drainage, Nasogastricadded v2.5
NGS + + Site, Naso/Gastricadded v2.5
NODUL + + Nodule(s)added v2.5
NSECR + + Secretion, Nasaladded v2.5
ORH + + Otheradded v2.5
ORL + + Lesion, Oraladded v2.5
OTH + + Source, Otheradded v2.5
PACEM + + Pacemakeradded v2.5
PCFL + + Fluid, Pericardialadded v2.5
PDSIT + + Site, Peritoneal Dialysisadded v2.5
PDTS + + Site, Peritoneal Dialysis Tunneladded v2.5
PELVA + + Abscess, Pelvicadded v2.5
PENIL + + Lesion, Penileadded v2.5
PERIA + + Abscess, Perianaladded v2.5
PILOC + + Cyst, Pilonidaladded v2.5
PINS + + Site, Pinadded v2.5
PIS + + Site, Pacemaker Insetionadded v2.5
PLAN + + Plant Materialadded v2.5
PLAS + + Plasmaadded v2.5
PLB + + Plasma bagadded v2.5
PLEVS + + Serum, Peak Leveladded v2.5
PND + + Drainage, Penileadded v2.5
POL + + Polypsadded v2.5
POPGS + + Graft Site, Poplitealadded v2.5
POPLG + + Graft, Poplitealadded v2.5
POPLV + + Site, Popliteal Veinadded v2.5
PORTA + + Catheter, Portaadded v2.5
PPP + + Plasma, Platelet pooradded v2.5
PROST + + Prosthetic Deviceadded v2.5
PRP + + Plasma, Platelet richadded v2.5
PSC + + Pseudocystadded v2.5
PUNCT + + Wound, Punctureadded v2.5
PUS + + Pusadded v2.5.1
PUSFR + + Pustuleadded v2.5
PUST + + Pusadded v2.5
QC3 + + Quality Controladded v2.5
RANDU + + Urine, Randomadded v2.5
RBITE + + Bite, Reptileadded v2.5
RECT + + Drainage, Rectaladded v2.5
RECTA + + Abscess, Rectaladded v2.5
RENALC + + Cyst, Renaladded v2.5
RENC + + Fluid, Renal Cystadded v2.5
RES + + Respiratoryadded v2.5
SAL + + Salivaadded v2.5
SCAR + + Tissue, Keloid (Scar)added v2.5
SCLV + + Catheter Tip, Subclavianadded v2.5
SCROA + + Abscess, Scrotaladded v2.5
SECRE + + Secretion(s)added v2.5
SER + + Serumadded v2.5
SHU + + Site, Shuntadded v2.5
SHUNF + + Fluid, Shuntadded v2.5
SHUNT + + Shuntadded v2.5
SITE + + Siteadded v2.5
SKBP + + Biopsy, Skinadded v2.5
SKN + + Skinadded v2.5
SMM + + Mass, Sub-Mandibularadded v2.5
SNV + + Fluid, synovial (Joint fluid)added v2.5
SPRM + + Spermatozoaadded v2.5
SPRP + + Catheter Tip, Suprapubicadded v2.5
SPRPB + + Cathether Tip, Suprapubicadded v2.5
SPS + + Environmental, Spore Stripadded v2.5
SPT + + Sputumadded v2.5
SPTC + + Sputum - coughedadded v2.5
SPTT + + Sputum - tracheal aspirateadded v2.5
SPUT1 + + Sputum, Simulatedadded v2.5
SPUTIN + + Sputum, Inductedadded v2.5
SPUTSP + + Sputum, Spontaneousadded v2.5
STER + + Environmental, Sterradadded v2.5
STL + + Stool = Fecaladded v2.5
STONE + + Stone, Kidneyadded v2.5
SUBMA + + Abscess, Submandibularadded v2.5
SUBMX + + Abscess, Submaxillaryadded v2.5
SUMP + + Drainage, Sumpadded v2.5
SUP + + Suprapubic Tapadded v2.5
SUTUR + + Sutureadded v2.5
SWGZ + + Catheter Tip, Swan Gantzadded v2.5
TASP + + Aspirate, Trachealadded v2.5
TISS + + Tissueadded v2.5
TISU + + Tissue ulceradded v2.5
TLC + + Cathether Tip, Triple Lumenadded v2.5
TRAC + + Site, Tracheostomyadded v2.5
TRANS + + Transudateadded v2.5
TSERU + + Serum, Troughadded v2.5
TSTES + + Abscess, Testicularadded v2.5
TTRA + + Aspirate, Transtrachealadded v2.5
TUBES + + Tubesadded v2.5
TUMOR + + Tumoradded v2.5
TZANC + + Smear, Tzanckadded v2.5
UDENT + + Source, Unidentifiedadded v2.5
UR + + Urineadded v2.5
URC + + Urine clean catchadded v2.5
URINB + + Urine, Bladder Washingsadded v2.5
URINC + + Urine, Catheterizedadded v2.5
URINM + + Urine, Midstreamadded v2.5
URINN + + Urine, Nephrostomyadded v2.5
URINP + + Urine, Pedibagadded v2.5
URT + + Urine catheteradded v2.5
USCOP + + Urine, Cystoscopyadded v2.5
USPEC + + Source, Unspecifiedadded v2.5
VASTIP + + Catheter Tip, Vasadded v2.5
VENT + + Catheter Tip, Ventricularadded v2.5
VITF + + Vitreous Fluidadded v2.5
VOM + + Vomitusadded v2.5.1
WASH + + Washadded v2.5
WASI + + Washing, e.g. bronchial washingadded v2.5
WAT + + Wateradded v2.5
WB + + Blood, Wholeadded v2.5
WEN + + Wenadded v2.5
WICK + + Wickadded v2.5
WND + + Woundadded v2.5
WNDA + + Wound abscessadded v2.5
WNDD + + Wound drainageadded v2.5
WNDE + + Wound exudateadded v2.5
WORM + + Wormadded v2.5
WRT + + Wartadded v2.5
WWA + + Environmental, Wateradded v2.5
WWO + + Environmental, Water (Ocean)added v2.5
WWT + + Environmental, Water (Tap)added v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Specimen Collection Method

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ANP + + Plates, Anaerobicadded v2.5
BAP + + Plates, Blood Agaradded v2.5
BCAE + + Blood Culture, Aerobic Bottleadded v2.5
BCAN + + Blood Culture, Anaerobic Bottleadded v2.5
BCPD + + Blood Culture, Pediatric Bottleadded v2.5
BIO + + Biopsyadded v2.5
CAP + + Capillary Specimenadded v2.5
CATH + + Catheterizedadded v2.5
CVP + + Line, CVPadded v2.5
EPLA + + Environmental, Plateadded v2.5
ESWA + + Environmental, Swabadded v2.5
FNA + + Aspiration, Fine Needleadded v2.5
KOFFP + + Plate, Coughadded v2.5
LNA + + Line, Arterialadded v2.5
LNV + + Line, Venousadded v2.5
MARTL + + Martin-Lewis Agaradded v2.5
ML11 + + Mod. Martin-Lewis Agaradded v2.5
MLP + + Plate, Martin-Lewisadded v2.5
NYP + + Plate, New York Cityadded v2.5
PACE + + Pace, Gen-Probeadded v2.5
PIN + + Pinworm Prepadded v2.5
PNA + + Arterial punctureadded v2.5
PRIME + + Pump Primeadded v2.5
PUMP + + Pump Specimenadded v2.5
QC5 + + Quality Control For Microadded v2.5
SCLP + + Scalp, Fetal Veinadded v2.5
SCRAPS + + Scrapingsadded v2.5
SHA + + Shavingadded v2.5
SWA + + Swabadded v2.5
SWD + + Swab, Dacron tippedadded v2.5
TMAN + + Transport Media, Anaerobicadded v2.5
TMCH + + Transport Media, Chalamydiaadded v2.5
TMM4 + + Transport Media, M4added v2.5
TMMY + + Transport Media, Mycoplasmaadded v2.5
TMOT + + Transport Media,added v2.5
TMP + + Plate, Thayer-Martinadded v2.5
TMPV + + Transport Media, PVAadded v2.5
TMSC + + Transport Media, Stool Cultureadded v2.5
TMUP + + Transport Media, Ureaplasmaadded v2.5
TMVI + + Transport Media, Viraladded v2.5
VENIP + + Venipunctureadded v2.5
WOOD + + Swab, Wooden Shaftadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Risk Codes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AGG + + Aggressiveadded v2.5
BHZ + + Biohazardadded v2.5
BIO + + Biologicaladded v2.5
COR + + Corrosiveadded v2.5
ESC + + Escape Riskadded v2.5
EXP + + Explosiveadded v2.5
IFL + + MaterialDangerInflammableadded v2.5
INF + + MaterialDangerInfectiousadded v2.5
INJ + + Injury Hazardadded v2.5
POI + + Poisonadded v2.5
RAD + + Radioactiveadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Specimen Reject Reason

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
EX + + Expiredadded v2.5
QS + + Quantity not sufficientadded v2.5
RA + + Missing patient ID numberadded v2.5
RB + + Broken containeradded v2.5
RC + + Clottingadded v2.5
RD + + Missing collection dateadded v2.5
RE + + Missing patient nameadded v2.5
RH + + Hemolysisadded v2.5
RI + + Identification problemadded v2.5
RM + + Labelingadded v2.5
RN + + Contaminationadded v2.5
RP + + Missing phlebotomist IDadded v2.5
RR + + Improper storageadded v2.5
RS + + Name misspellingadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Specimen Quality

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
E + + Excellentadded v2.5
F + + Fairadded v2.5
G + + Goodadded v2.5
P + + Pooradded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Specimen Appropriateness

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
?? + + Inappropriate due to ...added v2.5
A + + Appropriateadded v2.5
I + + Inappropriateadded v2.5
P + + Preferredadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Specimen Condition

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AUT + + Autolyzedadded v2.5
CLOT + + Clottedadded v2.5
CON + + Contaminatedadded v2.5
COOL + + Cooladded v2.5
FROZ + + Frozenadded v2.5
HEM + + Hemolyzedadded v2.5
LIVE + + Liveadded v2.5
ROOM + + Room temperatureadded v2.5
SNR + + Sample not receivedadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Specimen Child Role

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Aliquotadded v2.5
C + + Componentadded v2.5
M + + Modified from original specimenadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Body Site Modifier

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ANT + + Anterioradded v2.5
BIL + + Bilateraladded v2.5
DIS + + Distaladded v2.5
EXT + + Externaladded v2.5
L + + Leftadded v2.5
LAT + + Lateraladded v2.5
LLQ + + Quadrant, Left Loweradded v2.5
LOW + + Loweradded v2.5
LUQ + + Quadrant, Left Upperadded v2.5
MED + + Medialadded v2.5
POS + + Posterioradded v2.5
PRO + + Proximaladded v2.5
R + + Rightadded v2.5
RLQ + + Quadrant, Right Loweradded v2.5
RUQ + + Quadrant, Right Upperadded v2.5
UPP + + Upperadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Consent Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
001 + + Release of Information/MR / Authorization to Disclosure Protected Health Informationadded v2.5
002 + + Medical Procedure (invasive)added v2.5
003 + + Acknowledge Receipt of Privacy Noticeadded v2.5
004 + + Abortionadded v2.5
005 + + Abortion/Laminariaadded v2.5
006 + + Accutane - Informationadded v2.5
007 + + Accutane - Womanadded v2.5
008 + + Advanced Beneficiary Noticeadded v2.5
009 + + AFP (Alpha Fetoprotein) Screeningadded v2.5
010 + + Amniocentesis (consent & refusal)added v2.5
011 + + Anatomical Gift (organ donation)added v2.5
012 + + Anesthesia - Complicationsadded v2.5
013 + + Anesthesia - Questionnaireadded v2.5
014 + + Angiogramadded v2.5
015 + + Angioplastyadded v2.5
016 + + Anticancer Drugsadded v2.5
017 + + Antipsychotic Medicationsadded v2.5
018 + + Arthrogramadded v2.5
019 + + Autopsyadded v2.5
020 + + AZT Therapyadded v2.5
021 + + Biliary Drainageadded v2.5
022 + + Biliary Stone Extractionadded v2.5
023 + + Biopsyadded v2.5
024 + + Bleeding Time Testadded v2.5
025 + + Bronchogramadded v2.5
026 + + Cardiac Catheterizationadded v2.5
027 + + Coronary Angiographyadded v2.5
028 + + "" "" w/o Surgery Capabilityadded v2.5
029 + + Cataract Op/Implant of FDA Aprvd Lensadded v2.5
030 + + Cataract Op/Implant of Investigational Lensadded v2.5
031 + + Cataract Surgeryadded v2.5
032 + + Cholera Immunizationadded v2.5
033 + + Cholesterol Screeningadded v2.5
034 + + Circumcision - Newbornadded v2.5
035 + + Colonoscopyadded v2.5
036 + + Contact Lensesadded v2.5
037 + + CT Scan - Cervical & Lumbaradded v2.5
038 + + CT Scan w/ IV Contrast Media into Veinadded v2.5
039 + + CVS (Chorionic Villus) Samplingadded v2.5
040 + + Cystospyadded v2.5
041 + + Disclosure of Protected Health Information to Family/Friendsadded v2.5
042 + + D & C and Conizationadded v2.5
043 + + Dacryocystogramadded v2.5
044 + + Diagnostic Isotopeadded v2.5
045 + + Drainage of an Abscessadded v2.5
046 + + Drug Screeningadded v2.5
047 + + Electronic Monitoring of Labor - Refusaladded v2.5
048 + + Endometrial Biopsyadded v2.5
049 + + Endoscopy/Sclerosis of Esophageal Varicesadded v2.5
050 + + ERCPadded v2.5
051 + + Exposure to reportable Communicable Diseaseadded v2.5
052 + + External Versionadded v2.5
053 + + Fluorescein Angioscopyadded v2.5
054 + + Hepatitis B - Consent/Declinationadded v2.5
055 + + Herniogramadded v2.5
056 + + HIV Test - Consent Refusaladded v2.5
057 + + HIV Test - Disclosureadded v2.5
058 + + HIV Test - Prenataladded v2.5
059 + + Home IV Treatment Programadded v2.5
060 + + Home Parenteral Treatment Programadded v2.5
061 + + Hysterectomyadded v2.5
062 + + Hysterosalpingogramadded v2.5
063 + + Injection Slip/ Consentadded v2.5
064 + + Intrauterine Deviceadded v2.5
065 + + Intrauterine Device/Sterilizationadded v2.5
066 + + Intravascular Infusion of Streptokinase/Urokinaseadded v2.5
067 + + Intravenous Cholangiogramadded v2.5
068 + + Intravenous Digital Angiographyadded v2.5
069 + + Iodine Administrationadded v2.5
070 + + ISGadded v2.5
071 + + IVPadded v2.5
072 + + Laser Photocoagulationadded v2.5
073 + + Laser treatmentadded v2.5
074 + + Lithium Carbonateadded v2.5
075 + + Liver Biopsyadded v2.5
076 + + Lumbar Punctureadded v2.5
077 + + Lymphangiogramadded v2.5
078 + + MAO Inhibitorsadded v2.5
079 + + Med, Psych, and/or Drug/Alcoholadded v2.5
080 + + Medical Treatment - Refusaladded v2.5
081 + + Morning-after Pilladded v2.5
082 + + MRI - Adultadded v2.5
083 + + MRI - Pediatricadded v2.5
084 + + Myelogramadded v2.5
085 + + Needle Biopsyadded v2.5
086 + + Needle Biopsy of Lungadded v2.5
087 + + Newborn Treatment and Releaseadded v2.5
088 + + Norplant Subdermal Birth Control Implantadded v2.5
089 + + Operations, Anesthesia, Transfusionsadded v2.5
090 + + Oral Contraceptivesadded v2.5
091 + + Organ Donationadded v2.5
092 + + Patient Permits, Consentsadded v2.5
093 + + Patient Treatment Permit, Release & Admissionadded v2.5
094 + + Penile Injectionsadded v2.5
095 + + Percutaneous Nephrostomyadded v2.5
096 + + Percutaneous Transhepatic Cholangiogramadded v2.5
097 + + Photographsadded v2.5
098 + + Photographs - Employeeadded v2.5
099 + + Photographs - Medical Researchadded v2.5
100 + + Photographs - news Mediaadded v2.5
101 + + Psychiatric Admission - Next of Kinadded v2.5
102 + + Psychiatric Information During Hospital Stayadded v2.5
103 + + Public Release of Informationadded v2.5
104 + + Radiologic Procedureadded v2.5
105 + + Refusal of Treatmentadded v2.5
106 + + Release of Bodyadded v2.5
107 + + Release of Limbadded v2.5
108 + + Rh Immune Globulinadded v2.5
109 + + Rights of Medical Research Participantsadded v2.5
110 + + Request to Restrict Access/Disclosure to Medical Record/Protected Health Informationadded v2.5
111 + + Request for Remain Anonymousadded v2.5
112 + + Seat Belt Exemptionadded v2.5
113 + + Sialogramadded v2.5
1137 + + Voiding Cystogramadded v2.5
114 + + Sigmoidoscopyadded v2.5
115 + + Sterilization - Anesthesia & Medical Servicesadded v2.5
116 + + Sterilization -Federally Fundedadded v2.5
117 + + Sterilization - Femaleadded v2.5
118 + + Sterilization - Laparoscopy/Pomeroyadded v2.5
119 + + Sterilization - Non-Federally Fundedadded v2.5
120 + + Sterilization - Secondaryadded v2.5
121 + + Tranquilizersadded v2.5
122 + + Transfer - Acknowledgementadded v2.5
123 + + Transfer - Authorizationadded v2.5
124 + + Transfer Certification - Physicianadded v2.5
125 + + Transfer/Discharge Requestadded v2.5
126 + + Transfer for Non-Medical Reasonsadded v2.5
127 + + Transfer - Interfaculty Neonataladded v2.5
128 + + Transfer Refusaladded v2.5
129 + + Transfer Refusal of Further Treatmentadded v2.5
130 + + Treadmill & EKGadded v2.5
131 + + Treadmill, Thallium-201added v2.5
132 + + Typhoidadded v2.5
133 + + Use of Investigational Deviceadded v2.5
134 + + Use of Investigational Drugadded v2.5
135 + + Venogramadded v2.5
136 + + Videotapeadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Consent Mode

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
T + + Telephoneadded v2.5
V + + Verbaladded v2.5
W + + Writtenadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Consent Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Active - Consent has been grantedadded v2.5
B + + Bypassed (Consent not sought)added v2.5
L + + Limited - Consent has been granted with limitationsadded v2.5
P + + Pending - Consent has not yet been soughtadded v2.5
R + + Refused - Consent has been refusedadded v2.5
X + + Rescinded - Consent was initially granted, but was subsequently revoked or ended.added v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Consent Bypass Reason

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
E + + Emergencyadded v2.5
PJ + + Professional Judgmentadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Consent Disclosure Level

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
F + + Full Disclosureadded v2.5
N + + No Disclosureadded v2.5
P + + Partial Disclosureadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Consent Non-Disclosure Reason

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
E + + Emergencyadded v2.5
PR + + Patient Requestadded v2.5
RX + + Rx Privateadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Non-Subject Consenter Reason

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
LM + + Legally mandatedadded v2.5
MIN + + Subject is a minoradded v2.5
NC + + Subject is not competent to consentadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Sequence/Results Flag

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Cyclicaladded v2.5
R + + Reserved for future useadded v2.5
S + + Sequentialadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Sequence Condition Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
EE + + End related service request(s), end current service request.added v2.5
ES + + End related service request(s), start current service request.added v2.5
SE + + Start related service request(s), end current service request.added v2.5
SS + + Start related service request(s), start current service request.added v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Cyclic Entry/Exit Indicator

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
# + + The last service request in a cyclic group.added v2.5
* + + The first service request in a cyclic groupadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Service Request Relationship

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Compoundadded v2.5
E + + Exclusiveadded v2.5
N + + Nurse prerogativeadded v2.5
S + + Simultaneousadded v2.5
T + + Taperingadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Observation Result Handling

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
F + + Film-with-patientadded v2.5
N + + Notify provider when readyadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Blood Product Processing Requirements

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AU + + Autologous Unitadded v2.5
CM + + CMV Negativeadded v2.5
CS + + CMV Safeadded v2.5
DI + + Directed Unitadded v2.5
FR + + Fresh unitadded v2.5
HB + + Hemoglobin S Negativeadded v2.5
HL + + HLA Matchedadded v2.5
IG + + IgA Deficientadded v2.5
IR + + Irradiatedadded v2.5
LR + + Leukoreducedadded v2.5
WA + + Washedadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Blood Product Dispense Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
CR + + Released into inventory for general availabilityadded v2.5
DS + + Dispensed to patient locationadded v2.5
PT + + Presumed transfused (dispensed and not returned)added v2.5
RA + + Returned unused/no longer neededadded v2.5
RD + + Reserved and ready to dispenseadded v2.5
RE + + Released (no longer allocated for the patient)added v2.5
RI + + Received into inventory (for specified patient)added v2.5
RL + + Returned unused/keep linked to patient for possible use lateradded v2.5
RQ + + Request to dispense blood productadded v2.5
RS + + Reserved (ordered and product allocated for the patient)added v2.5
WA + + Wasted (product no longer viable)added v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

BP Observation Status Codes Interpretation

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Record coming over is a correction and thus replaces a final statusadded v2.5
D + + Deletes the BPX recordadded v2.5
F + + Final status; Can only be changed with a corrected statusadded v2.5
O + + Order detail description only (no status)added v2.5
P + + Preliminary statusadded v2.5
W + + Post original as wrong, e.g., transmitted for wrong patientadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Blood Product Transfusion/Disposition Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
RA + + Returned unused/no longer neededadded v2.5
RL + + Returned unused/keep linked to patient for possible use lateradded v2.5
TR + + Transfused with adverse reactionadded v2.5
TX + + Transfusedadded v2.5
WA + + Wasted (product no longer viable)added v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Transfusion Adverse Reaction

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
ABOINC + + ABO Incompatible Transfusion Reactionadded v2.5
ACUTHEHTR + + Acute Hemolytic Transfusion Reactionadded v2.5
ALLERGIC1 + + Allergic Reaction - Firstadded v2.5
ALLERGIC2 + + Allergic Reaction - Recurrentadded v2.5
ALLERGICR + + Allergic Reaction - Repeatingadded v2.5
ANAPHYLAC + + Anaphylactic Reactionadded v2.5
BACTCONTAM + + Reaction to Bacterial Contaminationadded v2.5
DELAYEDHTR + + Delayed Hemolytic Transfusion Reactionadded v2.5
DELAYEDSTR + + Delayed Serological Transfusion Reactionadded v2.5
GVHD + + Graft vs Host Disease - Transfusion - Associatedadded v2.5
HYPOTENS + + Non-hemolytic Hypotensive Reactionadded v2.5
NONHTR1 + + Non-Hemolytic Fever Chill Transfusion Reaction - Firstadded v2.5
NONHTR2 + + Non-Hemolytic Fever Chill Transfusion Reaction - Recurrentadded v2.5
NONHTRREC + + Non-Hemolytic Fever Chill Transfusion Reaction - Repeatingadded v2.5
NONIMMUNE + + Non-Immune Hemolysisadded v2.5
NONSPEC + + Non-Specific, Non-Hemolytic Transfusion Reactionadded v2.5
NORXN + + No Evidence of Transfusion Reactionadded v2.5
PTP + + Posttransfusion Purpuraadded v2.5
VOLOVER + + Symptoms most likely due to volume overloadadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Error Severity

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
E + + Erroradded v2.5
F + + Fatal Erroradded v2.6
I + + Informationadded v2.5
W + + Warningadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Inform Person Code

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
HD + + Inform help deskadded v2.5
NPAT + + Do NOT inform patientadded v2.5
PAT + + Inform patientadded v2.5
USR + + Inform Useradded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Override Type

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
EQV + + Equivalence Overrideadded v2.5
EXTN + + Extension Overrideadded v2.5
INLV + + Interval Overrideadded v2.5
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Message Waiting Priority

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
H + + Highadded v2.6
L + + Lowadded v2.6
M + + Mediumadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Item Importance Codes

+ + + + + + + + + + + + +
+ Code + + Description + + Version +
CRT + + Criticaladded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

CCL Value

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + Nothing obviousadded v2.6
1 + + Lowadded v2.6
2 + + Moderateadded v2.6
3 + + Highadded v2.6
4 + + Very highadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

DRG Diagnosis Determination Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + Valid codeadded v2.6
1 + + Invalid codeadded v2.6
2 + + Two primary diagnosis codesadded v2.6
3 + + Invalid for this genderadded v2.6
4 + + Invalid for this ageadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Grouper Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + Normal groupingadded v2.6
1 + + Invalid or missing primary diagnosisadded v2.6
2 + + Diagnosis is not allowed to be primaryadded v2.6
3 + + Data does not fulfill DRG criteriaadded v2.6
4 + + Invalid age, admission date, date of birth or discharge dateadded v2.6
5 + + Invalid genderadded v2.6
6 + + Invalid discharge statusadded v2.6
7 + + Invalid weight ad admissionadded v2.6
8 + + Invalid length of stayadded v2.6
9 + + Invalid field "same day"added v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Status Patient

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
1 + + Normal length of stayadded v2.6
2 + + Short length of stayadded v2.6
3 + + Long length of stayadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

DRG Status Financial Calculation

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
00 + + Effective weight calculatedadded v2.6
01 + + Hospital specific contractadded v2.6
03 + + Eeffective weight for transfer/referral calculatedadded v2.6
04 + + Referral from other hospital based on a cooperation (no DRG reimbursement)added v2.6
05 + + Invalid length of stayadded v2.6
10 + + No information/entry in cost data for this DRGadded v2.6
11 + + No relative weight found for department (type)added v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

DRG Grouping Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + Valid code; not used for groupingadded v2.6
1 + + Valid code; used for groupingadded v2.6
2 + + Invalid code; not used for groupingadded v2.6
3 + + Invalid code; code is relevant for groupingadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Status Weight At Birth

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + No weight reported at admission used for groupingadded v2.6
1 + + Weight reported at admission used for groupingadded v2.6
2 + + Default weight (>2499g) used for groupingadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Status Respiration Minutes

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + Respiration minutes not used for groupingadded v2.6
1 + + Listed respiration minutes used for groupingadded v2.6
2 + + OPS code value used for groupingadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Status Admission

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + Admission status is valid; used for groupingadded v2.6
1 + + Admission status is valid; not used for groupingadded v2.6
2 + + Admission status is invalid; not used for groupingadded v2.6
3 + + Admission status is invalid; default value used for groupingadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

DRG Procedure Determination Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + Valid codeadded v2.6
1 + + Invalid codeadded v2.6
2 + + Not usedadded v2.6
3 + + Invalid for this genderadded v2.6
4 + + Invalid for this ageadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

DRG Procedure Relevance

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
0 + + Neither operation relevant nor non-operation relevant procedureadded v2.6
1 + + Operation relevant procedureadded v2.6
2 + + Non-operation relevant procedureadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Item Status

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + Activeadded v2.6
I + + Inactiveadded v2.6
P + + Pending Inactiveadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Item Type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
EQP + + Equipmentadded v2.6
IMP + + Implantadded v2.6
MED + + Medicationadded v2.6
SUP + + Supplyadded v2.6
TDC + + Tubes, Drains, and Cathetersadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Approving Regulatory Agency

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AMA + + American Medical Associationadded v2.6
FDA + + Food and Drug Administrationadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Ruling Act

+ + + + + + + + + + + + +
+ Code + + Description + + Version +
SMDA + + Safe Medical Devices Actadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Sterilization Type

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
EOG + + Ethylene Oxide Gasadded v2.6
PCA + + Peracetic acidadded v2.6
STM + + Steamadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Package

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
BX + + Boxadded v2.6
CS + + Caseadded v2.6
EA + + Eachadded v2.6
SET + + Setadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Telecommunication Expiration Reason

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
C + + Correctedadded v2.6
E + + Added in erroradded v2.6
M + + Movedadded v2.6
N + + No longer in serviceadded v2.6
R + + On requestadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Supply Risk Codes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
COR + + Corrosiveadded v2.6
EXP + + Explosiveadded v2.6
FLA + + Flammableadded v2.6
INJ + + Injury Hazardadded v2.6
RAD + + Radioactiveadded v2.6
TOX + + Toxicadded v2.6
UNK + + Unknownadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Role Executing Physician

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
B + + Bothadded v2.6
P + + Professional Partadded v2.6
T + + Technical Partadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Medical Role Executing Physician

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
E + + Employedadded v2.6
SE + + Self-employedadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Side of body

+ + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
L + + Leftadded v2.6
R + + Rightadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Present On Admission (POA) Indicator

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
E + + Exemptadded v2.6
N + + Noadded v2.6
U + + Unknownadded v2.6
W + + Not applicableadded v2.6
Y + + Yesadded v2.6
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Security Check Scheme

+ + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
BCV + + Bank Card Validation Numberadded v2.7
CCS + + Credit Card Security codeadded v2.7
VID + + Version IDadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Shipment Status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
INV + + Inventoriedadded v2.7
ONH + + On Holdadded v2.7
PRC + + Processingadded v2.7
REJ + + Rejectedadded v2.7
TRN + + In Transitadded v2.7
TTL + + Triaged to Labadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

ActPriority

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
A + + ASAP - As soon as possible, next highest priority after statadded v2.7
CR + + Callback results - filler should contact the placer as soon as results are available, even for preliminary resultsadded v2.7
CS + + Callback for scheduling - Filler should contact the placer (or target) to schedule the service.added v2.7
CSP + + Callback placer for scheduling - filler should contact the placer to schedule the serviceadded v2.7
CSR + + Contact recipient for scheduling - Filler should contact the service recipient (target) to schedule the serviceadded v2.7
EL + + Elective - Beneficial to the patient but not essential for survival.added v2.7
EM + + Emergency - An unforeseen combination of circumstances or the resulting state that calls for immediate actionadded v2.7
P + + Preop - Used to indicate that a service is to be performed prior to a scheduled surgery. When ordering a service and using the pre-op priority, a check is done to see the amount of time that must be allowed for performance of the service. When the orderadded v2.7
PRN + + As needed - An "as needed" order should be accompanied by a description of what constitutes a need. This description is represented by an observation service predicate as a precondition.added v2.7
R + + Routine - Routine service, do at usual work hoursadded v2.7
RR + + Rush reporting - A report should be prepared and sent as quickly as possibleadded v2.7
S + + Stat - With highest priority (e.g. emergency).added v2.7
T + + Timing critical - It is critical to come as close as possible to the requested time (e.g. for a through antimicrobial level).added v2.7
UD + + Use as directed - Drug is to be used as directed by the prescriber.added v2.7
UR + + Urgent - Calls for prompt actionadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Confidentiality

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
B + + Business - Since the service class can represent knowledge structures that may be considered a trade or business secret, there is sometimes (though rarely) the need to flag those items as of business level confidentiality. However, no patient related infadded v2.7
C + + Celebrity - Celebrities are people of public interest (VIP) including employees, whose information require special protection.added v2.7
D + + Clinician - Only clinicians may see this item, billing and administration persons can not access this item without special permission.added v2.7
ETH + + Substance abuse related - Alcohol/drug-abuse related itemadded v2.7
HIV + + HIV Related - HIV and AIDS related itemadded v2.7
I + + Individual - Access only to individual persons who are mentioned explicitly as actors of this service and whose actor type warrants that access (cf. to actor typed code).added v2.7
L + + Low - No patient record item can be of low confidentiality. However, some service objects are not patient related and therefore may have low confidentiality.added v2.7
N + + Normal - Normal confidentiality rules (according to good health care practice) apply, that is, only authorized individuals with a legitimate medical or business need may access this item.added v2.7
PSY + + Psychiatry related - Psychiatry related itemadded v2.7
R + + Restricted - Restricted access, e.g. only to providers having a current care relationship to the patient.added v2.7
S + + Sensitive - Information for which the patient seeks heightened confidentiality. Sensitive information is not to be shared with family members. Information reported by the patient about family members is sensitive by default. Flag can be set or clearedadded v2.7
SDV + + Sexual and domestic violence related - Sexual assault / domestic violence related itemadded v2.7
T + + Taboo - Information not to be disclosed or discussed with patient except through physician assigned to patient in this case. This is usually a temporary constraint only; example use is a new fatal diagnosis or finding, such as malignancy or HIV.added v2.7
V + + Very restricted - Very restricted access as declared by the Privacy Officer of the record holder.added v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Patient Results Release Categorization Scheme

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
SID + + Share In1 Day -<p>Share result regardless of reference/therapeutic range after 1 or more business day as agreed to by the systems in play.added v2.7
SIDC + + Share in 1 Day Conditionally -<p>Share result in reference ranges/therapeutic with patient after 1 or more business day as agreed to by the systems in play.<p>Withhold result out of reference/therapeutic range until physician releaseadded v2.7
SIMM + + Share Immediately -<p>Share result with patient immediatelyadded v2.7
STBD + + Share To Be Determined -<p>Category to be determinedadded v2.7
SWNL + + Share Within Normal Limits -<p>Share result in reference/therapeutic range with patient immediately<p>Share result out of reference/therapeutic ranges with patient after 1 or more business day as agreed to by the systems in play.added v2.7
SWTH + + Share Withhold -<p>Withhold result regardless of reference/therapeutic rangesadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Acquisition Modality

+ + + + + + + + + + + + +
+ Code + + Description + + Version +
… + + Acquisition Modality codes, Context Group 29, Digital Imaging and Communications in Medicine (DICOM) - Part 16: Content Mapping Resource (PS3.16), available free at http://dicom.nema.orgadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

Participation

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Description + + Version +
AD + + Admitting Provideradded v2.7
AI + + Assistant/Alternate Interpreteradded v2.7
AP + + Administering Provideradded v2.7
ARI + + Assistant Result Interpreteradded v2.7
AT + + Attending Provideradded v2.7
AUT + + AUT Author/Event Initiatoradded v2.7
CP + + Consulting Provideradded v2.7
DP + + Dispensing Provideradded v2.7
EP + + Entering Provider (probably not the same as transcriptionist)added v2.7
EQUIP + + Equipmentadded v2.7
FHCP + + Family Health Care Professionaladded v2.7
MDIR + + Medical Directoradded v2.7
OP + + Ordering Provideradded v2.7
PB + + Packed byadded v2.7
PH + + Pharmacist (not sure how to dissect Pharmacist/Treatment Supplier's Verifier ID)added v2.7
PI + + Primary Interpreteradded v2.7
PO + + Performing Organizationadded v2.7
POMD + + Performing Organization Medical Directoradded v2.7
PP + + Primary Care Provideradded v2.7
PRI + + Principal Result Interpreteradded v2.7
RCT + + Results Copies Toadded v2.7
RO + + Responsible Observeradded v2.7
RP + + Referring Provideradded v2.7
RT + + Referred to Provideradded v2.7
SB + + Send byadded v2.7
SC + + Specimen Collectoradded v2.7
TN + + Technicianadded v2.7
TR + + Transcriptionistadded v2.7
VP + + Verifying Provideradded v2.7
VPS + + Verifying Pharmaceutical Supplier (not sure how to dissect Pharmacist/Treatment Supplier's Verifier ID)added v2.7
VTS + + Verifying Treatment Supplier (not sure how to dissect Pharmacist/Treatment Supplier's Verifier ID)added v2.7
WAY + + Waypointadded v2.7
WAYR + + Waypoint Recipientadded v2.7
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
\ No newline at end of file diff --git a/src/changes/changes.xml b/src/changes/changes.xml index fbe66024b7c1..10456c43b693 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -137,6 +137,20 @@ resources (really only useful after indexes change or bugs are fixed) + + JPA server did not correctly index search parameters + of type "URI". Thanks to David Hay for reporting! Note that if you are using the JPA server, this change means that + there are two new tables added to the database schema. Updating existing resources in the database may fail unless you + set default values for the resource + table by issuing a SQL command similar to the following (false may be 0 or something else, depending on the database platform in use) + update hfj_resource set sp_coords_present = false;
+ update hfj_resource set sp_uri_present = false;
]]> +
+ + FIx issue in JPA server where profile declarations, tags, and + security labels were not always properly removed by an update that + was trying to remove them. Also don't store duplicates. + diff --git a/sync.sh b/sync.sh index 5a82b69bd392..514c96724792 100755 --- a/sync.sh +++ b/sync.sh @@ -10,6 +10,7 @@ for i in $(find $FHIRTRUNK/build/source/datatypes | grep xml | grep -v spreadshe cp $FHIRTRUNK/build/publish/valuesets.xml hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/ cp $FHIRTRUNK/build/publish/v3-codesystems.xml hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/ +cp $FHIRTRUNK/build/publish/v2-codesystems.xml hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/ # Schematron rm hapi-fhir-structures-dstu2/src/main/resources/ca/uhn/fhir/model/dstu2/schema/*.sch